At a glance
- Trigger
- Schedule Trigger (Schedule Trigger1)
- Nodes
- 27
- Apps
- Telegram, Postgres, OpenAI and Facebook Graph API
- AI nodes
- 2
- Credentials
- 4 types
- Category
- Content, SEO and social media
Apps and integrations
Node types used
How it works
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Schedule Your Time To Post
Guide
Guide of getting of Replicate Token
Guide
Guide of getting of Instagram Business Account Id
Guide
Guide of Getting of Telegram Chat Id
Warning
Don't forgot the create bot and send a message to bot first
Warning
Dont forgot the subscribe Instagram Scraper Api
Warning
You can check the rate limit of the Instagram Scraper Api on Rapid Api Free version is monthly 500 request
Getting Top Trend Posts On Instagram
Change the topic you want to get on http request
For More About Api
Facebook Scraper Api Guide
For top_trends Table
Looping Data And Checking For Is Exist On Database
We are checking until find a data we did not insert because we don't want to create content about in same content
Warning
Don't forgot the create top_trends table
Analyze Post Content
We are analyzing the image We are generating a instagram caption by content Then we are generating the image
Publish On Instagram And Send Message When Published via Telegram
Setup notes
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Automated Instagram Content Creation from Trending Posts
This workflow automates the process of discovering and recreating trending content on Instagram
- Content Discovery
- Scrapes top trending posts from specific hashtags (#blender3d, #isometric)
- Filters for image-only content (excludes videos)
- Checks database to avoid duplicate content
- AI-Powered Content Generation
- Analyzes trending images using GPT-4 Vision
- Generates detailed descriptions of visual elements
- Creates engaging Instagram captions with relevant hashtags
- Uses Flux AI to generate similar but unique images
- Publishing & Monitoring
- Automatically posts content to Instagram Business Account
- Monitors post status and publishing process
- Sends status updates via Telegram
Perfect for content creators and businesses looking to maintain an active Instagram presence with AI-generated content inspired by current trends. The workflow runs on schedule and handles everything from content discovery to publication automatically.
Note: Requires Instagram Business Account, Telegram Bot, OpenAI, and Replicate API credentials.
All Credentials You Need
Instagram Business Account Id Telegram Chat Id Rapid Api Key Replicate Token
Guide
Guide of Getting of Rapid Api Key
Nodes in this workflow
The 27 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
- If media status is finished (If)
- If media status is finished1 (If)
- Telegram (Telegram)
- Telegram1 (Telegram)
- Telegram2 (Telegram)
- Loop Over Items (Loop Over Items)
- Schedule Trigger1 (Schedule Trigger)
- Telegram Params (Edit Fields (Set))
- Instagram params (Edit Fields (Set))
- Rapid Api params (Edit Fields (Set))
- filter the image content (Code)
- get top trends on instagram #blender3d (HTTP Request)
- get top trends on instagram #isometric (HTTP Request)
- merge the array content (Merge)
- Check Data on Database Is Exist (Postgres)
- If Data is Exist (If)
- send error message to telegram (Telegram)
- insert data on db (Postgres)
- Analyze Image and give the content (OpenAI)
- Analyze Content And Generate Instagram Caption (OpenAI)
- Prepare data on Instagram (Facebook Graph API)
- Check Status Of Media Before Uploaded (Facebook Graph API)
- Publish Media on Instagram (Facebook Graph API)
- Check status of post (Facebook Graph API)
- filter the image content-2 (Code)
- Replicate params (Edit Fields (Set))
- Generate image on flux (HTTP Request)
Credentials you need
- Facebook Graph API – used by Check Status Of Media Before Uploaded, Check status of post, Prepare data on Instagram and Publish Media on Instagram
- OpenAI API – used by Analyze Content And Generate Instagram Caption and Analyze Image and give the content
- Postgres – used by Check Data on Database Is Exist and insert data on db
- Telegram Bot API – used by Telegram, Telegram1, Telegram2 and send error message to telegram
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
How to import into n8n
- Download the JSON file with the button above.
- In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
- Open each node that shows a warning and select or create its credential.
- Read the notes on the canvas, test the workflow with sample data, then activate it.
Do you need somewhere to run it? Read our guide to self-hosted n8n.