Generate trending Instagram content with AI-powered image creation
Workflow Description
Daily automated workflow that generates trending Instagram content ideas, creates custom images using AI, stores data in a database, and sends notifications via Telegram for approval before publishing to your feed automatically.
How it works
- 1.Schedule daily trigger and retrieve trending topics from your content database
- 2.Process content ideas in batches and generate images using OpenAI's image generation
- 3.Validate content quality and save results to Postgres database
- 4.Send preview to Telegram for manual review and approval
- 5.Post approved content directly to Instagram using Facebook Graph API
Use cases
- Digital marketing agencies managing multiple client Instagram accounts efficiently
- E-commerce businesses that need fresh product-focused content generated daily without manual work
Requirements
- Active OpenAI account with sufficient credits for image generation
- Postgres database populated with trending topics and product information
- Facebook/Instagram account with API permissions for posting
- Telegram bot configured for notifications and approval workflows
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (44)
If media status is finished
If
If media status is finished1
If
Telegram
Set
Telegram1
Set
Telegram2
Set
Loop Over Items
Split In Batches
Schedule Trigger1
Schedule Trigger
Telegram Params
Set
Instagram params
Set
Sticky Note2
Sticky Note
Rapid Api params
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
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
Check Data on Database Is Exist
Postgres
If Data is Exist
If
Sticky Note9
Sticky Note
send error message to telegram
Set
insert data on db
Postgres
Analyze Image and give the content
OpenAI
Analyze Content And Generate Instagram Caption
OpenAI
Sticky Note
Sticky Note
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
Sticky Note1
Sticky Note
Sticky Note10
Sticky Note
filter the image content-2
Code
Sticky Note11
Sticky Note
Replicate params
Set
Generate image on flux
HTTP Request
Sticky Note12
Sticky Note
Sticky Note13
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note