Integration · Team chat
AI agents for Facebook Messenger
Read and answer the Messenger conversations of one Facebook Page.
- Actions
- 7
- Read
- 4
- Write
- 3
Actions
What your agents can do in Facebook Messenger
Read and answer the Messenger conversations of one Facebook Page: list conversations and their messages, reply with text, images or files, show a typing indicator, and read the profile of the person writing, with a Page access token.
Read 4
Look things up. Nothing changes.
List conversations
Lists the Page's Messenger conversations, most recently active first, at data[].
List messages in a conversation
Reads the latest messages of one conversation at messages.data[], newest first.
Get a message
Reads one message by ID (m_…, as list_messages or a webhook gives it): created_time, from, to, message (text) and attachments.
Get a person's profile
Reads the public profile of a person who messaged the Page, by Page-scoped ID: name, first_name, last_name and profile_pic (a URL that expires).
Write 3
Create, change or send.
Send a text message
Sends a text message from the Page to a person, by their Page-scoped ID (PSID).
Send an image, video, audio or file
Sends media from the Page to a person (by Page-scoped ID): an image, video, audio clip or file that Meta downloads from a public url.
Show typing or mark as seen
Shows the person that the Page is working on a reply: typing_on (the typing bubble, for up to 20 seconds or until the next message), typing_off, or mark_seen (marks their last message as read).
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Paste an API key from your Facebook Messenger account.
What you enter
- Page access token
Settings
- Page ID
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Facebook Messenger data
Ask a question in plain words. The agent can list conversations, list messages in a conversation or get a message in Facebook Messenger, then answers with what it found.
- 02
Let an agent update Facebook Messenger
Have the agent send a text message or send an image, video, audio or file in Facebook Messenger as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Work from your CRM
Give one agent HubSpot and Facebook Messenger: it can search contacts in HubSpot and send a text message in Facebook Messenger in the same run.
FAQ
Facebook Messenger and MyDeepAgents
Can MyDeepAgents connect to Facebook Messenger?
Yes. The Facebook Messenger connector has 7 actions: 4 read and 3 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Facebook Messenger?
Paste an API key from your Facebook Messenger account. You'll need: Page access token. The connection also asks for: Page ID. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Facebook Messenger without asking?
Only if you let it. Each of the 3 actions that change data can be set to wait for a person's approval before it runs.
Can I use Facebook Messenger in workflows as well as agents?
Yes. Every Facebook Messenger action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Facebook Messenger to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.