Try Kling Image V4 Long for Page Mockups from Kling AI →
Models
Agents
Workflows
Studio
PricingBlogDocs
ExploreDiscover models by categoryDiscoverModels and effects built by WiroBrowse All ModelsBrowse the complete catalogSee FavoritesSign in to view saved models
Generative Media AgentCreate and edit media by chattingWorkflow AgentBuild visual workflows with Agent
OverviewThe platform at a glanceLearnSkills, knowledge, guardrailsAnatomyWhat makes agents reasonBuild Your AgentPick skills, choose a plan, deploy, then connect your tools
Pre-built AgentsBrowse the catalogConnectorsConnect agents to your apps
Agent Usecases
Ad Campaign ManagerApp Event ManagerApp Review RepliesBarber BookingCustomer Win-BackEcommerce ListingsRestaurant Reviews
Sign InStart Building
  1. Home
  2. Connectors
  3. Social
  4. Instagram
Wiro × Instagram

Connect Instagram to your Wiro AI agent

Publish photos, carousels, Reels and Stories to your Instagram professional accounts.

Connect to an AgentVisit Instagram All Connectors
Instagram logo
Sign In or KeyWith your own Instagram app, or with an API key
17 actions8 read, 9 write
Chat and Scheduled TasksWhere it works
Allow, Ask or BlockYour choice for each action

On this page

  1. Overview
  2. Use cases
  3. How it works
  4. What it can do
  5. How to connect
  6. Troubleshooting
  7. For developers
  8. Questions
  9. Access
  10. Related connectors
OverviewUse casesHow it worksWhat it can doHow to connectTroubleshootingFor developersQuestionsAccessRelated connectors
Example chat
Instagram logoInstagram connected Signed in

Last week's posts: which ones did people save most, and did we gain followers?

List Instagram posts instagram__list_media
Get Instagram post insights instagram__get_media_insights
Get Instagram account insights instagram__get_account_insights

Purlwick Yarns posted five times last week. The three most saved:

  • Blocking a sweater, step by step (carousel): 512 saves, 9,800 reach
  • Yarn haul (Reel): 88 saves, 14,200 views
  • Pattern sale (photo): 21 saves, 3,100 reach

You gained 236 followers and lost 41, a net of 195. The step-by-step carousel drew almost six times the saves of anything else, while the sale post had the week's lowest reach.

Type a message...

Overview

What Instagram does for your agent

Connects through your own Meta developer app with an Instagram sign-in, or with a Business Manager system user token that reaches the accounts linked to its Facebook Pages, and acts only on the professional accounts you pick. The agent publishes image posts, carousels of up to 20 items, Reels and stories from public file links, reads post, story and account insights, and replies to, hides or deletes comments. Instagram keeps no drafts for API posts, so each one is public the moment it goes out.

Use cases

What your Wiro agent can do with Instagram

  1. 01

    Publish a product carousel from your photo shoot

    Share links to a product's JPEG photos in Chat. The agent orders them into a carousel of up to 20 slides, writes a caption within Instagram's 2,200 characters and 30 hashtags, adds alt text and a collaborator, and publishes after you approve. Instagram crops every slide to the first one's shape, so the agent leads with a photo of the right ratio.

  2. 02

    Post Reels on Tuesday and Thursday evenings

    Keep a queue of finished vertical videos and set a Scheduled Task for two evenings a week. Each run publishes the next video as a Reel with its caption, cover and audio name, waits while Instagram processes it, and reports the Reel's link in Chat.

  3. 03

    Read your weekly Instagram insights in one message

    Every Monday the agent reads last week's posts and Reels with their reach, views, saves, shares and comments, plus the account's new follows and unfollows, and writes a summary that shows which formats earned saves and which fell below the account's usual reach.

  4. 04

    Answer comments and hide spam each morning

    A morning Scheduled Task lists new comments on recent posts, replies as the account to questions about prices or delivery with the answers you gave it, and hides spam. Comments it cannot answer with confidence go to Chat for you.

  5. 05

    Run a launch-day story sequence

    Give the agent the images and short clips for launch day. It posts them as stories one at a time, in the order you set. Stories stay up for 24 hours, so before they expire the agent reads each one's reach, views and shares and tells you which ones people passed on.

  6. 06

    Run several brand accounts from one agent

    Connect once and pick the professional accounts this agent may use, such as one per brand or city. It posts and reads only on those accounts, writes each caption for its account, and checks each account's remaining daily API publishing allowance before a big batch.

How it works

How Instagram works with Wiro

  1. 01

    Connect Instagram

    Deploy an agent, open its Connectors tab, choose Instagram and sign in with your Instagram account, or paste an API key.

  2. 02

    Choose what each action may do

    Set each Instagram action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.

  3. 03

    Ask in Chat or schedule it

    Ask your agent for Instagram work in Chat, or put it on a Scheduled Task that runs on its own.

  • Where it runsInside your agent. Its requests go straight from the agent to Instagram.
  • Where its data goesgraph.facebook.comgraph.instagram.com
  • How it signs inSign in to Instagram with your own app, or connect with a key.
  • AccountsAfter connecting, pick the Instagram accounts the agent may work with. It cannot reach any other.

What it can do

Actions your Wiro agent can take in Instagram

By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.

Read-only (8)Create and send (6)Change and delete (3)

Read-only 8 actions

Looks things up in Instagram and changes nothing.

  • List Instagram accounts

    Lists the Instagram professional accounts this connection can use, with id and username: the account that signed in, or every account linked to a Facebook Page of the system user.

    Chat AllowScheduled Tasks Allow

  • Get an Instagram account

    Returns an Instagram account's profile: username, name, follower, following and post counts and profile picture.

    Chat AllowScheduled Tasks Allow

  • List Instagram posts

    Lists an account's posts and Reels, newest first (or its live stories), with id, type, caption, permalink, time, likes and comments.

    Chat AllowScheduled Tasks Allow

  • Get the Instagram publishing limit

    Returns how many posts the account published through the API in the current 24-hour window and how many it may (a carousel counts as one).

    Chat AllowScheduled Tasks Allow

  • Get Instagram post insights

    Reads insights of posts and Reels (the given media ids, or the latest posts): reach, views, saves (saved), shares, comments, likes and total interactions by default.

    Chat AllowScheduled Tasks Allow

  • Get Instagram account insights

    Reads account insights over a range of days: reach, views, total interactions and accounts engaged, the accounts that followed and unfollowed and the net change, and the current follower and post counts.

    Chat AllowScheduled Tasks Allow

  • List Instagram comments

    Lists the comments on one of the account's posts, or the replies to a comment: text, username, time, likes and whether it is hidden.

    Chat AllowScheduled Tasks Allow

  • Read other Instagram data

    Reads what the actions above do not cover, straight from the Instagram API.

    Chat AllowScheduled Tasks Allow

Create and send 6 actions

Creates or sends something new in Instagram, such as a post, a message or an email.

  • Publish an Instagram image post

    Publishes one image as a feed post from a public https URL, with a caption, alt text, people tags, a place and collaborators.

    Chat AskScheduled Tasks Allow

  • Publish an Instagram carousel

    Publishes a carousel of 2 to 20 images (JPEG) and videos from public https URLs, in order, with one caption; every slide is cropped to the first one's aspect ratio.

    Chat AskScheduled Tasks Allow

  • Publish an Instagram Reel

    Publishes a Reel from a public https URL of a video, with caption, cover, audio name, place and collaborators.

    Chat AskScheduled Tasks Allow

  • Publish an Instagram story

    Publishes a story from a public https URL of an image (JPEG) or a video, with optional people tags.

    Chat AskScheduled Tasks Allow

  • Publish a waiting Instagram container

    Publishes a media container an earlier call left waiting: it checks the container.

    Chat AskScheduled Tasks Allow

  • Comment on Instagram

    Adds a comment as the account on one of its posts, or replies to a comment on them.

    Chat AskScheduled Tasks Allow

Change and delete 3 actions

Changes or deletes what is already in Instagram.

  • Hide or show an Instagram comment

    Hides a comment on one of the account's posts from other people, or shows it again.

    Chat AskScheduled Tasks Allow

  • Delete an Instagram comment

    Deletes a comment on one of the account's posts, or one of the account's own comments.

    Chat AskScheduled Tasks Allow

  • Make other Instagram changes

    Sends any other change straight to the Instagram API.

    Chat AskScheduled Tasks Allow

How to connect

Connect Instagram to Wiro

Open the agent's Connectors tab, choose Instagram and sign in with your account. The consent screen shows what the agent can reach.

What the Connect dialog asks for

Pick one way in the Connect dialog: it asks only for what that way needs.

Your own app

App ID and App Secret from your own Instagram app, then you sign in to Instagram in its own window.

FieldAbout
App IDRequired
  1. Go to Meta for Developers → My Apps
  2. Click Create App → select Other → select Business type
  3. After creation, copy the App ID from the dashboard
  4. In the left menu, click Add Product → find Facebook Login → click Set Up
  5. Go to Facebook Login → Settings
  6. Add this Valid OAuth Redirect URI:

https://api.wiro.ai/v1/AgentConnector/OAuthCallback

  1. Save changes
Used only to sign in; the agent never receives it.
App SecretRequired
  1. Go to Meta for Developers → select your app
  2. Go to App Settings → Basic
  3. Click Show next to App Secret and copy it
Used only to sign in; the agent never receives it.

API key

The key, pasted once instead of a sign-in.

FieldAbout
System User TokenRequired

Use a token generated for a Meta Business Manager System User. It is used on the server to discover assigned Facebook Pages, find all connected Instagram professional accounts, and derive the Page access token required by Instagram Content Publishing for every account you select.

  1. Connect each Instagram Business or Creator account to its Facebook Page
  2. Open Meta Business Settings → Users → System Users
  3. Create or select a System User; assign every connected Facebook Page with CREATE_CONTENT and assign each Instagram account's Content task
  4. Choose Generate new token and select the Business app used for the integration
  5. At Set expiration, choose Never when Meta offers it. Some businesses are required to use Meta's expiring token option; those tokens must be regenerated and reconnected before they expire
  6. Grant business_management, instagram_basic, instagram_content_publish, pages_show_list, and pages_read_engagement. Because Page roles are assigned through Business Manager, Meta's Page-linked publishing contract also requires both ads_read and ads_management. Also grant instagram_manage_insights (optional) when the agent should read post and account insights
  7. Generate and copy the token; Meta does not show it again

No App ID or App Secret is entered here for this direct connection. The Meta app used to generate the token must not enforce appsecret_proof on every server call. If a permission is missing from the token dialog, review Meta's use-case permission mapping and add the matching app use case.

Kept encrypted, never shown again.

Troubleshooting

Troubleshooting Instagram

What to check when Instagram stops working for your agent.

  • Your own app's sign-in fails Check your app's settings in Instagram: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
  • Access revoked in Instagram If the access is removed in Instagram, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose Instagram and Reconnect.
  • An invalid or expired key If Instagram refuses the key, for example after it was deleted or expired, the agent's Instagram actions fail. Create a new key in Instagram, then open the agent's Connectors tab, choose Instagram and paste it in place of the old one.
  • Limits set by Instagram Instagram limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Instagram plan.

For developers

Connect Instagram from your own product

Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.

  1. 01

    Read the connector

    Detail answers without a session: what the connector needs and the tools it gives an agent.

    POST /AgentConnector/Detail
    {
      "slug": "instagram"
    }
    Response
    {
      "result": true,
      "errors": [],
      "agentconnectors": [
        {
          "slug": "instagram",
          "title": "Instagram",
          "category": "social",
          "authtype": "provider-oauth",
          "credentialfields": [
            {
              "name": "appid",
              "label": "App ID",
              "required": true,
              "secret": false,
              "format": "text"
            },
            {
              "name": "appsecret",
              "label": "App Secret",
              "required": true,
              "secret": true,
              "format": "password"
            },
            {
              "name": "systemusertoken",
              "label": "System User Token",
              "required": true,
              "secret": true,
              "format": "password"
            }
          ],
          "accountpickers": [
            {
              "key": "accounts",
              "label": "Instagram accounts",
              "multiple": true
            }
          ],
          "tools": [
            {
              "name": "list_accounts",
              "readonly": true
            },
            {
              "name": "get_account",
              "readonly": true
            }
          ]
        }
      ]
    }
  2. 02

    Start the sign-in

    Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.

    POST /UserAgent/ConnectorConnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "instagram",
      "mode": "oauth",
      "values": {
        "appid": "YOUR_APPID",
        "appsecret": "YOUR_SECRET"
      },
      "redirecturl": "https://your-app.example.com/connectors/return"
    }
    Response
    {
      "result": true,
      "errors": [],
      "status": "pending",
      "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..."
    }
  3. 03

    Come back to your page

    After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.

    Your redirect URL
    https://your-app.example.com/connectors/return?connector_connected=true
    https://your-app.example.com/connectors/return?connector_error=authorization_denied
  4. 04

    Or connect with a key

    The same call with mode "key" connects with a pasted key instead of a sign-in.

    POST /UserAgent/ConnectorConnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "instagram",
      "mode": "key",
      "values": {
        "systemusertoken": "YOUR_SECRET"
      }
    }
    Response
    {
      "result": true,
      "errors": [],
      "status": "connected",
      "applied": 1,
      "restart": "scheduled"
    }
  5. 05

    Read the status

    connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.

    POST /UserAgent/ConnectorList
    {
      "useragentguid": "YOUR_AGENT_GUID"
    }
    Response
    {
      "result": true,
      "errors": [],
      "useragentconnectors": [
        {
          "slug": "instagram",
          "title": "Instagram",
          "authtype": "provider-oauth",
          "status": "connected",
          "accounts": {},
          "savedvariables": [
            "appid",
            "appsecret"
          ],
          "lasterror": null
        }
      ]
    }
  6. 06

    List the accounts

    After connecting, list what the agent may use. It cannot reach anything else.

    POST /UserAgent/ConnectorAccounts
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "instagram"
    }
    Response
    {
      "result": true,
      "errors": [],
      "pickers": [
        {
          "key": "accounts",
          "label": "Instagram accounts",
          "multiple": true,
          "candidates": [
            {
              "id": "1234567890",
              "name": "Example account"
            }
          ],
          "selected": []
        }
      ]
    }
  7. 07

    Save the accounts

    Every id is checked against a fresh list, then the agent uses them, with no restart for most changes.

    POST /UserAgent/ConnectorSetAccounts
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "instagram",
      "accounts": {
        "accounts": [
          "1234567890"
        ]
      }
    }
    Response
    {
      "result": true,
      "errors": [],
      "restart": "scheduled"
    }
  8. 08

    Disconnect

    Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.

    POST /UserAgent/ConnectorDisconnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "instagram"
    }
    Response
    {
      "result": true,
      "errors": [],
      "removed": true,
      "revoked": true,
      "restart": "scheduled"
    }
API Reference

Questions

Instagram and Wiro FAQ

What can an Instagram AI agent do with this Connector?

It publishes single image posts, carousels of 2 to 20 photos and videos, Reels and stories to your Instagram professional accounts, with captions, alt text, people tags, a location and up to three collaborators. It reads post, Reel and account insights, lists comments, replies to them, and hides or deletes comments on your posts. Everything it publishes is public at once, because Instagram keeps no drafts for API posts.

How do I connect Instagram to an AI agent?

Instagram can be added from the agent's Connectors tab or requested in Chat, and it offers two ways in. Sign in with Instagram through your own Meta developer app, using its App ID and App Secret, or connect with a key: a Meta Business Manager System User token that reaches the Instagram accounts linked to the Facebook Pages assigned to it. Afterwards you pick the accounts the agent may use, and it cannot reach any other.

Does it work with a personal Instagram account?

Instagram allows publishing through its API only for professional accounts, Business or Creator, so switch a personal account to professional in Instagram's settings first. For the System User token, each account must also be connected to its Facebook Page, and the System User needs the Page's CREATE_CONTENT task and the account's Content task.

Will the agent publish to Instagram without my approval?

In Chat it asks before it publishes, comments, hides or deletes anything, and it reads insights and comments without asking. Scheduled Tasks publish without a prompt by default, which lets a Reel go out at 7 pm while you are away. You can switch any action to Ask or Block, for Chat or for Scheduled Tasks, from the Connectors tab of the agent.

What limits does Instagram set on posts?

Instagram limits how many posts one account can publish through its API in a rolling 24-hour window, with a carousel counted as one, and the agent can check what is left before a batch. Image posts take a JPEG of up to 8 MB between 4:5 and 1.91:1. Reels take MP4 or MOV from 3 seconds to 15 minutes and up to 300 MB, with 9:16 recommended. Captions hold 2,200 characters, 30 hashtags and 20 mentions, and their links are not clickable. Instagram downloads each file from a public https link.

Where are my Instagram tokens kept?

The App ID and App Secret of your own app serve only the sign-in. Access tokens and the System User token are kept encrypted, out of the AI model's sight. Disconnecting Instagram from the agent wipes them, and removing the app's access in your Instagram settings ends the grant on Instagram's side as well.

Does it cost extra to automate Instagram?

The Connector is included with every agent plan, so connecting Instagram adds no cost. Meta's own limits still apply, such as the daily publishing allowance per account, and insights show follower data only for accounts with 100 followers or more.

How is this different from setting up an Instagram MCP server?

You do not set anything up beyond the connection. The Connector works inside the agent and hands it Instagram's actions as tools, limited to the accounts you picked, in Chat and in Scheduled Tasks.

Access

Revoke Instagram access

Remove the app's access in your Instagram account's connected apps settings, then disconnect it here.

Related connectors

More social connectors for your Wiro agent

  • LinkedIn logoLinkedInPublish posts to a LinkedIn organization page.
  • Mastodon logoMastodon logoMastodonRead your timeline and post statuses on your Mastodon instance.
  • Pinterest logoPinterest logoPinterestCreate pins on your boards and read their performance.
  • Reddit logoReddit logoRedditSubmit posts and comments to subreddits and read their replies.
  • Threads logoThreads logoThreadsPublish posts to Threads and read their replies and insights.
  • TikTok logoTikTok logoTikTokUpload and publish videos to a TikTok account.

Put Instagram to work with Wiro

Deploy an agent and connect Instagram from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.

Build an AgentAll Connectors

Discover, test, and run AI models, build workflows and agents with one unified API.

All systems operational
WiroModelsAgentsMCP ServerLLM GatewayBrowser ExtensionIntegrationsConnectorsPricingAboutBlogCareersContactPartnerChangelogStatusFAQ
CategoriesText to ImageImage to ImageImage EditingImage to TextText to VideoImage to VideoVideo to VideoText to SpeechSpeech to TextSpeech to SpeechVoice CloneRealtime ConversationMusic GenerationLLMUtilities
ModelsNano Banana 2GPT Image 2.5Seedream V5 ProSeedance 2.5Veo 3.1Kling V3FLUX 3FLUX.2 ProWan 3.0 PrimeGrok Imagine 1.5
PartnersGoogleOpenAIByteDanceBlack Forest LabsKling AIQwenAlibabaxAIMiniMaxElevenLabs
Getting StartedWiro ModelsWiro EffectsIntroductionAuthenticationProjectsCode ExamplesWiro MCP ServerSelf-Hosted MCPn8n IntegrationLLMs.txt
API ReferenceModelsRun a ModelModel ParametersTasksLLM & Chat StreamingWebSocketRealtime VoiceFiles
© 2026 Wiro AI. All rights reserved.
PrivacyTermsData Deletion