Create trending Instagram content with AI image creation
Workflow Description
Comprehensive automation template that generates trending Instagram content using AI-powered image creation. Operates on a scheduled trigger, leverages OpenAI for image generation, stores data in Postgres, and publishes through Facebook. Includes batch processing and intelligent filtering to ensure content quality.
How it works
- 1.Activate scheduled trigger and call OpenAI to generate trending Instagram content ideas and images
- 2.Process generated images in batches using Split In Batches with conditional filtering for quality control
- 3.Store processed data in Postgres database and send notification alerts via Telegram
- 4.Publish finalized content to Facebook Graph API with result merging and logging
Use cases
- Manage multiple Instagram accounts automatically with trend-responsive content and scheduled posting
- Generate and distribute ad-ready images across social media channels with minimal manual intervention
Requirements
- Valid API keys for OpenAI, Facebook Graph API, and Telegram Bot
- Postgres database configured with tables for content logs and generated image metadata
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