You can integrate the Agent service into your Instagram, allowing you to communicate with the Agent via Instagram.
Preparation
Prepare a Facebook account.
Prepare an Instagram account, and
- Change your profile to a business account. For detailed steps, refer to How to set up a business account on Instagram.
- Add your Instagram account on the homepage of Meta Business Suite.
Create an Instagram App
Log in to Meta for Developers using a Meta developer account. If you don't have a developer account, create one by following the instructions in Register as a Meta Developer.
On the Apps page, click Create App.
Select Other, then click Next.
Choose the app type and click Next.
Enter the app name and click Create app.
In the navigation bar on the left side of the page, click Add Product, find Messenger, and click Set up.
In the left navigation bar, select Messenger > Instagram settings, then click Add or remove Pages to add the created public page and Instagram account.
After adding the page, click the Generate token button. Copy and save the generated token.
Copy and save the generated token.
Add Callback URL
Log in to Meta for Developers and open the previously created application.
In the left navigation bar, select Messenger > Instagram settings, then go to Webhooks and click Add Callback URL.
Go to GPTBOTS, select the corresponding Agent, save the version, publish it, click Integration, select Instagram, and copy the Webhook information. Fill it in under Instagram settings.
In the left navigation pane, click Webhooks. Then find Messages and click Subscribe.
Publish Your Agent
Log in to GPTBOTS.
Go to GPTBOTS, select the corresponding Agent, save the version, publish it, click Integration, select Instagram, fill in the relevant information in Instagram App Credentials, and click Modify.
Test Your Agent
Log in to Instagram and create a new account for testing the Agent.
Associate the test account with a Facebook account.
- Open Facebook Profiles.
- Click Add accounts to add the Instagram test account. In this example, it is the account used to chat with the Agent, and it is the Instagram account where the Agent has been published.
- Add a test user role in the Instagram app. If the Facebook account associated with the Instagram account (where the Agent is published) is an admin role, this step can be skipped.
- Open the Instagram app in the Facebook Developer Center.
- On the app management page, select App roles > Roles, then click Add People.
- Select Tester and enter the username of the Facebook account associated with it.
- On the Facebook Profiles page, click the corresponding Facebook account, then click the username option to get the username of that account.
Log in to Instagram using the created Instagram test account.
Find the account on Instagram where the Agent has been published, click the messages option, and you can start chatting with the Agent.