Rule Engine

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

Overview Of Statusbrew Rule Engine

Statusbrew offers a Rule Engine that automatically manages your incoming conversations across social. Using the rule engine, you can update your conversations based on the conditions you specify, and even combat spam and trolls before they have a chance to ruin your brand's reputation.

For instance, you can set a rule to automatically hide all the spam comments on your posts:

Overview Of Statusbrew Rule Engine

Or set a rule that automatically assigns conversations regarding discounts to a team member managing sales for your business.

What Can Rules Do In Statusbrew?

Using Rule Engine in Statusbrew, you can automate the following actions,

Understanding A Rule In Statusbrew

Before you create your first rule in Statusbrew, you need to understand the different aspects of a Statusbrew Rule. There are three parts in defining a new rule:

Data Sources: Select the profiles & profile groups where you want the rule to be applied. Selecting a social profile is mandatory, and a rule cannot be created without the same.

You can add both profiles and profile groups as data sources while creating rules. Using profile groups in rules enables you to manage rules as well as your profiles better in Statusbrew. Learn More

Trigger Type: Since the Rule Engine is for Engage conversations, the rule will be triggered when a message is received. So you'll have to select the trigger type - message received from the drop-down

Filters: The Filters section of a rule defines the conditions where your rule would be activated.

Filters can work both in “And” & “Or” logic conditions. After adding one filter condition, click on + or + Add condition to add another. You will see the logic implemented between the two conditions which you can change to “And” or “Or” as per your need.

With OR logic, even if any one of the added conditions is met, the rule will be executed.

With AND Logic, all the conditions must be met for the rule to be executed.

However, multiple entities added in a single condition such as conversation type, are applied with OR logic.

For instance, here for the rule to be executed, the message can be either an Instagram message, mention, or media tagged but the sentiment MUST be Positive.

AND OR Logic

Here is a breakdown of all the filter conditions:

- Conversation Type i.e based on the type of conversation like is null, is not null, etc. - Message (Content) i.e based on the content of the message

You can add (.*) at the beginning or the end or both of the ends of the phrase to match words. For instance,

a. .*bot would include "bot" & "robot" both words b. bot.* would include "bot" & "bots" both words c. .*bot.* would include "bot", "robot", "bots", and "robots" as blacklisted words

- Message has attachments i.e. to specify if the message has attachments or not - Message Links Count i.e. based on the number of links in the conversation - Message Mentions Count i.e. based on the number of mentions in the conversation - Story Mention i.e. whether it is a Story mention or not - Engage Inbox i.e. which inbox is it from - Sentiment i.e. whether sentiment type is Positive, Negative, Neutral, or Mixed - Language i.e. you can choose the rule to be triggered only for a particular language - Post Text i.e. to specify if the post has a particular text in it

- Post Link i.e. to check if the post has any random or a particular link

- Post Tag i.e. if the Post has a particular Tag (Tags are internal labels) - Contact Tag i.e. if a Contact has a particular Tag (Tags are internal labels) - Contact Name i.e. based on the name of the contact - Twitter Verified i.e. if the Twitter account is verified - Twitter Follower i.e. to specify if the person is our Twitter follower

- Star Rating i.e. to filter messages containing star ratings or not or as per the number of stars. - UTM Campaign i.e. to filter messages that come from posts with links tracked by Campaign UTM parameters. - UTM Source i.e. to filter messages that come from posts with links tracked by UTM source parameters - UTM Medium i.e. to filter messages that come from posts with links tracked by UTM Medium parameters - UTM Content i.e. to filter messages that come from posts with links tracked by UTM Content parameters - UTM Term i.e. to filter messages that come from posts with links tracked by UTM Term parameters

Actions: The "action" section defines what happens to the conversations that comply with the above. It lets you choose what happens when your rule is triggered.

- Internal (applicable to all types of conversations across different social networks)

  • Assign conversation to a user/user group

  • Update conversation status

  • Add Watchers

  • Move to Engage Inboxes

  • Mark conversation as a priority

  • Assign and Remove tags to the conversations

  • Send notification

  • Send email

  • Send Slack Alert

  • Send Microsoft Teams Alerts

  • Add tags to contact

- Network-Specific (applicable to certain types of conversation across different social networks)

  • Send a private message

  • Hide the comment

  • Unhide the comment

  • Delete the comment

Learn more - Rule Conditions vs Actions

You can add multiple Filters, or Actions in a single rule by clicking on the ‘+ Add’ button along each step and setting up a total of 50 Rules simultaneously.

Now that you've been introduced to Rule Engine, take a look at: