Facebook auto reply API for Page comments and Messenger
The Facebook auto reply API answers Page comments and Messenger conversations from rules you set. A flow matches a keyword or a button payload and replies in public or in private, and the execution logs keep a record of the result.
Last updated: October 2026
Official APIsDirect engineer support
{ "teamId": "team_123", "name": "Messenger menu pricing", "platformScope": "FACEBOOK", "definition": { "trigger": { "type": "BUTTON_CLICKED", "platform": "FACEBOOK", "socialAccountId": "sa_facebook_1", "payloads": [ "MENU_PRICING" ] }, "steps": [ { "type": "SEND_MESSAGE", "message": { "text": "Our plans are on the pricing page. Want a walkthrough?", "buttons": [ { "id": "btn-pricing", "type": "URL", "label": "See pricing", "url": "https://example.com/pricing" }, { "id": "btn-demo", "type": "POSTBACK", "label": "Book a demo", "payload": "MENU_DEMO" } ] } } ] }}- customers
- 17,242+
- connected accounts
- 1.09m+
- uptime
- 99.881%
- Trustpilot
- 4.8 / 5
Page comments and Messenger in the same flows
Page comment responses
A flow watches one post and can reply to a matching comment or like it.
Messenger events
An incoming message, or the payload from a tap on Get Started, a menu item, or a button, decides what the flow sends next.
Page-specific context
Each flow belongs to one Page and team and runs with that Page’s permissions.
How Facebook auto reply works
- 01
Connect and prepare the Page
Grant the permissions the flow needs. Private messages also need messaging enabled for the Page. - 02
Choose the event and conditions
Start from a post comment, an incoming message, or a Messenger payload, and set the conditions that must match. - 03
Publish the response flow
Test the draft and publish it. The execution logs then show which actions were sent, skipped, or failed.
Example
Use Messenger payloads to continue the conversation
When someone taps Get Started, a menu item, or a button, the tap carries context that a flow can act on. You set up those entry points in the documented Messenger settings and build each response around the payload that came in.
bundle.social treats the Messenger persistent menu (up to three items) and the Get Started button as a provider setting on the Page. You save the menu and then sync it to Messenger. Tapping a menu item, Get Started, or a postback button in an earlier message sends a payload, and the flow whose button-click trigger lists that payload answers it. Get Started sends GET_STARTED unless you set your own payload.
Link buttons open a website and send nothing back to the Page, so they cannot start a flow. If a tap should lead to another message, use a postback button and give it a flow; a postback tap with no matching flow goes unanswered.
Comment flows on a Facebook Page can also like the matching comment, which Instagram flows cannot do. A private reply on Facebook is text only and works on top-level comments up to seven days old. Messenger also allows phone buttons that start a call.
Example: answer a Messenger menu tap
The Pricing item in your persistent menu sends the MENU_PRICING payload, and this draft flow answers it. The reply is a short message with two buttons: a link to your pricing page and a postback for a second flow to pick up.
Click triggers match payloads rather than keywords and have no postId. Put your own team and Page account IDs in place of the samples, and test on a conversation with your own account before you publish.
POST /api/v1/automationsRead about the persistent menu and Get Started
Getting started
Configure the Page before publishing a flow
Supported accounts and limits
- Flows run on Facebook Pages only. Personal profiles cannot be automated.
- A comment flow covers one post or every post on the account, including posts published outside bundle.social.
- Messenger replies need the Page’s permissions and follow Meta’s messaging rules.
- Persistent menu and Get Started are configured per Page in the provider settings.
- Data retention policy
FAQ
Questions developers ask before building
Can I automate personal Facebook profile messages?
Can a flow reply to a comment privately?
Can I use the Messenger persistent menu?
Can I like a Page comment in a flow?
Can I review why a reply was sent?
Which plans include DMs and automations?
Build your Facebook Page reply workflow
Set up the Get Started button on one Page and answer its payload with a flow.Message and automation allowances on paid plans are counted per connected account.