Introduction
The Scoreapps AI chatbot integration with Facebook Messenger allows you to serve your users directly from your Facebook page. Thanks to this connection, the messages you receive in Messenger will be managed by your Scoreapps AI assistant and will respond automatically according to the training you have configured.
Below are the steps to configure the integration.
Step 1 – Create a Facebook App
1. Access Facebook for Developers with your Facebook account and click on My Apps → Create App
2. Select the use case that best suits your project.
3. In the application type, choose Business and fill in the required information.
Upon completion, you will get an App ID and an App Secret. Save them because you will need them later.
Step 2 – Activate Messenger and obtain the access token
1. From the app dashboard, go to Add Products and select Messenger.
2. Choose the pageFacebook account that you want to connect to the Scoreapps chatbot.
3. Generate a Page Access Token for that page.
4. Write down the page name and access token.
Step 3 – Configure the webhook and Verify Token
1. In the app settings, navigate to Messenger → Settings → Webhooks.
2. In “Callback URL” enter the URL of the webhook that Scoreapps will provide you when you add the Messenger channel (step 4).
3. Enter a Verify Token: it is aa secure chain that you define yourself and that later
will use in Scoreapps.
4. Select the events you want to receive (for example: messages, messaging_postbacks, etc.) and save the changes.
Step 4 – Set up the channel in Scoreapps
1. Access your Scoreapps account and enter the AI Agents section.
2. Edit the chatbot you want to connect and navigate to the Channels step.
3. Select Facebook Messenger in the channel list

4. A form will open where you must fill out the following fields with the data obtained in the previous steps available.
• App ID (App ID).
• Secret App.
• Name of the page.
• Access Token.
• Verify Token (the same one you set up on Facebook).
5. Tap Add channel to save. The Messenger channel will appear in the list of configured channels.
6. Click Detail to copy the Webhook URL to paste into the Callback URL field in the Facebook dashboard.
7- The webhook will be displayed, copy it and open the Facebook Developers app.
8. Now place the webhook in the callback URL of the Messenger API settings.