Automate Instagram posts, Reels, Stories, and Carousels using this advanced n8n workflow. Schedule all content types reliably with robust API polling logic and dynamic routing.
Download this n8n workflow template and start using it instantly.
Social Media Managers needing reliable, scheduled posting.
Automation Specialists looking for complex, real-world n8n templates.
Developers integrating Instagram publishing into larger applications.
Users seeking a robust n8n workflow solution for handling asynchronous API processing (polling).
This comprehensive n8n workflow template solves the complex problem of reliably scheduling diverse Instagram content (images, Reels, stories, carousels) by directly interacting with the Facebook Graph API. The complexity arises because media uploads require two steps: container creation and publication, with a required processing delay between them. This specific n8n workflow incorporates critical status checking and polling mechanisms using Wait and If n8n nodes, ensuring the media container is fully processed and ready by Instagram before attempting publication. This robust setup leverages dynamic routing to support multiple methods (generic HTTP Request n8n node and specialized Facebook Graph API n8n node), making it a powerful foundation for any social media automation pipeline built on n8n.
The entire process is initiated either manually using the ๐ Manual Trigger - Start Workflow n8n trigger or automatically via a scheduled n8n trigger (if configured for production).
โ๏ธ Configure Post Settings n8n node defines critical parameters such as the Instagram Business Account ID (node), media URLs, caption, and the crucial posttype (e.g., httpreel, fbimage).๐ Smart Content Router n8n node analyzes the posttype variable to route the flow to the appropriate container creation n8n node (e.g., Container HTTP Reels). Special types like Carousels require chaining multiple container creation n8n nodes before the parent carousel container is created./media endpoint, receiving a unique media id (the container ID).๐ Check Processing Status n8n node captures the container ID, waits using the โฐ Initial Processing Wait n8n node, and then uses another HTTP Request n8n node (๐ Check Processing Status1) to query the container's status.โ
Is Container Ready? n8n node checks if the statuscode equals FINISHED. If the container is still processing, the workflow is routed back to the โฐ Retry Wait Loop n8n node, which pauses and then re-checks the status. This guarantees a reliable publication only when the content is ready.FINISHED, the ๐ HTTP vs FB API Router n8n node selects the final publication method (either the generic HTTP Request n8n node or the Facebook SDK n8n node) to call the /mediapublish endpoint, making the content live on Instagram.To use this n8n workflow template, follow these steps:
โ๏ธ Configure Post Settings n8n node and replace the placeholder values (e.g., node ID, imageurl, videourl, and the desired post_type) with your actual data.๐ Manual Trigger to test the content flow.This complex n8n workflow utilizes numerous specialized and flow control nodes:
๐ Manual Trigger - Start Workflow (n8n trigger): Initiates the execution for testing purposes.
โ๏ธ Configure Post Settings (Set n8n node): Acts as the input source, setting all dynamic parameters (IG ID, URL, Caption, posttype).
๐ Smart Content Router (Switch n8n node): Essential flow control n8n node that directs the data based on the posttype variable to the appropriate container creation endpoints.
Container HTTP/FB Nodes (HTTP Request / Facebook Graph API n8n node): Multiple instances of these nodes (Container HTTP Image, Container FB Reels, etc.) are used to call the Graph API's /media endpoint to create the initial media container.
Container Carousel Image 1 & 2 (HTTP Request n8n node): Specialized n8n nodes necessary to create the child containers for a multi-image carousel post before the parent container can be assembled.
๐ Check Processing Status1 (HTTP Request n8n node): Polls the Graph API using the container ID and the fields=statuscode query to check if the media processing is complete.
โ
Is Container Ready? (If n8n node): Determines if the statuscode is FINISHED. Crucial for controlling the polling loop.
โฐ Initial Processing Wait / โฐ Retry Wait Loop (Wait n8n node): Implements time delays necessary for asynchronous Graph API operations, preventing overwhelming the API and ensuring the polling logic functions correctly.
/mediapublish endpoint using the successful creationid.Streamline your content strategy with this powerful n8n workflow. Automatically schedule and auto-post videos from a Google Sheet to Instagram, LinkedIn, and TikTok using specialized n8n templates.

Use this powerful n8n workflow to automate security analysis. Submit URLs via webhook to urlscan.io, wait for processing, and receive detailed results directly in your Gmail inbox. Get started with n8n templates.

Automate URL security checks using this n8n workflow. It submits links to urlscan.io, waits, and uses the OpenAI n8n node to generate a risk classification summary and send a report via Gmail.

Use this powerful n8n workflow to schedule Google News searches, batch articles using Airtable counters, format digests with AI (GPT-4o-mini), and send them for approval via a Gmail n8n node.








































