Rule Engine

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

Use Filters In Engage Rules

Filters decide which conversations an Engage rule acts on. This article explains the In (=), Not in (≠), Is null and Is not null operators, the number operators, and how AND and OR work between conditions.

Who Can Do This?

Primary Owners, Owners and Admins can create, edit and pause rules. The Rule Engine is available on Lite and above plans. Some filters, such as Sentiment, Language, Contact Conversations and Contact Messages (Time Window), are available on Premium and above plans only.

How Do I Add A Filter To A Rule?

Adding a Team Inbox filter with the In (=) operator to an existing rule in Engage Rules, then clicking Done.
  1. Go to Engage → Rules.

  2. Click Add new rule → Create Manually, or click More (three dots) next to an existing rule → Edit rule.

  3. Under Filters, click Add condition.

  4. Pick a field. Fields are grouped under Conversation, Message, Post, Dimensions, Contact and UTM.

  5. Choose an operator, select or type the values, and click Done.

  6. Finish the rule's other settings and click Save.

Tip: Your space's post custom fields are under Dimensions, and contact custom fields are under Contact in the Add condition list.

Note: Keyword matching (optional) and Filters are separate. A rule can use filters only, keywords only, or both.

Filter Operators

Most filters offer four operators.

In (=)

In (=) Filter

Matches when the value is one of the items you select. Use it for "contains" or "includes" conditions. Open the dropdown to add more items, click the cross to clear them all, or deselect single items in the dropdown.

For example, Conversation Type In (=) Instagram Message, Instagram Mention and Instagram Comment means the rule acts on any of those three conversation types.

Tip: To run a rule on only one conversation type, pick just that one type, for example Instagram Message.

Not in (≠)

Not In (=) Filter

Matches when the value is none of the items you select. Use it for exceptions, "does not contain" or "exclude" conditions.

For example, Post Tag Not in (≠) two tags means the rule acts on conversations from posts with any other tag.

Is null

Is Null Filter

Matches when the field is empty, meaning no value is set.

For example, Contact Tag Is null means the rule acts only when the contact has no contact tag yet. If the contact has any tag, the rule skips it.

Note: Not in (≠) and Is null are different. Not in (≠) matches when the field has a value that isn't one you picked. Is null matches only when the field has no value at all.

Is not null

Is not null Filter

Matches when the field has any value at all. The value itself doesn't matter.

For example, Post Tag Is not null means the rule acts on conversations from any post that has at least one tag.

Number Filters

Filters that count something, such as Message Links Count and Message Mentions Count, have number operators instead:

  • Is (=) and Is not (≠)

  • Is greater than and Is greater than equal to

  • Is less than and Is less than equal to

  • Is null and Is not null

For example, Message Links Count Is greater than 0 catches every message with a link.

How Do AND And OR Work In Filters?

  • Values inside one condition use OR. The rule runs if any selected value matches, for example any of three conversation types.

  • Separate conditions use AND by default. When you click Add condition, an and appears between the conditions, so every condition must match.

  • Switch to OR. Click and between two conditions and choose or to run the rule when either condition matches.

  • Click + next to a condition to add another condition to the same group. Grouping is explained in the Overview Of Rule Engine.

⚠️ Warning: Don't add Instagram Comment and Facebook Comment as two separate conditions joined by and. One comment can't come from both networks, so the rule never runs. Put both types in one Conversation Type condition, or switch the join to or.

What Happens After

  • Once the rule is saved, it acts only on conversations that match its filters. Everything else is left alone.

  • A condition with no value shows in red (for example "Conversation Type is missing") until you pick a value.

  • Leaving the form with Cancel asks you to confirm, and nothing is saved.


FAQs

Can A Filter Check Whether A Teammate Has Replied Or The Conversation Is Assigned?

No. Rules can't check whether a teammate has replied or whether a conversation is assigned. The Message received trigger runs on every incoming message, including follow-ups in a conversation someone is already handling.

Continue reading: Filters For Creating Views In Engage.