πŸ“± Post daily Instagram news carousels using Claude and Gemini

⚑ 63 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” Heads up β€” if this workflow’s Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.

View All Scrapers

Description

Quick overview

This daily workflow pulls trending headlines from Google News RSS, uses Anthropic Claude to write an Instagram caption and slide copy, generates matching images with Google Gemini, uploads assets to Amazon S3, and publishes either a single-image post or a carousel to Instagram via the Facebook Graph API.

How it works

  1. Runs every 24 hours on a schedule.
  2. Rotates through a predefined set of topic-based Google News RSS feeds and fetches the top headlines.
  3. Builds a short news context from the top three articles and sends it to Anthropic Claude to select one headline and generate the post caption, hashtags, and slide plan (single image or carousel).
  4. Normalizes the AI output, enforces the configured post type, and turns each slide into a branded image prompt.
  5. Generates images with the Google Gemini image model, optionally composites a logo, and uploads the image files to an Amazon S3 bucket to produce public image URLs.
  6. Creates an Instagram media container (single image or carousel) using the Facebook Graph API, polls until the container is finished, and publishes the post to the connected Instagram business account.

Setup

  1. Add an Anthropic API credential for Claude.
  2. Add a Google Gemini API key as an HTTP Query Auth credential and ensure the Gemini image endpoint is enabled for your project.
  3. Add an Instagram/Facebook Graph API access token (HTTP Query Auth) with permission to publish content and set your Instagram business account ID in the workflow settings.
  4. Configure Amazon S3 credentials, create an S3 bucket that allows public reads for uploaded images, and fill in the bucket name and region in the settings.
  5. Import and select the required helper workflow in the β€œMake Slide Image (helper workflow)” step for carousel rendering, and optionally replace the placeholder base64 logo in the image preparation step.

Requirements

πŸ”— Nodes Used

Edit Image, HTTP Request, RSS Read, Execute Sub-workflow, S3, Stop and Error

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup