Facebook Messenger Automation in Wati: Keyword Rules, Comment-to-DM and Chatbots, With Rule Packs by Industry

Krithika M
15 mins read
Fact-checked by: Namitha Sudhakar
|According to: Editorial Policies
Banner showing Facebook Messenger automation in Wati

Too Long? Read This First

  • Set up Messenger automation in five steps: connect your Page, write your replies, build your rules, switch them on, and test from a second Facebook account.
  • Turn on the Welcome and Out-of-Office rules first, because Wati creates both when you connect your Page.
  • Comment-to-DM messages are text only, so end each one with a one-word reply that starts your keyword rules.
  • Keep each keyword in one rule, because every rule that matches a message sends its reply.
  • Copy the rule pack for your industry and run the go-live checklist before you promote your keywords.

What if your Facebook Page could share prices, send brochures, and take booking requests before your team even opens Wati? Once you connect your Page, a few rules make it happen.

With Wati's Facebook Messenger automation, you can set up keyword rules to answer common questions, comment-to-DM triggers to turn post comments into private conversations, and chatbots to collect customer details.

In this guide, you'll learn the prerequisites, the five setup steps, rule packs for six industries, and a go-live checklist.

What do You Need Before You Set Up Messenger Automation?

Before creating your first rule, make sure you have these three things in place:

  • Facebook Page admin access: Connect Wati using the Facebook account that has Admin access to your Page.
  • Messenger enabled: Turn on Messenger in your Facebook Page's Messaging settings so customers can contact your Page.
  • Page connected to Wati: Check that your Facebook Page appears under Settings > Channels in Wati.

Every rule works within four limits. The first three come from Meta's Messenger policy, and the fourth is how Wati's Messenger chatbots work:

  • The customer starts the conversation: Your Page can reply to a message or a comment, but it can't message someone first.
  • Automation has a 24-hour window: Rules and chatbots reply only within 24 hours of the customer's last message.
  • Your team has 7 days: After automation stops, a teammate can still reply by hand for up to 7 days.
  • No buttons or lists: Wati's Messenger chatbots don't show buttons, so ask customers to reply with a word or a number.

How to Set Up Messenger Automation in Wati in Five Steps

Set up Messenger automation in this order: connect your Page, write your Reply Material, build your rules, switch them on, and test them.

Step 1: Connect Your Facebook Page to Wati

  • Go to Channels > Manage > Messenger in Wati
Wati dashboard showing Messenger selected under Channels
  • Click Connect, then Get Started to begin the process. Review the prerequisites checklist. Confirm that each prerequisite has been completed by selecting Yes.
Wati dashboard showing connecting Messenger with Wati
  • Then Connect Facebook with Wati, sign in with the Facebook account that is an Admin on your Page, and select the Page.
Wati dashboard showing conencting Facebook account
  • Once the Page is connected, open Automation > Rules. You can see two new rules: MSG Welcome Message and MSG Out-of-Office Message.

Step 2: Write Your Reply Material Before You Build Rules

  • Write every reply in Reply Material first, so each rule only has to point to a reply.
  • DM rules can send text, images, or videos. Comment-to-DM rules send text only, so write a text version of anything you plan to send from a comment.
  • Add a prefix such as FB_ to every Messenger reply name, like FB_PRICE, so you can find it quickly inside a rule.
  • Keep each reply to two or three lines with one link. End it with the next keyword, such as "Reply VISIT to book a viewing," so the customer knows what to send next.

Step 3: Build Your Messenger Rules and Chatbots

Build four kinds of automation in Automation > Rules: welcome and out-of-office replies, comment-to-DM, DM keyword rules, and chatbots.

i. Turn on the Welcome and Out-of-Office Rules

Open MSG Welcome Message and MSG Out-of-Office Message, edit the text, and switch both on. Then set your working hours in Wati's settings.

  • Welcome rule: Replies when a customer starts a new chat during your working hours.
  • Out-of-office rule: Replies to the first message of a new chat outside working hours. Later messages in the same chat don't trigger it again.
  • New contacts only: Add the filter Contact does not exist if you want these rules to reply only to first-time contacts.

List your instant-answer words in the welcome message:

Hi, you've reached [Page name]. Send one word for an instant answer: [KEYWORD 1], [KEYWORD 2], or [KEYWORD 3].

To reach our team, send HUMAN.

In the out-of-office message, add when your team is back and repeat your keywords. Rules run outside working hours unless you add a working-hours filter.

ii. Set Up Facebook Comment Automation (Comment-to-DM)

Facebook comment automation sends a Messenger DM to anyone whose comment matches your keyword. It can also post the same message as a public reply.

  • Go to Automation > Rules and click + Create Rules.
Wati dashboard showing +Create Rules button selected under Automations
  • Under Facebook Triggers, select New Facebook comment is received.
Wati dashboard showing Facebook triggers selected
  • Choose the scope: all posts and reels on your Page, or one post or reel.
Wati dashboard showing All posts and Reels selected under Select Content
  • Under Criteria, select Comment matches keyword rule, then add your keywords and a match type.
Wati dashboard showing keyword properties
  • Set the action to Send DM, choose Text, and pick your FB_ reply.
Wati dashboard showing Send DM selected under Action type
  • Enter a name for the rule, click Save Changes, and switch on the rule to activate it.
Wati dashboard showing Save changes selected

End every comment DM with a one-word ask, such as "Reply FEES for this year's fees." When the customer replies with that word, your DM keyword rule answers in Messenger.

The public reply uses the same text as the DM, so turn it on only if the message reads well under your post.

The trigger runs on new comments only, so switch the rule on before you publish. Meta's private replies rules allow one DM per comment, within 7 days of the comment.

💡This comment-to-DM demo shows the full flow.

iii. Create DM Keyword Rules for Common Questions

DM keyword rules reply when a Messenger message contains a word you choose, so build one rule per common question.

  • Click + New Rule in Automation > Rules.
  • Under Messenger triggers, select the trigger for new Messenger messages.
  • Add the filter Incoming message matches keyword(s) and enter your keywords.
  • Choose a match type.
  • Now choose the action that should run when the keyword is detected.
Wati dashboard showing Add an action you want to perform selected
  • Click Add Action, select Start chatbot, and choose the chatbot you want to trigger.
Wati dashboard showing Start chatbot selected under action type

The match type decides which messages trigger the rule:

  • Exactly: The whole message must match the keyword. Use it for one-word replies you ask for, such as HUMAN or FEES.
  • Contains: The keyword can appear anywhere in the message. Use it for words and IDs inside a sentence, such as "Is PH-1042 still available?"
  • Fuzzy: The rule also catches close spellings. Use it for words customers often misspell, such as model names or "appointment."

Keywords aren't case-sensitive. This Messenger DM demo shows a keyword rule replying.

iv. Use a Messenger Chatbot for Questions That Need Follow-Ups

  • Use a chatbot when your answer depends on the customer's reply, such as which listing, which date, or which service. A keyword rule starts it with the action Start a Chatbot.
  • In Wati's no-code chatbot builder, Messenger chatbots can send messages, ask questions, and branch on each answer.
  • While a customer is inside a chatbot, their messages go to the chatbot, and your keyword rules wait until it ends.
  • Write every chatbot question so customers can answer with a number, such as "Reply 1 or 2."

Step 4: Switch on Your Rules in the Right Order

  • Switch on each rule, then check its position on the Rules tab. Wati adds every new rule to the top of the list.
  • When a message matches several rules, all of them run from the top, and only the top rule can start a chatbot.
  • Click Reorder and drag rules that start a chatbot above rules that only send a message.
  • If you also use instant replies or custom keywords in Meta Business Suite, check that customers don't get two replies.

Step 5: Test Your Rules from a Second Facebook Account

  • Test from a Facebook account that isn't an Admin on your Page and has never messaged it, so your welcome rule fires too.
  • Comment a keyword on the post your comment rule covers, then check that the DM arrives in Wati's Team Inbox. Next, send each DM keyword once and confirm you receive one set of replies.

Messenger Automation Rule Packs by Industry

Start with the rule pack for your industry. Each pack covers four or five common customer requests, with suggested keywords, automation actions, and ready-to-use replies.

How to read these rule packs:

  • C: Comment trigger (Facebook comment-to-DM).
  • D: DM trigger (Messenger keyword rule).
  • [Text in brackets]: Replace with your business details.
  • HUMAN: Sends a holding message and routes the conversation to the relevant team using Route chat.

i. E-commerce Rule Pack: PRICE, STOCK, ORDER, RETURN, and HUMAN

Start with the questions online stores get most.

Rule

Trigger

Keywords (match type)

Action

Reply

PRICE

C + D

price, how much, cost (Contains); pp (Exactly)

C: Send DM and reply to comment. D: Send message with a price image

[Product] is [price] today. Shop it here: [product link]. Reply STOCK to check sizes.

STOCK

D

in stock, restock (Contains); available (Fuzzy)

Send message

See live sizes and colours here: [product link]. Sold out? Reply HUMAN, and we'll check the next restock.

ORDER

D

order, track, delivery (Contains)

Start a Chatbot (order number)

Send your order number, and we'll check it.

RETURN

D

return, exchange, refund (Contains)

Send message

You can return items within [X] days: [policy link]. Reply HUMAN to start an exchange.

HUMAN

D

human (Exactly); talk to someone, support (Contains)

Send message + Route chat (support)

Thanks! Someone from [team] will reply here by [time].

Setup tip: During a sale, restrict the PRICE comment rule to the sale post. This prevents older posts from sending outdated prices.

💡You can also combine these rules with Wati's other e-commerce automation workflows.

ii. Real Estate Rule Pack: LISTING ID, VISIT, PLAN, and HUMAN

Answer listing questions, then move serious buyers to a viewing.

Rule

Trigger

Keywords (match type)

Action

Reply

LISTING ID

C + D

[your ID prefix, e.g. PH-] (Contains); details, available (Contains)

C: Send DM on the listing post. D: Send a message with a listing photo

[ID] is a [bedrooms] home in [area], from [price].

Photos and floor plan: [listing link].

Reply VISIT to book a viewing.

VISIT

D

visit, viewing, site visit (Contains)

Start a Chatbot (listing ID, day)

Which listing would you like to see? Send its ID, then your preferred day.

PLAN

D

floor plan, payment plan, layout (Contains)

Start a Chatbot

Reply 1 for the floor plan or 2 for the payment plan.

HUMAN

D

broker, call me (Contains); human (Exactly)

Send message + Route chat (sales)

[Name] from our sales team will reply here by [time].

Setup tip: Buyers often include listing IDs in full sentences. Use Contains so the rule can recognize an ID even when it isn't the entire message.

Explore more property-related workflows with Wati for real estate.

iii. Education Rule Pack: FEES, VISIT, PROSPECTUS, and HUMAN

Cover what parents and students ask before they apply.

Rule

Trigger

Keywords (match type)

Action

Reply

FEES

C + D

fees, tuition (Contains); fee (Exactly)

C: Send DM. D: Send message

Fees for [year] are here: [fees link].

Scholarship details: [scholarship link].

Reply VISIT to see the campus.

VISIT

D

visit, campus tour, open day (Contains)

Start a Chatbot (visit request)

Reply 1 if you're a parent or 2 if you're a student.

PROSPECTUS

C + D

prospectus, brochure, course details (Contains)

C: Send DM and reply to comment. D: Send message

Here's our [year] prospectus: [prospectus link].

Reply FEES or VISIT for more.

HUMAN

D

counsellor, admission, call me (Contains); human (Exactly)

Send message + Route chat (admissions)

A counsellor will reply here by [time].

Setup tip: Avoid using fee as a Contains keyword. It can also match unrelated words such as "coffee" and "feedback". Use Exactly for fee.

Find more admissions automation ideas on Wati's education page.

iv. Clinics and Salons Rule Pack: BOOK, PRICE, INSURANCE, and HUMAN

Automate routine requests and keep anything clinical with your front desk.

Rule

Trigger

Keywords (match type)

Action

Reply

BOOK

C + D

book, slot (Contains); appointment (Fuzzy)

C: Send DM on the offer post. D: Start a Chatbot (service, day, time)

Which service would you like?

Reply 1 for [service], 2 for [service], or 3 for [service].

PRICE

D

price, rates, charges, how much (Contains)

Send message with a price-list image

Our price list is above. Your [doctor or stylist] confirms the final price.

INSURANCE

D

insurance, insurer, cashless, [insurer names] (Contains)

Send message

We accept [insurer names]. For pre-approval, reply HUMAN.

HUMAN

D

human (Exactly); pain, bleeding, reaction, urgent (Contains)

Send message + Route chat (front desk)

Our front desk will reply here shortly. If this is an emergency, call [local emergency number].

Setup tip: Route symptom-related and urgent messages directly to your front desk. Don't use automated replies to assess symptoms or provide clinical advice.

The BOOK chatbot collects appointment preferences, while your front desk confirms the slot. Explore more workflows on Wati's healthcare page.

v. Travel Rule Pack: PACKAGE, QUOTE, DOCS, and HUMAN

Share packages, collect trip details, and point travelers to official entry rules.

Rule

Trigger

Keywords (match type)

Action

Reply

PACKAGE

C + D

package, details, [destination] (Contains)

C: Send DM on the destination post. D: Send message with an itinerary image

Our [destination] packages start at [price] for [number] nights: [package link].

Reply QUOTE for your dates.

QUOTE

D

quote, dates, travellers (Contains)

Start a Chatbot (destination, dates, travellers)

Where, when, and how many travelers?

DOCS

D

visa, passport, documents (Contains)

Send message

Check current entry rules here: [official link].

Reply HUMAN to review your case.

HUMAN

D

call me, change booking (Contains); human (Exactly)

Send message + Route chat (travel desk)

Someone from our travel desk will reply here by [time].

Watch-out: Send every quote within 7 days of the customer's last message, or they must message you again.

vi. Automotive Rule Pack: MODEL, TEST DRIVE, SERVICE, and HUMAN

Give dealership leads model details and a fast way to book.

Rule

Trigger

Keywords (match type)

Action

Reply

MODEL

C + D

[model names] (Fuzzy); variants, on-road price (Contains)

C: Send DM on the launch post. D: Send message with a spec-card image

The [model] starts at [price] in [variants].

Full specs: [model link].

Reply TEST DRIVE to book one."

TEST DRIVE

D

test drive (Contains)

Start a Chatbot (model, day, location)

Which model would you like to drive, and which day suits you?

SERVICE

D

service, servicing, oil change, repair (Contains)

Start a Chatbot (registration, service type)

Please send your registration number and the service you need.

HUMAN

D

sales, finance, trade-in (Contains); human (Exactly)

Send message + Route chat (sales)

[Name] from our sales team will reply here by [time].

Setup tip: Use the complete phrase "test drive" as your keyword rather than just "drive". This avoids triggering the rule for unrelated questions about all-wheel drive.

Go-Live Checklist for Messenger Automation

Before promoting your Facebook Page or sharing keywords in posts and ads, test every rule and chatbot from a second Facebook account that isn't an Admin of your Page.

Use this checklist to make sure your automation is ready:

Check

Pass if

If it fails

Page connection

Your Page shows as connected under Settings > Channels

Reconnect with an Admin account and confirm Messenger is on

Replies

Every FB_ reply has current prices and working links

Update the reply in Reply Material

Welcome and out-of-office

The Welcome rule fires during working hours, and the Out-of-Office rule fires outside working hours

Switch on both rules and check your working-hours settings.

Comment rule

A non-Admin comment gets a DM, plus a public reply if on

Check scope, keywords, match type, and status

Keywords

Each keyword gets one set of replies

Move shared keywords into one rule and reorder your rules

Chatbots

Every answer, even an unclear one, leads to a next step

Re-ask once, then end the chatbot with a handoff message

HUMAN

The chat reaches the right team in Team Inbox

Fix the team selected in Route chat

Meta Business Suite

Customers get one reply, not two

Review instant replies and custom keywords in Meta Business Suite

Chats after 24 hours

Each has a reply from your team

Check open chats daily, within 7 days

Once every check passes, your Messenger automation is ready to go live. Monitor incoming conversations after launch and update your keywords, replies, and chatbot paths as customer questions change.

How Wati Manages Facebook Messenger Automation in One Team Inbox

Managing Facebook Messenger automation doesn't mean managing another separate inbox. Wati brings Messenger rules, comments, chatbots, and agent conversations together alongside your WhatsApp conversations in a shared Team Inbox.

Here's how it works:

  • One Rules page: Manage Facebook Messenger and WhatsApp automation from the same Rules list. Both channels also share one set of working hours.
  • Comments in Team Inbox: A Facebook Comments section shows each post's comments. Your team can reply publicly or send the commenter a private DM.
  • One chatbot builder: Create Messenger and WhatsApp chatbots using the same no-code builder. Steps that aren't supported on Messenger are marked as incompatible.
  • Clear handoff: Route chat sends HUMAN requests to the right team, which can reply for up to 7 days.
  • WhatsApp follow-up: If a follow-up must arrive after Messenger's window closes, ask for the customer's WhatsApp number.

Start Automating Your Facebook Messenger Conversations with Wati

Your Facebook Page doesn't have to rely on your team to answer every price enquiry, booking request, or product question manually.

With Wati's Facebook Messenger automation, you can set up keyword rules for common questions, turn post comments into private conversations, and use chatbots to collect customer details. Your team can then step in when a conversation needs personal attention.

Start with your Welcome and Out-of-Office rules, add the industry-specific rule pack that fits your business, and test each automation before switching it on for customers.

Ready to automate your Facebook Messenger conversations? Book a demo with Wati to see how it works.

Frequently asked questions

Can a Facebook Comment-to-DM Message Include Images or Buttons?

No. A comment-to-DM message in Wati is text only, but it can include a link. To share an image, end the DM with a keyword such as "Reply PRICE," so a DM keyword rule sends the image.

Why does One Messenger Message Get Two Automated Replies?

Two of your rules share a keyword, or an automation in Meta Business Suite also replies. In Wati, every matching rule sends its reply. Keep each keyword in one rule, and review your Meta Business Suite automations.

Why does the Messenger Out-of-Office Message Send Only Once?

The out-of-office rule replies only to the first message of a new chat outside working hours. Your keyword rules still reply after hours, so list your keywords in the out-of-office message.

What Happens to Messenger Automation after 24 Hours?

Rules and chatbots stop replying 24 hours after the customer's last message, but your team can reply by hand for up to 7 days. After that, the customer has to message your Page again.

How do I Turn Off Automated Replies on Facebook Messenger?

In Wati, go to Automation > Rules and switch off the rule. For Meta's own automated replies, open Meta Business Suite, go to Inbox > Automations, and switch off the automation there.

Related posts