Skip to content
cccskills
FreePublished on GitHub

instagram-automation

Publish Instagram photos, videos, and carousel posts through Rube MCP and Composio. Retrieve posts and comments, review performance metrics, and check media processing status and available publishing quota before posting from a Business or Creator account.

OriginalShow the original description

Automate Instagram tasks via Rube MCP (Composio): create posts, carousels, manage media, get insights, and publishing limits. Always search tools first for current schemas.

See how to install

Good for

  • Publish a photo or video with a caption
  • Publish multiple images or videos as a carousel
  • Review post and account performance metrics
  • Check available publishing quota
  • Retrieve comments on a post

Files included (1)

  • SKILL.md7.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Instagram Automation via Rube MCP

Automate Instagram operations through Composio's Instagram toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/instagram

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:

1. Call INSTAGRAM_GET_USER_INFO
2. Extract ig_user_id from response
3. Use in all subsequent API calls

Media Container Status Check:

1. Call INSTAGRAM_CREATE_MEDIA_CONTAINER
2. Extract container_id from response
3. Poll INSTAGRAM_GET_POST_STATUS with container_id
4. Wait until status is 'FINISHED' before publishing

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

TaskTool SlugKey Params
Get user infoINSTAGRAM_GET_USER_INFO(none)
Create media containerINSTAGRAM_CREATE_MEDIA_CONTAINERimage_url/video_url, caption
Create carouselINSTAGRAM_CREATE_CAROUSEL_CONTAINERchildren, caption
Publish postINSTAGRAM_CREATE_POSTig_user_id, creation_id
Publish mediaINSTAGRAM_POST_IG_USER_MEDIA_PUBLISHig_user_id, creation_id
Check post statusINSTAGRAM_GET_POST_STATUSig_container_id
List user mediaINSTAGRAM_GET_IG_USER_MEDIAig_user_id
Get media detailsINSTAGRAM_GET_IG_MEDIAig_media_id
Get post insightsINSTAGRAM_GET_POST_INSIGHTSmedia_id, metric
Get user insightsINSTAGRAM_GET_USER_INSIGHTSig_user_id, metric, period
Get publishing limitINSTAGRAM_GET_IG_USER_CONTENT_PUBLISHING_LIMITig_user_id
Get media commentsINSTAGRAM_GET_IG_MEDIA_COMMENTSig_media_id
Get carousel childrenINSTAGRAM_GET_IG_MEDIA_CHILDRENig_media_id

Powered by Composio

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Handle ActiveCampaign contact and marketing tasks through Rube MCP, a connection for agent tools. Find or create contacts, manage tags and subscriptions, enroll contacts in existing automated workflows, and create follow-up tasks.

  • Finding or registering contacts
  • Adding or removing contact tags
  • Subscribing contacts to lists or unsubscribing them
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

Research competitors’ live Meta and Google ads to identify opening hooks, offers, calls to action, and landing pages. Receive a sourced creative brief and up to three test ideas adapted to your product.

  • Find angles for new ad copy
  • Plan creative tests using competitor ads
  • Choose a landing page message
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

agent-analytics

FreeSummary

Add website or app tracking, then use command-line tools to review traffic, signups, drop-off, and returning users across projects. Run A/B tests, which compare alternative headlines or buttons, and inspect results to guide changes.

  • Adding page-view and key-action tracking
  • Reviewing traffic and referral sources across projects
  • Finding where visitors drop out before signup or purchase
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

Establish rules for when an AI agent should recall past context and save lasting decisions, corrections, preferences, and failures. Works with Markdown files or memory services, preserving decision history and surfacing conflicting records.

  • Carry project conventions into the next session
  • Save user corrections and lasting preferences
  • Record failed approaches and their causes
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

Audit local AI coding-agent sessions with agenttrace to identify spending, token use, tool failures, and operational problems. Produce readable or structured reports and define pass-or-fail thresholds for automated continuous integration checks.

  • Investigating session costs and token waste
  • Finding repeated tool failures and retries
  • Exporting session reports as Markdown or JSON
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

Audit saved agent sessions for access to private files and evidence that secret values entered an agent's context. Get findings without displaying secrets, identify keys needing rotation, and inspect Claude Code or Codex sessions in a local report.

  • Check whether an agent accessed .env files
  • Identify keys that may need rotation
  • Audit private-file access by subagents
davepoon/buildwithclaude3.7KUpdated Oct 20, 2026

See all skills by davepoon

Report a problem with this skill