For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect a Messaging Platform: Instagram

Connect an AI agent to Instagram Direct for a professional account, including prerequisites, the authorization process, and FAQs

The Instagram Direct connection is built on a Facebook Page. MaiAgent obtains authorization through the Page linked to the Instagram account, then uses the Page to receive and reply to Instagram Direct messages. The authorization process is the same as for FB Messenger, except the Page must first be linked to an Instagram professional account.

Before You Connect

MaiAgent preparation

Instagram account preparation

  • The Instagram account has been switched to a professional account (business or creator account). Personal accounts cannot be connected.

  • The Instagram account is linked to a Facebook Page. Complete the connection under Settings → Business tools and controls → Linked accounts in the Instagram app, or under Settings → Linked accounts on the Page.

  • The Instagram account allows messages to be received (Settings → Messages and story replies → Message controls → Allow access to messages through connected tools).

Facebook permission preparation

  • The Facebook account used to log in has been invited to or has created a business portfolio and has full control.

  • If the Page is already in the business portfolio: No additional changes are required.

  • If the Page is not in the business portfolio: You must be an administrator of the Page and have full control.

Don't have a business portfolio yet? Follow Meta's official instructions to create a business portfolio. The creator automatically receives full control.

How do I check whether I have full control? Go to Settings → Users → People in Meta Business Suite, then select your name to view your permissions. If you only have partial access, ask a member with full control of the portfolio to update your permissions. See Meta's official instructions for details.

Must I add the Page to the business portfolio first? Not necessarily. You can claim the Page during authorization. If you prefer to organize it in advance, follow Meta's official instructions to add the Page to the portfolio.

Must I add the Instagram account to the business portfolio? No. MaiAgent obtains the linked Instagram account through the Page. The Instagram professional account only needs to be linked to that Page.

Start Connecting

1. Open the messaging platform connection page

Select Messaging Platforms from the menu on the left, click Connect Messaging Platform in the upper-right corner, then select Instagram on the platform selection page.

2. Log in to Facebook and authorize access

Click Log in with Facebook and sign in with the Facebook account that manages the Page. The authorization window asks you to complete the following steps in order:

  1. Select the business portfolio to authorize.

  2. Select (claim) the Page linked to the Instagram account.

  3. Confirm the authorization.

MaiAgent accesses only messages from the Pages you authorize and their linked Instagram accounts. It does not access your personal messages.

Log in with Facebook

3. Basic settings

Field
Description

Messaging platform name

Give this connection a name so you can identify it easily.

AI agent

Select the AI agent that will reply to Instagram Direct messages.

Select Page

Select the Page linked to the Instagram account from the list. The system automatically retrieves the Instagram account linked to that Page.

Enable reset commands

(Optional) When enabled, you can configure one or more commands. When a user sends one of these commands in a direct message, a new conversation begins, such as “Start over.”

The list shows all Pages you have authorized. If the Page you select is not linked to an Instagram account, the error “This Page is not linked to an Instagram account” appears when you save. Return to Instagram or the Page settings, complete the connection, and try again.

4. Save and verify the connection

Click Connect Messaging Platform to finish creating the connection. After the connection succeeds, MaiAgent automatically subscribes to message events for the Page through Meta. You do not need to configure a separate Webhook.

Use another Instagram account to send a test direct message to the professional account. If the AI agent replies normally, the connection was successful. You can also open this connection from the MaiAgent messaging platform list and view incoming direct messages under All Conversations.

After the connection succeeds, click Edit in the messaging platform list to configure additional options, including OCR, answering with the system time or sender name, handoff to a human agent, conversation tags, and access control. For details, see Messaging Platform Settings Overview.

Supported Message Types

Direction
Supported content

User → AI agent

Text, images, videos, voice messages, and stickers; OCR can be used with images.

AI agent → User

Text and images

FAQ

Q: Why is the Page list empty after authorization?

The Facebook account you used to log in does not have full control of the Page, or the Page was not selected during authorization. Follow Before You Connect to check the permissions, log in again as a Page administrator, and make sure the correct Page is selected in the authorization window.

Q: Why does “This Page is not linked to an Instagram account” appear when I save?

The Page and Instagram professional account have not been linked, or the Instagram account is still a personal account. Switch to a professional account in Instagram, link it to the Page, and authorize it again.

Q: Why does “This Instagram account is already in use” appear when I save?

The same Instagram account is already connected to another messaging platform in the organization. Delete the original messaging platform, then create it again.

Q: Why hasn't MaiAgent received a user's direct message?

Check the following in order: the Instagram account's message controls allow connected tools to access messages; the connection between the Page and Instagram account is still active; and the authorized Facebook account is still an administrator of the Page. If the authorization has expired or the Page permission has been removed, delete the messaging platform and connect it again.

Q: Can Instagram and FB Messenger use the same AI agent?

Yes. They are separate messaging platforms and can be linked to the same AI agent, or you can configure different options for each platform.

Last updated

Was this helpful?