instagram-automation
Automate Instagram tasks via Rube MCP (Composio): create posts, carousels, manage media, get insights, and publishing limits. Always search tools first for current schemas.
By sickn33 · 694 installs
npx skills add sickn33/agentic-awesome-skills --skill instagram-automation
Source repository · Upstream listing
Instagram Automation via Rube MCP
Automate Instagram operations through Composio's Instagram toolkit via Rube MCP.
Prerequisites
Rube MCP must be connected (RUBE SEARCH TOOLS available)
Active Instagram connection via RUBE MANAGE CONNECTIONS with toolkit instagram
Always call RUBE SEARCH TOOLS first to get current tool schemas
Instagram Business or Creator account required (personal accounts not supported)
Setup
Get Rube MCP : Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
1. Verify Rube MCP is available by confirming RUBE SEARCH TOOLS responds
2. Call RUBE MANAGE CONNECTIONS with toolkit instagram
3. If connection is not ACTIVE, follow the returned auth link to complete Instagram/Facebook OAuth
4. Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create a Single Image/Video Post
When to use : User wants to publish a single photo or video to Instagram
Tool sequence :
1. INSTAGRAM GET USER INFO Get Instagram user ID [Prerequisite]
2. INSTAGRAM CREATE MEDIA CONTAINER Create a media container with the image/video URL [Required]
3. INSTAGRAM GET POST STATUS Check if the media container is ready [Optional]
4. INSTAGRAM CREATE POST or INSTAGRAM POST IG USER MEDIA PUBLISH Publish the container [Required]
Key parameters :
image url : Public URL of the image to post
video url : Public URL of the video to post
caption : Post caption text
ig user id : Instagram Business account user ID
Pitfalls :
Media URLs must be publicly accessible; private/authenticated URLs will fail
Video containers may take time to process; poll GET POST STATUS before publishing
Caption supports hashtags and mentions but has a 2200 character limit
Publishing a container that is not yet finished processing returns an error
2. Create a Carousel Post
When to use : User wants to publish multiple images/videos in a single carousel post
Tool sequence :
1. INSTAGRAM CREATE MEDIA CONTAINER Create individual containers for each media item [Required, repeat per item]
2. INSTAGRAM CREATE CAROUSEL CONTAINER Create the carousel container referencing all media containers [Required]
3. INSTAGRAM GET POST STATUS Check carousel container readiness [Optional]
4. INSTAGRAM POST IG USER MEDIA PUBLISH Publish the carousel [Required]
Key parameters :
children : Array of media container IDs for the carousel
caption : Carousel post caption
ig user id : Instagram Business account user ID
Pitfalls :
Carousels require 2 10 media items; fewer or more will fail
Each child container must be created individually before the carousel container
All child containers must be fully processed before creating the carousel
Mixed media (images + videos) is supported in carousels
3. Get Media and Insights
When to use : User wants to view their posts or analyze post performance
Tool sequence :
1. INSTAGRAM GET IG USER MEDIA or INSTAGRAM GET USER MEDIA List user's media [Required]
2. INSTAGRAM GET IG MEDIA Get details for a specific post [Optional]
3. INSTAGRAM GET POST INSIGHTS or INSTAGRAM GET IG MEDIA INSIGHTS Get metrics for a post [Optional]
4. INSTAGRAM GET USER INSIGHTS Get account level insights [Optional]
Key parameters :
ig user id : Instagram Business account user ID
media id : ID of the specific media post
metric : Metrics to retrieve (e.g., impressions, reach, engagement)
period : Time period for insights (e.g., day, week, lifetime)
Pitfalls :
Insights are only available for Business/Creator accounts
Some metrics require minimum follower counts
Insight data may have a delay of up to 48 hours
The period parameter must match the metric type
4. Check Publishing Limits
When to use : User wants to verify they can publish before attempting a post
Tool sequence :
1. INSTAGRAM GET IG USER CONTENT PUBLISHING LIMIT Check remaining publishing quota [Required]
Key parameters :
ig user id : Instagram Business account user ID
Pitfalls :
Instagram enforces a 25 posts per 24 hour rolling window limit
Publishing limit resets on a rolling basis, not at midnight
Check limits before bulk posting operations to avoid failures
5. Get Media Comments and Children
When to use : User wants to view comments on a post or children of a carousel
Tool sequence :
1. INSTAGRAM GET IG MEDIA COMMENTS List comments on a media post [Required]
2. INSTAGRAM GET IG MEDIA CHILDREN List children of a carousel post [Optional]
Key parameters :
media id : ID of the media post
ig media id : Alternative media ID parameter
Pitfalls :
Comments may be paginated; follow pagination cursors for complete results
Carousel children are returned as individual media objects
Comment moderation settings on the account affect what is returned
Common Patterns
ID Resolution
Instagram User ID :
Media Container Status Check :
Two Phase Publishing
Phase 1: Create media container(s) with content URLs
Phase 2: Publish the container after it finishes processing
Always check container status between phases for video content
For carousels, all children must complete Phase 1 before creating the carousel container
Known Pitfalls
Media URLs :
All image/video URLs must be publicly accessible HTTPS URLs
URLs behind authentication, CDN restrictions, or that require cookies will fail
Temporary URLs (pre signed S3, etc.) may expire before processing completes
Rate Limits :
25 posts per 24 hour rolling window
API rate limits apply separately from publishing limits
Implement exponential backoff for 429 responses
Account Requirements :
Only Business or Creator Instagram accounts are supported
Personal accounts cannot use the Instagram Graph API
The account must be connected to a Facebook Page
Response Parsing :
Media IDs are numeric strings
Insights data may be nested under different response keys
Pagination uses cursor based tokens
Quick Reference
Task Tool Slug Key Params
Get user info INSTAGRAM GET USER INFO (none)
Create media container INSTAGRAM CREATE MEDIA CONTAINER image url/video url, caption
Create carousel INSTAGRAM CREATE CAROUSEL CONTAINER children, caption
Publish post INSTAGRAM CREATE POST ig user id, creation id
Publish media INSTAGRAM POST IG USER MEDIA PUBLISH ig user id, creation id
Check post status INSTAGRAM GET POST STATUS ig container id
List user media INSTAGRAM GET IG USER MEDIA ig user id
Get media details INSTAGRAM GET IG MEDIA ig media id
Get post insights INSTAGRAM GET POST INSIGHTS media id, metric
Get user insights INSTAGRAM GET USER INSIGHTS ig user id, metric, period
Get publishing limit INSTAGRAM GET IG USER CONTENT PUBLISHING LIMIT ig user id
Get media comments INSTAGRAM GET IG MEDIA COMMENTS ig media id
Get carousel children INSTAGRAM GET IG MEDIA CHILDREN ig media id
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
Use this skill only when the task clearly matches the scope described above.
Do not treat the output as a substitute for environment specific validation, testing, or expert review.
Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.