Templates / Generate viral Instagram scripts by analyzing trending reels with Apify and GPT-4

Generate viral Instagram scripts by analyzing trending reels with Apify and GPT-4

Ready for 3.0

by Nitin Dixit · 2,630 views · created 2025-10-30 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”).

  1. Scrape Hashtag (HTTP Request): calls api.apify.com (POST)
  2. Filter: keeps only the items that match a condition
  3. Add to the sheet (Google Sheets): append
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Summarize: summarizes / groups the items
  6. Transcribe Video (HTTP Request): calls api.apify.com (POST)
  7. Send a message (Gmail): uses Gmail
  8. If: checks a condition and branches into true / false
  9. Wait: pauses before continuing
  10. Update sheet (Google Sheets): append or update

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsOpenAI Chat ModelGmail

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)

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…

Excerpt from Nitin Dixit's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.