Skip to content
ChatfuelSDK

Facebook automatic comments on a platform you own

For builders and agencies: Facebook automatic comments under your name, in a React app you own. A comment, an m.me link or a message reaches the AI agent first.

Facebook comments auto-answered, from the reply to the hand-off

Four of the seventeen entry points are Facebook’s. Every automatic comment Facebook users see under your page post comes from the AI agent or your exact text, and the inbox takes over when a rule says so.

A comment gets a reply and a DM

One rule on post comments: a public reply under the comment and a DM in Messenger, each written by the AI or sent as exact text.

The page likes the comment

Facebook is the one channel where a rule can also like the comment it answers, alongside the public reply and the DM.

m.me links carry a ref

An m.me link with a ref on it starts the chat on that link’s own rule, so each campaign gets instructions of its own.

Ads that open Messenger

A tap on an ad that opens Messenger is its own entry point, and the inbox marks the message with the ad it came from.

The Messenger bot answers first

The chatbot Facebook customers reach first: instructions per source on top of the knowledge base, always or outside working hours.

The inbox takes over

A comment arrives with the post it was left on, beside the Messenger thread. Take over, and the bot stops answering.

No Meta review

The Facebook page is connected through Chatfuel, an official Meta partner, so the integration is already approved. Your app talks to the Chatfuel API: it is not a Meta app and never goes through app review.

One press to connect a page

The Facebook card in your app carries Connect: your client signs in to Facebook on a page Chatfuel serves, picks the page, and comes back with it connected. Refresh access re-grants the permissions later.

Your customers sign up to you

Add the accounts module and the app is multi-tenant: anyone can sign up, and every account gets a bot of its own, created by your server with your token. The token never leaves the server.

Your name, your code, your domain

The name and the logo go in at install. The modules are copied into the project as source under MIT, and the deploy script inside the app pushes it to Vercel with no dashboard.

From the command to a chatbot for Facebook Messenger, in four moves

Four moves from the command to Facebook chatbots your customers sign up to. The second is the only one that touches Meta, and it happens inside your app.

  1. 01

    Run the command with your name on it

    npx @chatfuel/wizard --modules automations,knowledge-base,livechat,channels,contacts,auth, with --app-name and --logo for your name and mark. Auth is the pick that turns the app into a product people sign up to, and the wizard offers to deploy it on the way out.

  2. 02

    Connect the Facebook page in the app you deployed

    Open Channels and press Connect on the Facebook card. The sign-in runs on a page Chatfuel serves, the page is picked there, and the browser comes back with it connected, so there is no Meta app of your own to submit.

  3. 03

    Write what the agent knows, and the rules

    The business profile, the FAQ and the products go into the knowledge base. Then the rules, from three templates: a keyword comment that gets a DM, a DM to everyone who comments on a post, a campaign link. A test comment shows the reply before a customer does.

  4. 04

    Say when it hands over, and open the inbox

    Per source and in words: what the person has to ask for, what the agent says as it hands over, and which teammates get the conversation. The workspace needs a plan before the AI answers; the wizard offers the trial on the way.

Where a Facebook conversation starts

The four Facebook entry points, in the product’s own words. Every source starts from Default, and three of the four also take rules of their own — up to thirty a source.

NameWhat starts a conversation thereThe agent repliesA rule narrows to
Direct messagesWhen a contact messages your pageIn Messenger
Post commentsWhen a contact comments on your page postUnder the comment, in Messenger, or both, and it can like the commentKeywords, posts
m.me linksWhen a contact comes from an m.me linkIn MessengerRef links
Click from adsWhen a contact taps an ad that opens MessengerIn MessengerKeywords, ads

Facebook and Instagram in the same app

The two Meta channels share the agent, the knowledge base, the inbox and the contacts. They differ in where a conversation can start and in what the app does with it.

NameWhat it isFacebookInstagram
Where a conversation starts
Direct messagesA message to the page or the account.
Post commentsA comment under a post, and on Instagram under a Reel.
Ad commentsA comment under an ad post.
Story repliesA reply to a story.
A link into the chatA link that opens the conversation and carries a ref.m.meig.me
Click from adsA tap on an ad that opens the chat.
What the app does with it
Like the commentThe page likes the comment a rule answers.
Test a comment replyA test comment in the AI agent’s panel, answered the way a real one is.
Comments in the inboxA comment shows in the thread beside the DMs, with the post it was left on.
Publish postsFeed photos, Reels, Stories and carousels, from the app.

What a chat bot for Messenger costs here

Two meters, and a workspace plan they draw from. No seat and no per-app fee: the bot is billed by what the AI reads and writes, and by the plan the workspace is on. The inbox, the contacts and the channels are part of the plan, whichever plan; the SDK and the app are free, and what you charge your customers on top is yours to set.

NameWhat it isPrice
The metersWhat comes out of the balance.
AI inputEverything the agent reads on a message: the knowledge base record and the conversation so far.$2.75 per 1M tokens
AI cached inputInput the model has already read once.$0.275 per 1M tokens
AI outputWhat it writes back, under the comment or in Messenger.$16.50 per 1M tokens
Part of the plan
Inbox, contacts, channels, flowsEvery module and every channel, on any plan.Free
The SDK and the app it generatesMIT, copied into your project as source.Free
The workspaceWhere the bots live and where the balance comes from.
BusinessOne business, one bot, your own app. $20 of credits a month for the meters to draw from.$20 a month
Agency SClient bots, all on one balance. $100 of credits a month, shared by every bot in it.$100 a month

FAQs

A rule on post comments watches the page’s posts — every post, or the ones you pick — and reacts to any comment or to the keywords you list. It can post a public reply under the comment, send the person a DM in Messenger and like the comment; each reply is written by the AI from your instructions, sent as exact text, or switched off. Facebook automated comments here are replies on your client’s own page: nothing comments on anyone else’s posts.

AI Agent

One command, and the Facebook chatbot platform is yours

Your name on the Facebook bot, your customers in it, Chatfuel’s Meta connection under it.

npx @chatfuel/wizard