AutomationMart
Home/Browse/Generate and publish carousels for TikTok and Instagram with GPT-Image-1
n8n

Generate and publish carousels for TikTok and Instagram with GPT-Image-1

n8nn8n28 modulesv1.0
OpenAIInstagram

Description This n8n automation template provides an end-to-end solution for generating a series of themed images for Instagram and TikTok carousels using OpenAI's GPT Image (via the image generation API) and automatically publishing them to both platforms. It uses a sequence of prompts to create a narrative or themed carousel, generating each image based on the previous one, and then posts them with an AI-generated caption. Who Is This For? Social Media Managers: Quickly create and schedule en

At a glance

Generate and publish carousels for TikTok and Instagram with GPT-Image-1 is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI, Instagram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Instagram
Modules
28
Price
Free
Version
v1.0
Generate and publish carousels for TikTok and Instagram with GPT-Image-1 workflow diagram

About this workflow

Description This n8n automation template provides an end-to-end solution for generating a series of themed images for Instagram and TikTok carousels using OpenAI's GPT Image (via the image generation API) and automatically publishing them to both platforms. It uses a sequence of prompts to create a narrative or themed carousel, generating each image based on the previous one, and then posts them with an AI-generated caption. Who Is This For? Social Media Managers: Quickly create and schedule engaging image carousels for Instagram and TikTok. Content Creators: Automate the visual content creation process for thematic posts or storytelling carousels. Digital Marketers: Efficiently produce visual assets for campaigns that require sequential imagery. Small Businesses: Generate unique promotional content for social media without needing advanced design skills. What Problem Does This Workflow Solve? Manually creating a series of related images for a carousel and then publishing them across multiple platforms can be repetitive and time-consuming. This workflow addresses these issues by: Automating Image Generation: Uses OpenAI to generate a sequence of 5 images, where each new image is an evolution based on the previous one and a new prompt. Automating Caption Generation: Leverages OpenAI (GPT) to create a suitable description/caption for the carousel based on the image prompts. Streamlining Multi-Platform Publishing: Automatically uploads the generated image carousel and caption to both Instagram and TikTok. Reducing Manual Effort: Significantly cuts down the time spent on designing individual images and manually uploading them. Ensuring Visual Cohesion: The sequential image generation method (editing the previous image) helps maintain a consistent style or narrative across the carousel. How It Works 1. Trigger: The workflow is initiated manually (can be adapted to a schedule or webhook). 2. Define Prompts: Five distinct prompts are pre-set within the workflow to guide the generation of each image in the carousel. 3. AI Caption Generation: OpenAI (GPT-4.1) generates a concise (≤ 90 characters for TikTok) description for the social media posts based on all five image prompts. 4. Sequential AI Image Generation: Image 1: OpenAI's image generation API (specified as gpt-image-1) creates the first image based on prompt1. Image 2-5: For each subsequent image, the workflow uses the OpenAI image edits API. It takes the previously generated image and a new prompt (prompt2 for image 2, prompt3 for image 3, and so on) to create the next image in the sequence. Images are converted from base64 JSON to binary format. 5. Content Aggregation: The five generated binary image files (named photo1 through photo5) are merged. 6. Multi-Platform Distribution: The merged images and the AI-generated description are sent to api.upload-post.com for publishing as a carousel to Instagram. The same content is sent to api.upload-post.com for publishing as a carousel to TikTok, with an option to automatically add music. The TikTok description is truncated if it exceeds 90 characters. Setup 1. Accounts & API Keys: You will need: An n8n instance. An OpenAI API key. A key for social media API upload-post. 2. Configure Credentials: Add your OpenAI API key to the "OpenAI" credentials in n8n. This will be used by the "Generate Description for Tiktok and Instagram" node and the HTTP Request nodes calling the OpenAI image generation/edit APIs. In the "POST TO INSTAGRAM" and "POST TO TIKTOK" nodes, replace "Apikey addapikeyhere" with your actual upload-post.com API key. Update the user field in the "POST TO INSTAGRAM" and "POST TO TIKTOK" nodes if "uploadpost" is not your user identifier for that service. 3. Customize Prompts: Modify the five prompts (prompt1 to prompt5) in the "Set All Prompts" node to define the story or theme of your image carousel. 4. Review Image Generation Parameters: In the "Set API Variables" node, you can adjust: sizeofimage (e.g., "1024x1536" for vertical carousels). openaiimagemodel (ensure this matches a valid OpenAI model identifier for image generation/edits, like dall-e-2 or dall-e-3 if gpt-image-1 is a placeholder). responseformatimage (should generally remain b64json for this workflow). 5. (Optional) TikTok Auto Music: The "POST TO TIKTOK" node has an autoaddmusic parameter set to true. Change this to false if you prefer to add music manually or not at all. Requirements Accounts: n8n, OpenAI, upload-post.com. API Keys & Credentials: API Keys for OpenAI and (Potentially) Paid Plans: OpenAI and upload-post.com usage may incur costs depending on your volume and their respective pricing models. This template empowers you to automate the creation and distribution of visually consistent image carousels, saving time and enhancing your social media presence.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Building RAG chatbot for movie recommendations with Qdrant and Open AI

Create a recommendation tool without hallucinations based on RAG with the Qdrant Vector database. This example is based on movie recommendations on the IMDB-top1000 dataset. You can provide your wishes and your "big no's" to the chatbot, for example: "A movie about wizards but not Harry Potter", and get top-3 recommendations. How it works - a video with the full design process - Upload IMDB-1000 dataset to Qdrant Vector Store, embedding movie descriptions with OpenAI; - Set up an AI agent with a

Free

Save new Instagram posts to Airtable

Every time you add a new Instagram post, it will be saved to Airtable. [Here](https://airtable.com/shra8uugk59k3cNI6) is the table used in this scenario.

Free

Generate ad image variations using GPT-4, Dumpling AI & Google Drive

What this workflow does This workflow takes a reference ad image and brand website, then uses GPT-4, LangChain, and Dumpling AI to generate 10 high-quality image variations for ad testing. These image variations are visually consistent but subtly different in background, mood, lighting, and tone — perfect for performance testing on platforms like Meta Ads or TikTok. --- 👤 Who is this for - DTC marketers and brand designers testing ad creatives - Creative teams automating visual exp

Free

Manage KlickTipp contacts via Telegram Bot with GPT-5 mini agent

Community Node Disclaimer: This workflow uses KlickTipp community nodes. How It Works AI Agent and KlickTipp Tools Integration via Telegram: This component connects a large language model (LLM), such as Claude or OpenAI, to the KlickTipp contact management platform through Telegram messaging. The AI Agent interprets natural language queries received from Telegram and dynamically maps them to KlickTipp API operations, enabling intuitive and automated contact handling through a familiar messaging

Free

Manage contacts in KlickTipp via Telegram AI Agent

This integration template creates an intelligent Telegram bot powered by AI (Claude or OpenAI) that seamlessly connects with KlickTipp's contact management platform. Users can interact with their KlickTipp account using natural language commands directly through Telegram, making contact management and email automation accessible from any mobile device. Perfect for marketing teams, agencies, and businesses who want to streamline their KlickTipp operations. Whether you're on the go, working with

Free

Enrich LinkedIn profiles in NocoDB CRM with Apify scraper

Introduction Manual LinkedIn data collection is time-consuming, error-prone, and results in inconsistent data quality across CRM/database records. This workflow is great for organizations that struggle with: - Incomplete contact records with only LinkedIn URLs but missing profile details - Hours spent manually copying LinkedIn information into databases - Inconsistent data formats due to copy-paste from LinkedIn (emojis, styled text, special characters) - Outdated profile i

Free

Auto-assign support tickets with JIRA, Supabase and AI

This n8n template builds a simple automation to ensure no JIRA issues go unassigned for more than a week to prevent them falling through the cracks. It uses AI to perform searching tasks against a Supabase Vector Store. This can be one way to help reduce the amount of manual work in managing the issue backlog for busy teams with little effort. How it works This template contains 2 separate flows which run continuously via schedule triggers. The first populates our Supabase vector store with re

Free

AI YouTube trend explorer – n8n automation workflow with Gemini/ChatGPT

This n8n template helps you automatically discover, analyze, and track trending topics and videos on YouTube using an AI-powered agent. Use cases are many: This workflow is perfect for YouTube creators needing fresh video ideas, digital marketers scouting new campaign topics, social media managers who want to catch trends early, and researchers who want to analyze what’s viral. How It Works - The workflow starts whenever a chat message is received (e.g., a trend question

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free