Rule Engine

Implement condition-based automations to automatically hide, delete, tag, and route conversations through the Rule Engine

Rule Engine For Engage

Rules on the Engage tab of Rule Engine act on your incoming messages and conversations for you, based on conditions you set. For example, they can hide comments, assign conversations or send alerts.

For the whole page, see Understanding Rule Engine.

Who Can Do This?

  • Plan: Rule Engine is available on the Lite plan and above. See pricing.

  • Roles: Primary Owners, Owners and Admins can create, edit and pause rules.

  • Premium and above only: some filters, such as:

    • Sentiment

    • Language

    • Contact Conversations

    • Contact Messages (Time Window)

Your plan sets how many rules your organization can have.

What

Limit

What happens at the limit

Rules in your organization, Free plan

10

You see a prompt to upgrade.

Rules in your organization, Lite plan

25

You see a prompt to upgrade.

Rules in your organization, Standard plan

100

You see a prompt to upgrade.

Rules in your organization, Premium plan

500

You see a prompt to upgrade.

Rules in your organization, Enterprise plan

2,000

You see a message asking you to contact support.

Rules in one space

300

You see a message asking you to contact support.

  • Rules on the Engage, Publish and Profiles tabs all count toward this one total.

  • Paused rules count too.

  • Anything you already have above a limit is kept, but you cannot add more until you are under it.

What Runs On The Engage Tab?

Rules are typed by what they run on, and each type has its own tab and its own triggers. The Engage tab of Engage → Rule Engine (left sidebar) holds the rules that run on messages and conversations.

For other rules, use another tab:

A rule on the Engage tab runs on messages or on conversations, never both. When you pick a message trigger, the conversation triggers are greyed out, and the other way round. To act on both, create one rule of each kind.

How Do I Open The Engage Tab?

  1. Go to Engage → Rule Engine (left sidebar).

  2. Check the table:

    • Active rules are numbered in the order they run, with their Name, Data source and Status.

    • Paused rules sit in the collapsible Paused section below it.

  3. Click Add new rule to open the template gallery.

  4. Search for a template, or click Create Manually to build a rule from scratch.

What Can A Rule On The Engage Tab Do?

  • Reply: send a private message to follow up, or send a public reply.

  • Comments: hide, unhide or delete comments based on conditions such as keywords or sentiment.

  • Conversations:

    • Assign conversations to the right team member or agent

    • Close conversations

    • Add watchers

    • Move conversations to a Shared Inbox

    • Mark conversations as priority

  • Sentiment and tags:

    • Set sentiment

    • Add or remove tags on conversations and contacts

  • Notifications: send these to teammates or external users.

    • Slack or Microsoft Teams alerts

    • In-app notifications

    • Emails

  • Other:

    • Update custom fields

    • Send a message to an AI agent

To see which actions work on each network, see Social Network Based Conversations Actions.

Which Templates Can I Start From?

Templates come pre-filled with filters and actions. Pick one, review its conditions, then add your own keywords or adjust actions.

  • Moderation

    • Auto Hide Negative Comments

    • Auto Hide Comments with Links

    • Auto Hide All Obscene/Offensive Comments (English, Spanish, French and Hindi)

    • Auto Hide/Close All "Page Getting Disabled" Conversations

    • Auto Hide All Comments w/ Gambling, Crypto Scam + Porn Links

    • Auto Hide All Comments w/ Bad/Dirty Emojis

    • Auto-Hide Negative Comments on Weekends

    • Auto-Close Conversations With Only Mentions & No Text

    • Auto-Close Conversations With Attachments

    • Auto Prioritize Negative Reviews

  • Categorization

    • Auto Prioritize Important Conversations for eCommerce

    • Auto Prioritize Important Conversations for Healthcare

How Do I Build A Rule For Engage?

You can type what you want in the Describe what you want to see card (Beta) and click Generate. Review the rule before saving, because AI responses can be inaccurate.

Or build it yourself. Every rule has four parts:

  • Data sources

  • Trigger type

  • Filters

  • Actions

Choose The Data Sources

The data source decides where the rule applies. You must select at least one profile or profile group.

Profile groups keep rules and profiles organized for teams managing several brands, regions or clients.

Choose The Trigger Type

Every rule starts with a trigger, the event that activates it. A rule can use triggers of one type only, and a new rule starts with Message received.

  • Message triggers:

    • Message received

    • Message replied

  • Conversation triggers:

    • Conversation snoozed

    • Conversation closed

    • Conversation re-opened

    • Conversation assigned

    • Conversation Added to Inbox

    • Conversation Note

Message received fires on every incoming message, including follow-ups in a conversation a teammate is already handling. It is not limited to direct messages: it applies to any supported conversation type in Engage. To run a rule on one type only, such as comments, reviews or DMs, add Filters → Conversation Type.

Add Keyword Matching (Optional)

Click Add keyword set, name the set and pick the color used to highlight matched content in Engage.

  • Describe intent: lets AI match incoming messages by meaning, even when customers use different words.

    • It uses AI credits.

    • Leave it empty to match on keywords only.

  • Keywords: words or phrases separated by commas or line breaks.

    • Choose Contains to match inside other words (bot matches robot).

    • Choose Exact match for the whole word only.

    • Keywords do not use AI credits.

  • Exclude keywords: skip messages with these words.

    • Exclusions only apply to messages that already matched.

    • Set the intent or keywords first.

When a keyword set uses Describe intent and Keywords together, a message has to match both. Keep the keyword list broad, or use Describe intent on its own.

How Do Filters Work?

Filters set the conditions under which the rule runs. Click Add condition to see every filter, grouped by what it matches:

  • Conversation:

    • Conversation Type

    • Shared Inbox

    • Is Spam

    • Custom fields

  • Message:

    • Message Content

    • Message has attachments

    • Message Links Count

    • Message Mentions Count

    • Story Mention

    • Story Reply

    • Sentiment

    • Language

    • Star Rating

  • Post:

    • Post Text

    • Post Link

    • Post Tag

    • Custom fields

  • Contact:

    • Contact Tag

    • Contact Name

    • Contact Verified (X only)

    • Contact Followers (X only)

    • Contact First Seen

    • Contact Conversations

    • Contact Messages (Time Window)

  • UTM

Each condition appears as a chip. Conditions are joined by and, so every condition must be met for the rule to run.

  • Click the + beside a chip to add another condition.

  • A chip with no value shows "is missing value" in red until you fill it in.

  • For Message Content, choose In (=) or Not in (≠), enter keywords and tick Exact match to match whole words only.

  • Sentiment takes one of these:

    • Positive

    • Negative

    • Neutral

    • Mixed

What

Limit

What happens at the limit

Filters in one rule

10

Add condition is disabled and the message "No more than 10 filters can be added." appears under it.

The Conversation Type filter is required for hide and delete actions. What works on each network differs. See Social Network Based Conversations Actions.

How Do I Add Actions To A Rule?

Click Add a new action under Actions. You can add several, and they run together. Actions are grouped as:

  • Reply

  • Comment

  • Conversation

  • Sentiment

  • Tag

  • Notification

  • Custom fields

  • AI agent

To move matching conversations to a Shared Inbox:

  1. Choose Conversation → Move to Shared Inbox.

  2. Pick the inbox and click Add.

"Don't apply this action if the message is already in a Shared Inbox" is ticked by default.

To correct a sentiment the system gets wrong, such as positive slang read as negative, choose Sentiment → Set sentiment and pick the value. It replaces the auto-detected sentiment on matching messages and their conversations.

How Do I Control When A Rule Runs?

Open Additional options at the bottom of the rule editor.

  • Stop execution of following rules, if this rule is applied: no rule below this one runs on a conversation this rule applies to. Rules run top to bottom.

  • Add hours: pick a day and a time range, for example Monday from 09:00 to 17:00, and click Add times for more.

  • Time zone: the zone the rule follows.

  • Active period: click Add start time, Add end time or both, then set the date, hour, minute and AM/PM.

    • The rule stays active but only acts in that window.

    • Click the ✕ to remove one.

If you set no hours, the rule runs 24/7.

A rule that has not reached its start time shows Upcoming in the Status column and stays in the numbered table. Hover over Upcoming to see when it starts.

How Do I Create A Rule Set?

A rule set is a named group of rules you can switch on or off, schedule and order as one.

Why Use A Rule Set?

Without a rule set

With a rule set

Turn a group on or off

Edit each rule one by one.

Use one Active switch.

Schedule

Set hours and dates on each rule.

Set them once for the whole set.

Order

Each rule sits alone in the run order.

The set is one block and moves as one.

First match

The stop switch ends every rule below it.

Run only the first matching rule stops inside the set only.

Tidiness

One long flat list of rules.

Related rules grouped under a name.

Rules outside a set keep working as they do today.

What Does A Rule Set Look Like In Practice?

  • After hours:

    • Set Add hours to Outside these hours, Monday to Friday, 09:00 to 17:00.

    • Put the rules in the set that use Send a public reply, Add tags and Assign conversation.

    • They only run when the team is away.

  • Crisis mode:

    • Put your stricter moderation rules in one set.

    • Turn the Active switch on when a crisis starts.

    • Turn it off when it is over. No rule needs editing.

What Can I Set On A Rule Set?

  • Name: names the set so you can find it.

  • How the rules in this set run:

    • Run every matching rule: every rule whose conditions match does its actions.

    • Run only the first matching rule: the rules work as a list of fallbacks, and it stops at the first match.

  • Active: switches every rule in the set on or off at once.

    • Rules you paused yourself stay paused.

  • Time zone and Add hours:

    • Time zone: the zone the set follows.

    • Hours: the days and times it runs, During these hours or Outside these hours.

  • Active period: a start and an end date. The rules only run between them, in the set's time zone.

You can create a rule set on the Engage and Publish tabs, and it works the same way on both.

  1. Go to Engage → Rule Engine (left sidebar).

  2. Click Add rule set. The Add rule set dialog opens.

  3. Fill in the dialog:

    • Name: enter a name for the set.

    • How the rules in this set run: choose Run every matching rule (the default) or Run only the first matching rule.

    • Active: leave it on, or turn it off to pause every rule in the set. Rules you paused yourself stay paused.

    • Time zone: pick the zone the set follows.

    • Add hours (optional): click Add times, choose During these hours or Outside these hours, then pick a day and a start and end time. Click Add times again to add more rows.

    • Active period (optional): click Add start time or Add end time and set the date, hour, minute and AM/PM. The rules only run between these dates, in the time zone above.

  4. Click Save.

You can also open the same dialog from a rule. Click More (three dots) beside the rule, choose Move to rule set, then New rule set with this rule. The Create Rule form itself has no rule set field.

How Does The List Look With Rule Sets?

  • Rule sets: this section runs first, from top to bottom. Drag to change the order.

    • Each set shows its name, how many rules it has, how it runs (for example Runs only the first matching rule) and its status.

    • Its rules are numbered inside it.

  • Other rules: this section runs after the rule sets, from top to bottom. Drag to change the order.

How Do I Manage A Rule Set?

Click More (three dots) beside a rule set to see:

  • Add rule to this set: adds a rule to the set.

  • Edit rule set: opens the set so you can change its settings.

  • Move up and Move down: move the set in the run order. They are greyed out when the set cannot move, for example when you have only one set.

  • Pause rule set: pauses every rule in the set.

  • Delete: deletes the set. Its rules are kept and move to Other rules. See How Do I Delete A Rule Set? below.

How Do I Delete A Rule Set?

  1. Click More (three dots) beside the rule set.

  2. Select Delete.

  3. Under What should its rules do?, choose one:

    • Keep them as they are (default): rules that are on run right away, even if the set was paused, ended or not started.

    • Pause them: the rules stay paused until you activate them.

  4. Click Delete. Click Cancel to keep the set.

The rules are not deleted. They move to Other rules.

Choose Pause them if the set was paused or scheduled and you don't want its rules to start running straight away.

How Do I Move A Rule Into A Rule Set?

  1. Go to Engage → Rule Engine (left sidebar).

  2. Click More (three dots) beside the rule.

  3. Select Move to rule set.

  4. Choose the set:

    • Pick an existing set by name.

    • Or pick New rule set with this rule to start a new one.

To take a rule out of its set, click More beside it and select Remove from rule set.

How Do I Pause Or Delete A Rule?

Active rules are numbered in the table. Paused rules sit in the collapsible Paused section below it and do not act until you turn them back on.

Example: pause a rule while you rework its filters, then turn it back on when it is ready.

Click More (three dots) beside a rule to see:

For a rule in a rule set:

  • Edit rule: opens the rule so you can change it.

  • Duplicate rule: copies the rule so you can change it and save it as a new one.

  • Pause rule: pauses the rule.

  • Move to rule set: pick another set, or New rule set with this rule.

  • Remove from rule set: takes the rule out of its set.

  • Delete: deletes the rule.

For a rule outside a set, the list is the same without Remove from rule set:

  • Move to rule set lists your existing sets by name.

  • It also lists New rule set with this rule.

To pause a rule, use either way:

  1. Pause from the More menu:

    • Go to Engage → Rule Engine (left sidebar).

    • Click More (three dots) beside the rule.

    • Select Pause rule.

  2. Or pause from the rule:

    • Select Edit rule.

    • Click Pause in the bottom bar, at the bottom left.

    • Click Confirm in the Pause rule dialog.

The dialog says that pausing a rule temporarily pauses the actions attached to it unless you activate it back. Pause rule is in the More menu, and Pause is also in the bottom bar of Edit rule.


FAQs

Do Rules Apply To Comments And Messages From Before The Rule Existed?

No. Rules apply to incoming conversations from the moment the rule is created and active.

When you first create a rule, there can be a delay of up to 24 to 48 hours while the system processes recently synced conversations, so some older ones can show up. To clean up earlier spam, hide those comments manually with bulk select.

How Do I Stop A Rule From Replying While A Teammate Is Chatting?

Rules cannot yet check whether a teammate has replied. Use one of these, both on Premium and above:

  • Add the filter Contact Messages (Time Window) set to Is (=) 1 in the last 1 hour, so the rule acts only on a contact's first message in that window.

  • Create a conversation checkbox custom field such as "Handled by agent" that reps tick when they take over, and add the filter "Handled by agent is unchecked".

Do not use Is (=) 0, because the count includes the message that triggered the rule, so it never matches.

My Rule Is Not Working. What Should I Do?

Check these in order:

  • The rule is not in the Paused section.

  • The profile is not disconnected (look for red indicators under Settings → Profiles).

  • The data sources and filters match, because every condition has to be true.

  • A rule above it does not have Stop execution of following rules selected.

  • The hours and active period cover now.

  • The action is supported for that conversation type.

  • The conversation arrived after the rule was created.

If everything looks right, a network outage can cause delays, so wait and check again.

Can A Rule Hide Repeated Comments From The Same User?

Yes. Add Contact Messages (Time Window) with how many messages one contact can send in a window, for example 3 in the last 5 minutes, then add Hide comment.

No filter compares the text, so it works on how often one contact comments, not on identical wording.