Skip to content

Instantly share code, notes, and snippets.

@c-b-g-m
Created January 16, 2026 22:16
Show Gist options
  • Select an option

  • Save c-b-g-m/38ec8bb1f83bb47c205964e8b7f31dbb to your computer and use it in GitHub Desktop.

Select an option

Save c-b-g-m/38ec8bb1f83bb47c205964e8b7f31dbb to your computer and use it in GitHub Desktop.
HR Tech Article JSON Schema for Zapier/Supabase Integration
{
"type": "object",
"properties": {
"articles": {
"type": "array",
"items": {
"type": "object",
"properties": {
"headline": {
"type": "string"
},
"tldr": {
"type": "string"
},
"signals": {
"type": "array",
"items": {
"type": "string"
}
},
"focus_areas": {
"type": "array",
"items": {
"type": "string"
}
},
"companies": {
"type": "array",
"items": {
"type": "string"
}
},
"source_url": {
"type": "string"
},
"published_date": {
"type": "string"
}
},
"required": ["headline", "tldr", "signals", "focus_areas", "companies", "source_url", "published_date"]
}
}
},
"required": ["articles"]
}
```
5. Click **"Create public gist"**
6. Click the **"Raw"** button (top right)
7. **Copy the URL** (looks like: `https://gist.githubusercontent.com/username/...`)
---
### **Step 2: Paste URL in Zapier**
1. In Step 3, paste that Raw URL into **"JSON Schema URL"**
2. Keep **Schema Name:** `response_schema`
3. Keep **Schema Description:** (as you have it)
---
### **Step 3: Update Your User Message**
Make sure your prompt explicitly tells GPT to match this structure:
```
[Your full second prompt]
---
Here are the articles to analyze:
{{Step 2 Response}}
Output must be valid JSON matching this exact structure:
{
"articles": [
{
"headline": "string",
"tldr": "string (max 5 sentences)",
"signals": ["array of strings"],
"focus_areas": ["array of strings"],
"companies": ["array of strings"],
"source_url": "string (full URL)",
"published_date": "string (YYYY-MM-DD format)"
}
]
}
All fields are required. Return one object per article in the articles array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment