Instagram Carousel Publishing
Receives a product collection webhook, uploads each slide image, assembles them into an Instagram carousel, publishes the post.
What it does
Get your product collections instantly turned into published Instagram carousels without manual posting. The agent receives your data via webhook, uploads each slide image, assembles them into a post, and sends the live link to Slack for you.
Step by step
- Parse the incoming webhook JSON payload and extract the product collection array.
- Iterate through each item in the collection to trigger individual image upload requests.
- Aggregate the returned media container IDs into a single list for the parent post creation.
Where the LLM does the work
- Generate engaging, concise captions that highlight key features of each carousel slide.
- Draft a summary message for the Slack notification that includes the permalink and success status.
- Create error handling logic descriptions for failed uploads to ensure clear debugging output.
Watch out for
Instagram has strict image dimension requirements so validate aspect ratios before uploading to avoid rejection errors.
The webhook payload might contain missing or malformed URLs, add a check to skip invalid items gracefully.
Slack notifications may fail if the channel ID is incorrect, verify the target channel exists before sending messages.
Tools that fit
Webhook Service Receive product collection data
HTTP Request API Interact with Instagram Graph API and fetch images
Upload to URL Service Generate stable CDN URLs for slide images
Code LLM Validate payload and build captions
The agent brief
Everything your agent needs, including the gotchas. Copy it and go.
You are helping me build the following AI agent workflow. ## Goal Instagram Carousel Publishing: Receives a product collection webhook, uploads each slide image, assembles them into an Instagram carousel, publishes the post. ## Specification - What it does: Get your product collections instantly turned into published Instagram carousels without manual posting. The agent receives your data via webhook, uploads each slide image, assembles them into a post, and sends the live link to Slack for you. - Trigger: Triggered by an event (Event · on webhook payload) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Webhook: Receive product collection data - HTTP Request: Interact with Instagram Graph API and fetch images - Upload to URL: Generate stable CDN URLs for slide images - Code: Validate payload and build captions - Slack: Notify team of published posts ## Known pitfalls, handle each one explicitly in your implementation 1. Instagram has strict image dimension requirements so validate aspect ratios before uploading to avoid rejection errors. 2. The webhook payload might contain missing or malformed URLs, add a check to skip invalid items gracefully. 3. Slack notifications may fail if the channel ID is incorrect, verify the target channel exists before sending messages. ## Reference implementation https://n8n.io/workflows/14643 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automate-instagram-carousel-publishing/ via usecasesforagents.com
Frequently asked questions
Can I use a different Messaging than Slack?
Yes. Slack is only the example messaging in this recipe. The same flow works with ClickSend API, Discord, Google Chat and LINE Messaging API. Swap the messaging connection and keep the rest of the setup as written.
Want this running in your business?
This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Who it's for
Also fits E-commerce Operator.
Marketers can point this at their own content pipeline with no changes to the pattern.