Facebook Messenger
You can integrate the Agent service into your Facebook Messenger, allowing your Messenger users to communicate with the Agent through Messenger.
Create a Facebook Messenger APP
- Log in to Meta for Developers and click Create APP
Select Other, then click Next
Choose the Business app type and click Next
Enter the app name, click Create app, and if you have a business account, associate your account.
Obtain Messenger Configuration
On the page, click Add Product and find Messenger, then click Set up
Click Messenger API Settings, and on the Configure webhooks page, click Configure
Configure the following parameters in Edit Callback URL
4. Go to Generate access tokens and click Connect. Follow the prompts to complete verification and select the Facebook public page associated with the Messenger API to complete the public page association. If there is no public page to use, click Continue to proceed. Then go to Facebook public page to create one. After creating the page, return to re-verify and associate the public page.
After associating a page, click Add Subscriptions
Select Messages, then click Confirm
In Generate access tokens, click Generate
Copy and save the generated page token and page ID, then check the "I understand" checkbox and click Done. The page token and page ID will be used later in the configuration.
Select App settings>Basic, copy the App secret, and save the APP secret for later use in the configuration.
Configure in Agent
Log in to GPTBOTS
Enter the organization, select the corresponding Agent, save the version, and click Publish. After successful publishing, click Integrations
Select Facebook Messenger in the integration methods
Enter the Token, Page ID, and App Secret, then click Modify
If you want to update the welcome message, you can click Advanced Setting
Chat with Agent in Facebook Messenger
Log in to the Facebook public page and copy the URL of this page
Click the account avatar in the upper right corner of the page, then click the developer account
Enter the URL of the public page in the browser and click the send message button. Then, you can communicate with your smart Agent in the pop-up Messenger window. Additionally, you can search for the public page in Messenger to start a conversation with your Agent.
Share your Agent
If you have a Meta enterprise account and want to share your Agent with other Messenger users, you need to complete app review on Meta Developer. Once verified, you can share your Agent with other Messenger users.
If your developer account is not certified by Meta Enterprise, the Agent can only be used by the developer and cannot be shared with other Messenger users. Additionally, due to Meta's restrictions, the Agent cannot be used in group chats for now.