Documentation Index
Fetch the complete documentation index at: https://chatbotx.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:- A valid Facebook account
- A Facebook Page you own or administer
- A valid Instagram Professional account (Business or Creator) linked to that Facebook Page
- A ChatbotX installation with a publicly accessible URL (required for both the webhook callback and the OAuth callback when connecting your account)
If you are developing locally, you will need a tunneling tool such as ngrok to expose your local server to the internet.
Step 1: Create a Facebook App
If you have already created a Facebook app for the Messenger channel, you can reuse it for Instagram, skip to Step 2.Create a new app
Go to the Facebook Developer Portal and click Create App.

Step 2: Configure Credentials in ChatbotX
A Super Admin must enter the Instagram App credentials in ChatbotX before the integration can work. Complete this step immediately after obtaining your App ID and App Secret.Open the Instagram configuration
Click the Edit button on the Instagram card to open the configuration modal.

Enter your App credentials
Fill in the following fields using the values from the Meta Developer Portal:
| Field | Description | Where to find it |
|---|---|---|
Client ID | Your Facebook App ID | Settings → Basic |
Client Secret | Your Facebook App Secret | Settings → Basic → click Show |
API Version | Facebook API version (use v2.0) | Settings → Advanced |
Webhook Verify Token | A secret string used to validate incoming webhook requests | Choose your own value, for example, a random string |
Step 3: Configure the Instagram App
Add Instagram product to your app
In the App dashboard, find the Instagram card under “Add products to your app” and click Set up.

Open the API setup page
After adding the Instagram product, you will be redirected to the API setup with Instagram business login page. This page consolidates all configuration into 4 steps.

Configure webhooks
Under Step 2: Configure webhooks, fill in the following:
- Callback URL: Use the Webhook URL generated by ChatbotX in Step 2 (for example,
https://app.yourdomain.com/webhooks/instagram) - Verify Token: Enter the Webhook Verify Token value you configured in the ChatbotX Integrations settings (Step 2)
To receive webhooks, your app mode must be set to Live. You can toggle this from the top bar of the App dashboard.

Step 4: Connect your Facebook Page to Instagram
Open Facebook Page settings
Go to Facebook Pages, select your page, and open Settings.
Link your Instagram account
Go to Linked Accounts and connect your Instagram Professional account.
- Select Instagram

- Click Connect account

Step 5: Create an Instagram Channel in ChatbotX
Open the channel configuration
Log in to your ChatbotX dashboard, go to Settings → Channels, and click Add Instagram.
Click Connect.


Grant access permissions
The system will redirect you to the Facebook (Meta) permission granting interface. Click Continue as [Your Name] to grant permissions.
If you have previously connected other pages, click Edit Settings to ensure the new Instagram account is included in the current permission session.

Test the connection
Your Instagram account is now connected. You can test it using one of the following methods:
- Create a Flow: Go to the Flows section in the sidebar, create a simple welcome message or interactive menu, then send a DM to the Instagram account to verify the response.
- Set up an AI Agent: Go to the AI Agent tab to configure your agent’s personality, then send a DM to the Instagram account from another account to test the AI response.
Enable “Allow Access to Messages”: In the Instagram mobile app, go to Settings and privacy → Messages and story replies → Message controls, and make sure “Allow Access to Messages” is turned ON. This is required for third-party tools to receive your Direct Messages.









