Quick overview
This workflow discovers trending topics from YouTube Most Popular and Google Trends, uses OpenAI to rank and draft Shorts-ready angles, stores items for review in Airtable, then sends approved records to Creatomate to render a video and writes the render status and URL back to Airtable.
How it works
- Runs on a schedule (three times daily for discovery and every minute for approvals) or via manual triggers for testing.
- Pulls YouTube Most Popular videos via the YouTube Data API and reads the Google Trends RSS feed for the configured region.
- Normalizes, deduplicates, and packages the combined trend signals, then asks OpenAI to select up to five high-scoring commentary opportunities with a hook and short script.
- Creates an Airtable review record for each selected opportunity with rights status and metadata set for human approval.
- Polls Airtable for records with Status set to Approved, validates required fields and an approved rights status, and marks valid records as Queued (or Failed with an error).
- Sends the approved record payload to an n8n webhook that submits a render to Creatomate using a template with dynamic Hook and Supporting_Text fields.
- Polls Creatomate until the render succeeds or the retry limit is reached, then updates the Airtable record with Rendered/Failed, the render job ID, and the final render URL.
Setup
- Create credentials for OpenAI API, Airtable HTTP Header Auth (Bearer token), and Creatomate HTTP Header Auth (Bearer API key).
- In the three configuration nodes, replace all YOUR_… placeholders with your YouTube API key, Airtable base/table IDs, Creatomate template ID, and polling limits.
- In Creatomate, copy or create a template that exposes dynamic elements named Hook and Supporting_Text.
- Copy the render webhook URL from the renderer branch and paste it into the approval branch’s renderer_webhook_url setting.
- Ensure your Airtable table has the fields used by the workflow (for example Status, Rights_Status, Hook, Script, Render_Job_ID, Render_URL, and Error_Log) and only set Status to Approved after human rights review.