Generate Instagram content from top trends with AI image generation
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs on a schedule (cron 5 13,19 * * *). Along the way it connects Telegram, Postgres, OpenAI and Facebook Graph API. It also calls instagram-scraper-api2.p.rapidapi.com and api.replicate.com over HTTP.
How it runs
Trigger: On a schedule (cron 5 13,19 * * *).
- Replicate params (Edit Fields (Set)): sets 1 field: replicate_token
- Instagram params (Edit Fields (Set)): sets 1 field: instagram_business_account_id
- Telegram Params (Edit Fields (Set)): sets 1 field: telegram_chat_id
- Rapid Api params (Edit Fields (Set)): sets 1 field: x-rapid-api-key
- get top trends on instagram #isometric (HTTP Request): calls instagram-scraper-api2.p.rapidapi.com
- get top trends on instagram #blender3d (HTTP Request): calls instagram-scraper-api2.p.rapidapi.com
- filter the image content (Code): runs custom JavaScript code
- filter the image content- (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 16 more steps. See the full node list below.
Services it uses
HTTP calls to: instagram-scraper-api2.p.rapidapi.com, api.replicate.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)
- If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Postgres
n8n-nodes-base.postgres - OpenAI
@n8n/n8n-nodes-langchain.openAi - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
How it works This automated workflow discovers trending Instagram posts and creates similar AI-generated content. Here's the high-level process: 1. Content Discovery & Analysis - Scrapes trending posts from specific hashtags - Analyzes visual elements using…