Auto-Generate & Post Social Media Content with GPT-4, Notion & Instagram API
How It Works
This workflow automates social media content creation and posting. It starts by receiving raw text input through a Webhook (for example, from LINE Bot) and saves the content into a Notion database for centralized storage. Next, GPT-4 generates platform-specific captions for Instagram, Threads, X/Twitter, and Blog. Instagram captions are prepared for automatic publishing, while Threads, X, and Blog drafts are stored in Notion for later review and manual posting.
The workflow then fetches book cover images or other visuals from external APIs such as Google Books, OpenBD, or OpenLibrary. The chosen image is uploaded to Cloudinary to generate a secure, optimized URL. Finally, the Instagram Graph API is used to create a media container and publish the post automatically with the caption and image. This way, the workflow provides both automation for Instagram and reusable drafts for other platforms.
Requirements
Notion account with a database configured for text and captions Cloudinary account for image hosting Instagram Business account connected to the Meta Developer Platform GPT-4 (via OpenAI or LangChain node in n8n)
Setup Instructions
Configure the Webhook node to capture text input. Update the Notion database ID and property keys to match your schema. Add Cloudinary credentials (【cloud_name】, 【upload_preset】) in the HTTP Request node. Set 【IG_ACCESS_TOKEN】 as an environment variable. Activate the workflow and test with a sample input.
Customization
Adjust caption prompts for style, hashtags, or character limits. Add additional GPT nodes for more platforms. Replace or extend image sources as needed. Integrate a scheduler (Cron node) to post at specific times.
Related Templates
Instagram Full Profile Scraper with Apify and Google Sheets
📸 Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Technology News Workflow Explanation with Key Services
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Auto-Publish Techn...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments