Facebook Page automation

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

POST /api/v1/automations
{  "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

  1. 01

    Connect and prepare the Page

    Grant the permissions the flow needs. Private messages also need messaging enabled for the Page.
  2. 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.
  3. 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

Authorize the Page, and turn on messaging if the flow sends private messages. Set up Get Started or the persistent menu only on the Page that uses them, then test the Messenger event the flow is built for.
Read the setup guide

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?

No. Messaging and reply automation on Facebook work with Pages only.

Can a flow reply to a comment privately?

Yes. A private reply step answers a matching Page comment in Messenger. Meta allows one text-only private reply per top-level comment, sent within seven days of the comment, and nothing further until the person replies.

Can I use the Messenger persistent menu?

Yes. bundle.social keeps a persistent menu and Get Started button for each Page and syncs them to Messenger. Every tap sends a payload, which a button-click flow can answer.

Can I like a Page comment in a flow?

Yes, where Facebook allows it. Comment flows on a Page have a like action that Instagram flows do not.

Can I review why a reply was sent?

Yes. The execution history records which flow ran and what happened at each step it attempted.

Which plans include DMs and automations?

bundle.social Pro includes 200 sent DMs and 200 automation runs per connected account each month. Business raises them to 1,000 sent DMs and 1,000 automation runs, and Enterprise limits are agreed per customer. Incoming messages don't count against the sent-DM allowance. DMs and automations are not available on the Free plan. DMs and automations are turned on per organization on request: email [email protected] with your organization ID.

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.