Automated Instagram Content Generation with Trend Analysis and AI
detail.loadingPreview
Automate Instagram content creation by fetching top trending posts, analyzing images, generating captions, and scheduling posts using AI and social media APIs.
About This Workflow
This workflow automates the process of generating engaging Instagram content. It starts by fetching top trending posts from specified hashtags using the Instagram Scraper API. The workflow then filters these posts to include only images and checks if they have already been posted by looking them up in a PostgreSQL database. For new content, it analyzes the image using OpenAI's Vision capabilities to extract a description. This description is then used to generate a compelling Instagram caption with relevant hashtags via another OpenAI call. Finally, the generated content is prepared for Instagram, and its status is checked before publishing, with notifications sent via Telegram for errors or successful posting.
Key Features
- Fetches top trending posts from Instagram hashtags.
- Filters for image content and avoids duplicates using a PostgreSQL database.
- Analyzes image content using OpenAI's Vision API.
- Generates engaging Instagram captions with relevant hashtags using OpenAI.
- Schedules posts to Instagram via the Facebook Graph API.
- Provides error and success notifications via Telegram.
- Highly configurable with placeholder values for API keys and account IDs.
How To Use
-
Credentials Setup: Ensure you have the following credentials configured in n8n:
Telegram account(for notifications)OpenAI account(for image analysis and caption generation)Facebook Graph account(for Instagram posting)Postgres account(for storing posted content and preventing duplicates)
-
Set Parameters: Update the
Setnodes with your specific:Telegram Params->telegram_chat_idInstagram params->instagram_business_account_idRapid Api params->x-rapidapi-key
-
Configure Hashtags: In the
get top trends on instagramnodes (#blender3d,#isometric), change thehashtagparameter to your desired topics. -
Database Setup: Ensure your PostgreSQL database has a table named
top_trendswith the following columns (minimum):code(string),prompt(string),tag(string),isposted(boolean),thumbnail_url(string). -
Workflow Execution: Trigger the workflow manually or via the
Schedule Triggernode. The workflow will run on the schedule defined in theSchedule Trigger1node (currently set to5 13,19 * * *, which means at 1:05 PM and 7:05 PM daily).
Apps Used
Workflow JSON
{
"id": "a410aafc-b0cb-4ff9-9ef2-e93993188531",
"name": "Automated Instagram Content Generation with Trend Analysis and AI",
"nodes": 5,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: a410aafc-b0cb...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.