Generate viral Instagram scripts by analyzing trending reels with Apify and GPT-4
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“Viral Trending Reels Script Generator”). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail. It also calls api.apify.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Viral Trending Reels Script Generator”).
- Scrape Hashtag (HTTP Request): calls api.apify.com (POST)
- Filter: keeps only the items that match a condition
- Add to the sheet (Google Sheets): append
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Summarize: summarizes / groups the items
- Transcribe Video (HTTP Request): calls api.apify.com (POST)
- Send a message (Gmail): uses Gmail
- If: checks a condition and branches into true / false
- Wait: pauses before continuing
- Update sheet (Google Sheets): append or update
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.apify.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Summarize
n8n-nodes-base.summarize - Wait
n8n-nodes-base.wait
From the author
This n8n template demonstrates how to leverage AI to analyze trending short-form video content and automatically generate original, high-engagement video scripts inspired by proven viral formats. Use cases are many: Create consistent content calendars for…