AI-Generate & Auto-Post Instagram Content from Trends
Boost Instagram engagement with consistent, AI-generated content published automatically, reducing content creation time by up to 90%.
Manually identifying top trends and consistently creating unique Instagram content is a significant time sink for businesses and content creators. This n8n workflow fully automates trend discovery, AI-powered image generation, caption crafting, and scheduled posting directly to your Instagram Business Account, ensuring a dynamic and engaging presence.

Documentation
Automated Instagram Content Creation from Trending Posts
This workflow is designed for content creators and businesses aiming to maintain a dynamic and engaging presence on Instagram. It completely automates the laborious process of discovering trending content, generating unique visuals and captions, and publishing them directly to your Instagram Business Account, freeing up valuable time and ensuring a consistent content stream.
Key Features
- Automated Trend Discovery: Scrapes top trending posts from specified Instagram hashtags (e.g., #blender3d, #isometric).
- Duplicate Content Prevention: Intelligently checks a PostgreSQL database to ensure only fresh, unique content is processed and published.
- AI-Powered Image Analysis: Uses OpenAI's GPT-4 Vision to analyze trending images and generate detailed descriptions of visual elements.
- Smart Caption Generation: Crafts engaging Instagram captions with relevant hashtags, optimizing for social media appeal.
- Unique AI Image Creation: Utilizes Replicate's Flux Schnell model to generate new, stylized images based on analyzed content.
- Scheduled Auto-Publishing: Automatically posts generated content to your Instagram Business Account at predefined intervals.
- Real-time Notifications: Delivers status updates and error alerts via Telegram for full visibility and control.
How It Works
This workflow executes on a schedule, first retrieving necessary credentials. It then scrapes top trending Instagram posts for specified hashtags, filters out videos, and merges the data. Each potential post is checked against a PostgreSQL database to prevent duplicates. For new content, OpenAI's GPT-4 Vision analyzes the image to create a detailed description, which is then used by GPT-4o-mini to generate an engaging Instagram caption. Concurrently, Replicate's Flux Schnell model creates a unique, stylized image based on the detailed description. Finally, the generated image and caption are prepared and published to your Instagram Business Account, with status updates and error messages sent directly to your Telegram chat.