Docs/Messaging Channels/Facebook Messenger

Facebook Messenger

Connect your Facebook Page so your AI agent replies automatically to every Messenger conversation. Customers who message your Page through Messenger — whether from Facebook, the Messenger app, or the Page's chat plugin — all get instant AI-powered responses.

Requirements

  • A Facebook Page (not a personal Facebook profile).
  • Admin or editor access to the Page in Meta Business Manager.
  • The Page must have Messaging turned on in Page Settings.

Connecting via OAuth (recommended)

1

Open Deploy → Messenger

In your agent's left sidebar, click Deploy, then select the Messenger tab.
2

Click Connect with Facebook

This starts Meta's OAuth flow. Log in with the Facebook account that has admin access to your Page.
3

Grant permissions

AIChatVault requests pages_messaging and pages_manage_metadata permissions. Approve both.
4

Select your Facebook Page

Choose the Page whose Messenger inbox you want the agent to handle.
5

Connection confirmed

The page shows your Facebook Page name, Page ID, connection method, and status ("Live — Replying"). The agent is now active.
6

Test it

Send a message to your Facebook Page via Messenger. The agent should reply within seconds.

Manual connection (advanced)

You can also connect by entering credentials manually:

  • Page ID — the numeric ID of your Facebook Page (found in Page Settings → About → Page ID).
  • Page Access Token — a long-lived token generated in Meta's Graph API Explorer with pages_messaging and pages_manage_metadata permissions.
  • Page name — optional display label to identify which Page is connected.

If a manually connected integration stops working (token expired), you can update credentials using the Update Credentials form on the Connect tab — or simply reconnect via OAuth to replace the token automatically.

What the connected view shows

  • Facebook Page name — the Page currently linked.
  • Page ID — the Meta numeric identifier for the Page.
  • Connection method — OAuth or Manual.
  • Status — "Live — Replying" when active.
  • Connected at — when the integration was first authorised.

Stats tab

The Stats tab shows:

  • Messages received, AI replies sent, reply rate, and last message timestamp.
  • A 14-day bar chart of daily Messenger volume.
  • A paginated message log showing each conversation message and the agent's reply.

Disconnecting Messenger

Click Disconnect on the Connect tab. The agent immediately stops replying to Messenger messages. Your message log and stats are preserved. To resume, reconnect via OAuth or re-enter manual credentials.

ℹ️
If your Meta app is in Development mode, only you and users added as App Testers in Meta's App Dashboard can interact with the agent via Messenger. Switch the app to Live mode in Meta's App Review settings to make it available to all Page visitors.
💡
Messenger conversations often start with intent-heavy messages like "I want to book an appointment", "Do you deliver to [city]?", or "What's included in the [product]?" Add Q&A pairs that anticipate these patterns. Because Q&A answers are always placed first in the retrieval context, these common questions get accurate, instant answers without the agent needing to search through longer documents.

Was this page helpful?