Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save morisono/aafb0e0ddb7478820084f42d3aaeb24e to your computer and use it in GitHub Desktop.

Select an option

Save morisono/aafb0e0ddb7478820084f42d3aaeb24e 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