Skip to main content
Facebook Messenger Endpoint logo
The Facebook Messenger Endpoint enables you to connect AI Agents to the Facebook Messenger platform.

Prerequisites

Generic endpoint settings

Override snapshot connections

If you activate the Override Snapshot Connections toggle, the endpoint overrides the connections in the snapshot with connections from the project. If only the snapshot has a connection, the connection isn’t overridden. If necessary, you need to update such connections manually. To override the connection of the agent in production, you can:
  • Make the necessary changes in a staging environment, create a snapshot of the same agent, and select the snapshot in the endpoint settings. Deactivate the Override Snapshot Connections toggle.
  • Import connections from another agent using a package. Activate the Override Snapshot Connections toggle.

Mocking

In the Advanced Settings section, you can toggle on the Enable Mocking setting to activate mocking for the endpoint. Mocking lets you change node behaviors and test how they perform through the endpoint without changing the original node settings. Make sure that you also activate mocking at the node level.

Additional endpoint settings

You can use the following additional settings to customize the endpoint:

Endpoint-specific settings

How to set up

  1. Log in to your Facebook account. Go to the Pages section.
  2. Click Create New Page, select a type (Business or Community), and provide a name and category.
  3. Go to the Facebook (Meta) Developer Center.
  4. Click Manage Apps, then Add a New App.
  5. Fill in the required details to complete the app creation.
  6. In your app’s product overview, locate Messenger and click Set Up.
  1. Go to Messenger > Access Tokens. Add the Facebook Page created earlier.
  2. Click Generate Token, acknowledge the warning, and copy the token.
  1. In the left-side menu of the Cognigy Project, go to Deploy > Endpoints.
  2. On the Endpoints page, click + New Endpoint.
  3. In the New Endpoint section, do the following:
    1. Select the Messenger Endpoint type.
    2. Add a unique name.
    3. Select a relevant Flow from the list.
  4. Open the Facebook Page Setup section. Paste the Page Access Token from the Facebook App.
  5. (Optional) Enter your App ID and App Secret for additional security.
  6. Copy the Endpoint URL for later use.
  1. Go to the Facebook app. Under Messenger > Webhooks, click Add Callback URL.
  2. Paste the Endpoint URL as the callback URL.
  3. Enter the Verify Token from Cognigy:
    • For https://trial.cognigy.ai, use the token 6a1ed94ef26462d1a529ab80afabe135e5ac7cc8b414ef762e1208f3339f887196d3433c996c0f30ea15295fbd86293cd7516abaa9b9e78d641ebb514eea32b4.
    • For other environments, contact Cognigy technical support for more information.
  4. Click Verify and Save.
  5. Add Subscription Fields: select messages, messaging_postbacks, and optionally messaging_referrals. Save the settings.

More information

Last modified on November 11, 2026