Connect Instagram to your Wiro AI agent
Publish photos, carousels, Reels and Stories to your Instagram professional accounts.
Last week's posts: which ones did people save most, and did we gain followers?
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.
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 01
Connect Instagram
Deploy an agent, open its Connectors tab, choose Instagram and sign in with your Instagram account, or paste an API key.
- 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.
- 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 goes
graph.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 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.
| Field | About |
|---|---|
| App IDRequired |
|
| App SecretRequired |
|
API key
The key, pasted once instead of a sign-in.
| Field | About |
|---|---|
| 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.
No App ID or App Secret is entered here for this direct connection. The Meta app used to generate the token must not enforce |
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.
- 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 } ] } ] } - 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=..." } - 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 - 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" } - 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 } ] } - 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": [] } ] } - 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" } - 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" }
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
LinkedInPublish posts to a LinkedIn organization page.
MastodonRead your timeline and post statuses on your Mastodon instance.
PinterestCreate pins on your boards and read their performance.
RedditSubmit posts and comments to subreddits and read their replies.
ThreadsPublish posts to Threads and read their replies and insights.
TikTokUpload 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.