Connecting a Flow Agent to your Facebook inbox

Assign a Flow Agent to your Facebook inbox so it answers Messenger conversations, including the ones that start from a comment.

Last updated
On this page
On this page

Once your Facebook Page is connected, a Flow Agent can answer Messenger conversations for you — day and night, in the customer’s own language. This guide assigns an agent to the Facebook inbox and publishes it.

Watch the walkthrough

Before you start

1. Open the agent

Go to Flow Agents → Agents and open the agent you want on Facebook. The designer opens with the Designer, Playground and History tabs, and the Settings, Inboxes and Publish buttons in the header.

2. Assign the Facebook inbox

Click Inboxes in the header. In the Assign Inboxes window, tick your Facebook inbox and click Save.

Assign Inboxes window with the inbox list

Each inbox can only be assigned to one Flow Agent. If your Facebook inbox is already handled by another agent, untick it there first — otherwise it won’t be available here.

3. Publish the agent

Assigning the inbox is not enough on its own: the agent only starts replying once it is published. Click Publish and choose who it responds to:

  • Public — everyone messaging the connected inboxes.
  • Testers only — only your workspace testers (Settings → Account Settings → Testers), so you can trial the agent on the live Page before opening it to customers.

Publish flow agent window

4. Test it

Open your Facebook Page and send it a message as a customer would, or scan the QR code shown when the inbox was created. The agent should reply in Messenger, and the conversation appears in your Facebook inbox in Mampu AI.

While testing, the Playground tab lets you chat with the agent without involving Facebook at all — useful for checking the flow itself before you publish.

How this works with comments

If you use Facebook Comment Replies, the two features fit together:

  • A comment matches your rule, and Mampu AI sends the commenter a private message.
  • With Reply with Flow Agent turned on in the rule, the agent writes that private message instead of a fixed text — it sees the post and the comment, then carries the conversation on in the private thread.

That toggle only works once an agent is assigned to the inbox and published, which is what this guide sets up.

Fine-tuning how the agent behaves

Per inbox, you can also decide when the agent should stay quiet:

  • Pause when a human replies — when a teammate answers, the agent steps back instead of talking over them.
  • Labels — Don’t reply to these labels makes the agent skip conversations or contacts tagged with the labels you pick, so complaints and VIPs stay human-handled. Only reply to these labels does the opposite: the agent replies only to customers who have one of them, and stays quiet with everyone else until the label is added. Comment replies are not limited by it — see Testing and connecting an agent.
  • Only reply to chats from ads — the agent only replies to chats that started from a Meta ad. Pick From one of these ads and list the ad IDs, or From any ad to cover every ad. Chats opened by a comment reply still get the agent.

Turn links into buttons decides how the agent’s links look in Messenger. On, each link in a reply also gets a tap button under the message, up to three per reply; off, the links stay as plain text. It is on to start with — see Links become a button.

The Turn links into buttons switch for a Messenger inbox in the Assign Inboxes window

For the agent’s own conversation behaviour — how long it pauses after a handoff, whether it keeps answering FAQs after the flow ends, and the reply delay — see Testing and connecting an agent.