π¬ Generate blog posts and tweet threads from YouTube with Supadata and OpenAI
β‘ 40 views Β· π¬ Content Creation & Video
π‘ Pro Tip β YouTubeβs API quotas can be a bottleneck when youβre pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β no quota limits, just structured data.
Description
Quick overview
This workflow collects a YouTube video URL via an n8n form, fetches the video transcript from Supadata (with async polling for longer videos), and uses OpenAI to generate a standalone blog post and a 5β8 tweet thread from the same transcript.
How it works
- Receives a YouTube URL submitted through an n8n form trigger.
- Requests the transcript from the Supadata Transcript API and continues even if the request returns an error.
- If Supadata returns an async job ID, waits briefly and polls Supadata until the transcript job completes or fails.
- Extracts the transcript text (or an error message) and truncates it to 8,000 characters.
- Sends the transcript to OpenAI to write a 600β900 word blog post with a title, sections, and a closing takeaway.
- Sends the same transcript to OpenAI to generate a numbered 5β8 tweet thread, keeping each tweet under 280 characters.
Setup
- Create a Supadata account and add an HTTP Header Auth credential with header name
x-api-keyset to your Supadata API key, then select it in the Supadata transcript request and polling steps. - Add OpenAI credentials and ensure the OpenAI Chat Model node is authenticated.
- Review and adjust the prompts for the blog post and tweet thread outputs to match your tone, length, and formatting preferences.
π Nodes Used
HTTP Request, Basic LLM Chain, OpenAI Chat Model, n8n Form Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File