Generate and publish Instagram carousels with Gemini and Google Slides
Generate and publish Instagram carousels automatically Turn a single topic into a published Instagram Carousel in minutes.
Creating educational carousel posts usually takes hours: writing the script, designing the slides in Figma/Canva, exporting images, and scheduling. This workflow automates the entire pipeline using Gemini AI, Google Slides, and the Meta Graph API.
It generates the content, designs the visuals by manipulating a template, and publishes the carousel directly to your Instagram Business account.
π What this workflow does Script Generation: Runs daily (or on demand) to prompt Google Gemini to write a 6-slide educational script (Hook, Mistake, Why It Matters, Value, Tip, CTA). Design Automation: Copies a master Google Slides template. Uses a "Find & Replace" operation to insert the AI-generated text into the correct placeholders. Generates thumbnail images for each slide. Image Hosting: Uploads the slide images to ImgBB to get public URLs (required by Meta's API). Publishing: Creates a carousel container on Instagram using the Meta Graph API. Checks the container status until it is "FINISHED". Publishes the media to your feed. Logging: Records the post details, captions, and status in Google Sheets.
π‘ Key Features True Design Automation:** Doesn't just overlay text on images; it uses real Google Slides templates, allowing for complex layouts and branding. Smart Polling:** Includes a "Wait & Check" loop to ensure the media container is fully processed by Facebook before attempting to publish (prevents API errors). Structured Content:** The AI is prompted to follow a proven "Viral Educational" framework (Hook -> Value -> Action). Asset Management:** Automatically organizes generated slide images and links in Google Sheets for your archives.
π οΈ Prerequisites Google Cloud:** Enabled APIs for Drive, Slides, Sheets, and Gemini. Meta Developer App:** An Instagram Business account connected to a Facebook Page, with a System User token (instagram_basic, instagram_content_publish, pages_read_engagement). ImgBB Account:** A free API key for temporary image hosting. Templates:** A Google Sheet and Google Slide template (links provided in the workflow sticky notes).
π Setup Instructions Resources: Copy the provided Google Sheet and Slide templates to your Drive. Credentials: Authenticate Google, Meta, and ImgBB in n8n. Configuration: Update the Google Drive node with your Slide Template ID. Update the Google Sheets nodes with your Sheet ID. Update the HTTP Request nodes with your ImgBB API Key and Instagram Account ID. Run: Activate the schedule or click "Execute" to generate your first post!
Need help setting this up or want a custom automation for your agency? I specialize in building agentic workflows for consultants and agencies.
π§ Contact me: bakdaulet.mph@gmail.com
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
π° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
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