Facebook Messenger Integration

Connect your Markleyo AI chatbot to Facebook Messenger, allowing you to reach customers where they're already spending time. It enables your customers to directly chat with your AI bot via your facebook messenger.

What is Facebook Messenger Integration?

This integration allows your chatbot to automatically respond to messages sent through:

Customers message your Facebook page, and your chatbot responds automatically.

Prerequisites

How to Set Up Facebook Messenger Integration

Note: It is a DIY method. Each page must have separate apps created in the developer portal.

Step 1: Create a Facebook App

  1. Go to Facebook for Developers and log in with your Facebook account.

  2. Click My AppsCreate App.

3. Select the use case i.e., "other"

  1. Choose Business as the app type and provide the required details.

  1. Once created, you’ll receive an App ID and App Secret, keep these handy.

Step 1: Setting Up a Facebook App

  1. From your app dashboard, navigate to Messenger under Add Products and click Set Up button.

  1. Select the Facebook Page you want to connect to your chatbot.

  1. Generate a Page Access Token for that page.

  2. Copy the Page Name and Access Token, you’ll need them in Markleyo AI.

Step 3: Set Up Webhook & Verify Token

  1. In your app settings in facebook developer portal, go to Messenger → Settings → Webhooks.

  2. Add a Webhook URL (this will be provided by Markleyo AI when you set up Messenger as a channel in your chatbot).

  3. Enter a Verify Token (a secure string you create and later provide in Markleyo AI).

  4. Select the required webhook events (messages, messaging_postbacks, etc.).

Step 4: Configure in Markleyo AI

  1. Log in to your Markleyo AI dashboard.

  2. Go to AI Bots and edit the chatbot you want to connect.

  3. Navigate to the Channel step.

  1. Select Facebook Messenger and fill in the following field.

  1. Click Save, your chatbot is now connected to Facebook Messenger!

  2. From the list of channels click on the Details button.

  1. It will show the webhook, copy it and open facebook developer app.

  1. Now put the webhook in the callback URL of the messenger API settings (Step 3 above), verify and save.

Using Facebook Messenger

For Customers:

For You:

Tips for Facebook Messenger Success

1. Welcome Message
Set a helpful welcome message that appears when someone opens Messenger.

2. Quick Replies
Configure quick-reply buttons to guide conversations and improve UX.

3. Segmentation
Use Facebook Pixel to segment customers and customize chatbot responses.

4. Business Hours
Let customers know support hours and set appropriate escalation rules.

5. Personal Touch
Even though it's a bot, make interactions feel helpful and human-like.

6. Regular Updates
Keep your Facebook knowledge base current so chatbot provides accurate information.