Connect Instagram to B6AI
Connect the Instagram channel end to end, set up Instagram, connect it in B6AI, publish your bot, and go live with confidence.
Overview
Connecting Instagram Direct lets your bot answer DMs on your professional Instagram account, with handoff to human agents, ideal for social commerce and support.
Instagram messaging runs through Meta and requires your Instagram account to be linked to a Facebook Page.
What you can do on Instagram
Connecting Instagram lets your bot hold real conversations there, with full handoff to human agents when needed. On this channel you can:
- Answer Instagram Direct messages with your bot.
- Respond to story replies and mentions (within Meta’s policy).
- Hand off to a human agent when needed.
- Use quick replies and buttons to guide the conversation.
- Share product and link content to drive social commerce.
How the Instagram channel works
B6AI connects through a Meta app to your Instagram professional account, which must be linked to a Facebook Page. Inbound DMs arrive at B6AI via a webhook; B6AI replies using a Page access token that has Instagram messaging permissions.
A messaging window applies, similar to Facebook Messenger.
Prerequisites
Have all of the following ready before you begin, each is required to complete the connection.
- An Instagram professional (Business or Creator) account.
- A Facebook Page linked to that Instagram account.
- A Meta app with the Instagram and Messenger products.
- Admin access to the Page/business, and the Enterprise Admin role in B6AI.
Link Instagram to a Page & Meta app
- In the Instagram app, convert your account to a professional account (Settings → Account type and tools).
- Link the Instagram account to a Facebook Page (Page settings → Linked accounts).
- At developers.facebook.com, create or select an app and add the Instagram and Messenger products.
- Connect the Page/Instagram account to the app and allow access to messages.
Get your Instagram (Meta) messaging credentials
These are the values you will paste into B6AI. Copy each one carefully.
- Generate a Page access token with the instagram_manage_messages permission (via the app’s Messenger/Instagram settings, for the linked Page).
- Copy the Page ID and the Instagram account ID.
- Choose a Webhook verify token you’ll use on both Meta and B6AI.
Page ID: 1044xxxxxxxx
Instagram account: 1789xxxxxxxx
Page access token: EAAG…
Verify token: <a-strong-random-string>Required permissions
Grant exactly these permissions so B6AI can send and receive messages on Instagram.
| Scope / permission | What it allows | Why B6AI needs it |
|---|---|---|
| instagram_basic | Read the Instagram account profile | Identify the connected account |
| instagram_manage_messages | Send and receive Instagram DMs | Core: reply to direct messages |
| pages_manage_metadata | Manage Page webhooks | Receive message events for the linked Page |
| pages_messaging | Message via the linked Page | Deliver replies through the Page token |
Configure the webhook
Incoming messages reach B6AI through a webhook. In most cases B6AI registers this for you when you connect; if Instagram requires manual setup, use the values B6AI shows during connection.
- In the Meta app webhooks, subscribe the linked Page to the messages/messaging fields.
- Set the Callback URL and Verify token to the values B6AI shows.
- B6AI completes the verification handshake automatically.
Connect Instagram in B6AI
Channels are configured per bot. In B6AI, open Bots and choose the bot you want on Instagram, switch to its Channels tab, and click Configure on the Instagram card. Complete the form (every field is explained below), Save, then toggle Enable to turn the channel on.
- In B6AI, open Bots, choose your bot, and go to its Channels tab.
- Click Configure on the Instagram card.
- Enter the Instagram account ID and the access token that has Instagram messaging permissions.
- Save, then toggle Enable.
| Field | What it is | Example value |
|---|---|---|
| Account ID | Your Instagram professional account id | 1789xxxxxxxx |
| Access token | The token with Instagram messaging permissions (from the linked Page) | EAAG… |
Publish the bot to Instagram
Once the channel is configured and enabled on the bot, publish the bot so customers get answers on Instagram.
- On the bot’s Channels tab, confirm the Instagram channel shows Configured and is Enabled.
- Open the bot in Bot Builder and run it through the test simulator until it passes validation.
- Click Publish. The bot now serves conversations on Instagram.
Verify with a test conversation
Confirm the channel is live end to end before sharing it with customers.
- From a different Instagram account, send a DM to your professional account.
- Confirm the bot replies.
- Check the conversation appears in the Chats inbox and test a handoff.
Messaging rules & behavior
Every channel has its own rules about when and how businesses may message customers. Understanding these prevents blocked or undelivered messages.
- A standard 24-hour window applies for responding to user-initiated messages.
- Human-agent handoff has an extended window under Meta’s policy.
- You can’t message people who haven’t messaged you first.
- All content must follow Instagram’s platform and messaging policies.
Troubleshooting
If messages are not delivered or the bot does not reply, match the symptom below to its cause and fix.
| Symptom / error | Likely cause | How to fix it |
|---|---|---|
| No messages received | Page not subscribed, or IG not linked to the Page | Link IG to the Page and subscribe the Page to messages |
| (#10) permission error | Missing instagram_manage_messages | Add the permission and reauthorize the Page token |
| Token invalid | The Page access token expired | Regenerate the Page access token |
| Can’t reply outside the window | The messaging window has closed | Reply within the allowed window, or rely on the handoff window |
Limitations
Keep these constraints in mind when designing conversations for Instagram.
- Requires a linked Facebook Page.
- Messaging windows and Instagram policy restrictions apply.
- One Instagram account per channel connection.
Security & compliance
- Grant only the scopes and permissions listed above, never request more “just in case”.
- Rotate your Instagram (Meta) messaging credentials on a regular schedule, and immediately if you suspect exposure.
- Restrict the Enterprise Admin role (which manages integrations) to a small, trusted group.
- Prefer a dedicated service account or bot user over a personal login, so access survives staff changes.
- Review the integration’s activity in the B6AI Activity Logs periodically for unexpected calls.
- Disconnect the integration the moment a credential leaks; then rotate it in Instagram before reconnecting.
Recommendations
- Test against a sandbox or non-production Instagram account before connecting live data.
- Document which bots and flows depend on this integration so changes are predictable.
- Set a recurring reminder to review scopes and rotate credentials.
- Enable only the capabilities you actually use today; you can widen scopes later.