Generate Trending Instagram Content Using AI Image Creation
Workflow Description
Scheduled automation that generates Instagram content using OpenAI for copywriting and intelligent image creation, stores data in Postgres, and distributes results through Telegram and Facebook for review and publishing.
How it works
- 1.Run a scheduled trigger that identifies trending content topics
- 2.Generate captions and images using OpenAI based on current trends
- 3.Store generated content in Postgres database for record-keeping
- 4.Distribute batches of content to Telegram groups for team review
- 5.Publish approved content directly to Instagram via Facebook Graph API
Use cases
- Digital marketing agencies managing multiple client accounts
- Content creators seeking to accelerate production workflows
- Small businesses lacking dedicated in-house content teams
Requirements
- Active OpenAI API key with available credits
- Configured Postgres database with proper access credentials
- Telegram bot and channel or group for content distribution
- Authorized Facebook app with Instagram publishing permissions
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