Automate content creation by scraping trending Instagram Reels, transcribing them, and generating unique viral video scripts using an n8n workflow leveraging GPT-4 and Apify for maximum engagement.
Download this n8n workflow template and start using it instantly.
Content Creators & Influencers: Users who need a constant supply of high-potential, proven video scripts based on current trends. Social Media Marketing Agencies: Firms looking to automate content trend analysis and script drafting for multiple clients. n8n Automation Specialists: Users interested in advanced examples of using the n8n node ecosystem for data extraction, AI analysis, and complex looping. Growth Hackers: Professionals who rely on data-driven script development for platform growth.
Generating consistent, high-performing short-form video content (Reels, TikToks) requires constant monitoring of trends and analyzing successful structures. This sophisticated n8n workflow solves this pain point entirely. It utilizes an n8n trigger form to start the process, automatically identifies trending reels based on popularity and recency using Apify, and then employs a detailed LangChain AI Agent powered by GPT-4 to analyze the underlying structure of the original video transcript.
This robust n8n workflow ensures that every generated script mimics the proven engagement pattern, pacing, and tone of a successful viral reel, but applies it to a completely new topic. By structuring the automation this way, users gain a powerful content creation advantage. This n8n template demonstrates advanced data flow control and external API integration within the n8n environment.
This comprehensive n8n workflow executes in four main stages, starting with a custom n8n trigger:
To deploy this powerful n8n workflow, follow these setup steps:
[your api key]. OpenAI API Key: Configure the API key in the 'OpenAI Chat Model' n8n node credentials. Google Sheets: Authenticate your Google Sheets credentials and ensure the 'Add to the sheet', 'Update sheet', and 'Add AI script' n8n nodes are linked to the correct Google Document ID and sheet name. A template sheet is recommended for structure. Gmail (Optional): Set up the Gmail n8n node credentials for the final reporting step. On form submission (n8n trigger): This initial n8n trigger creates a custom web form that allows users to input the target Hashtag (e.g., #aiautomation) and the number of reels to scrape. This node acts as the entry point for the n8n automation. Scrape Hashtag (HTTP Request n8n node): Calls the Apify Instagram Reels scraper endpoint. Function: Collects reel metadata based on the user's input. Key Configuration: Uses expressions to dynamically set the hashtags and resultsLimit from the n8n trigger form data. Requires Apify authorization header. Filter out from list (Filter n8n node): Ensures data quality and relevance. Function: Filters content to be both popular (likesCount > 1000) and recent (timestamp within the last 7 days). Add to the sheet / Update sheet / Add AI script (Google Sheets n8n node): Three separate Google Sheets nodes manage data persistence. Function: Initially appends filtered data, then updates the row with the transcribed text, and finally updates it again with the AI-generated script. Key Configuration: Uses the url as the matching column for update operations (appendOrUpdate). Transcribe Video (HTTP Request n8n node): Calls the Apify video transcription service. Function: Converts the audio of the viral video into text for AI analysis. AI Agent (Langchain n8n node): The core intelligence of this n8n workflow. Function: Uses a highly customized system prompt to analyze the input transcript's structure and generate a new, unique script while preserving the original’s engagement pattern. OpenAI Chat Model (Langchain n8n node): Provides the LLM backend for the AI Agent. Key Configuration: Set to use a gpt-4.1-mini model, ensuring high-quality, structured output. Summarize (n8n node): Counts the successful outputs. Function:* Calculates the total number of new scripts generated, preparing the final metric for the report.
Automate viral Facebook posts using this complete n8n workflow. It uses Google Gemini 2.0 for content and prompt generation, image synthesis via API, and posts automatically. Get started with n8n templates today.

Automate high-volume social media content creation using this n8n workflow template. It combines GPT-5 for viral prompts, Veo AI for realistic video generation, and Blotato for automated TikTok posting.

Use this advanced n8n workflow to generate high-quality, highly detailed 8-second video scenes using Anthropic's Claude and Google's Veo 3 via the Fal.ai API. This n8n workflow includes human approval and file handling.

Generate highly viral LinkedIn posts and corresponding AI images instantly using a powerful n8n workflow triggered directly from Telegram. This n8n workflow template uses specialized AI agents for maximum virality.

Generate high-impact social media carousels for Instagram, TikTok, or X automatically. This n8n workflow uses xAI Grok to draft content and the Edit Image n8n node to render stunning visual slides, ready for upload.








































