To add the Facebook Messenger channel to your assistant, you need a developer Facebook account to configure the connection between Facebook Messenger and Kore.ai. Adding the Facebook Messenger channel to your Kore.ai VA allows end-users to interact with it using their Facebook accounts.
Step 1: Create a Facebook Messenger App
- =In the XO Platform, select the assistant for which you want to add the Facebook Messenger channel.
- Go to Deploy > Channels > Facebook Messenger and open the Configurations tab.
- In a new browser, log in to the Facebook developer portal and select the Create App option from the My Apps section.
- Under Select an App Type, choose Business.
- Enter the required details, then click Create App.
- For security reasons, you may be asked to enter your Facebook Password.
- Your App is now created and you are redirected to the App setup page. Select Messenger and click Set Up to continue. You are redirected to the Settings page.
- You now need to associate a page with the app. If you do not have a page, you can create a Facebook page here.
- Next, click Generate Token. Copy the Page Access Token and provide it in the XO Platform channel Configurations page.
- From underneath the name of your Facebook page, copy the Page ID and provide it on the Configuration page.
Step 2: Configure Webhooks
- Scroll to the Webhooks section, and add the Callback URL and Verify Token, which you can retrieve from within the Configuration page in the XO Platform.
- Once your webhook is set up, click Add Subscriptions and select messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads. Click Save when done.
Step 3: Retrieve App ID & Secret
Go to the main settings menu and select Basic settings; where you need to capture the App ID and App Secret, and enter them in the Configurations tab.
Step 4: Submit the App for Approval
Configure any other settings that Facebook might require, then submit the app for approval. Once approved, you can enable the Facebook Messenger channel for your assistant. For more info on how to submit the app, click here.
Step 5: Enable the Channel
On the XO Platform channel Configuration page, ensure that all details are submitted, then select whether you want to show the typing indicator.
Select Yes, then Save to enable the channel.
After the channel is enabled and all configurations are verified, you can optionally publish the assistant to make it available for end-users, with the new channel. Learn more about Publishing your Virtual Assistant.
To learn more about working with Channels within the Kore.ai XO Platform, please see Channel Enablement.