Rule Engine Best Practices
The Rule Engine in Statusbrew is used to automate various aspects of your social media management. In this guide, we’ll walk you through the best practices for automating your inbox management using the Rule Engine.
You'll learn how to auto-tag conversations, manage custom inboxes, filter spam, and much more, allowing you to streamline your social media workflow efficiently.
Before we begin, make sure to go through the following to make the most out of Statusbrew Rule Engine.
Auto Tag Conversations With Rules
Automatically Tag and manage your inbox using Rules in Statusbrew.
Go to Rule Engine and click Add new rule.
Give a Name to your rule, e.g., "High Priority Tags.”
Select the relevant Data sources (e.g., Facebook, Instagram).
Set the Trigger type (Message received).
Apply Filters to narrow down the scope:
Add condition > Message Content > In(=) > 'urgent' to tag messages containing "urgent” keyword.
Add condition > Conversation Type > In(=) > Instagram Comment to target public interactions on Instagram.
Select Action to execute the rule:
Add a new action > Add tags and choose tags like "High Priority" or "Customer Support.”
Click Submit to save and activate the rule.
Auto Manage Custom Inboxes
Ensure messages are handled by the appropriate teams automatically.
Navigate to the Team Inbox section in Statusbrew Engage and create a custom inbox. Add collaborators to manage this inbox.
Then, go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule, e.g., "Move X DMs to Customer Support inbox.”
Select the relevant Data sources (e.g., Facebook, Instagram).
Choose a Trigger type, that is Message received for all incoming conversations.
Add Filters:
Add condition > Message Content > In(=) > "help" to move conversations containing "help" to a specific inbox.
Add condition > Conversation Type > In(=) > X DM to target X DMs containing "help" keyword.
Select Action:
Add a new action > Move to Engage Inboxes and choose the inbox (e.g., "Customer Support").
Click Submit to save and activate the rule.
Manage Spam With Rule Engine
Set up a rule to automatically manage and hide spam comments.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Spam Filter").
Select the Data sources (e.g., Facebook, Instagram).
Choose a Trigger type (i.e., Message received).
Add Filters to target spam comments:
Add condition > Message Content > In(=) > Buy Likes, Buy Followers, Cheap, Fake to filter comments containing these keywords.
Add condition > Conversation Type > In(=) > Facebook Ad Comment, Instagram Ad Comment to target spam comments on ads.
Click Add a new action and choose Hide comment.
Click Submit to save and activate the rule.
Optional:
To delete spam comments, select the Delete comment action.
To hide comments and move them to a specific Team Inbox (such as Hidden comments) for moderation, add another action of Move to Engage Inboxes.
Remove Spam Links With Rule Engine
Set up a rule to automatically remove spammy links from your comments section.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Remove Spam Links").
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Message Links Count > Is not null to identify comments containing links.
Add condition > Conversation Type > In(=) > Facebook Ad Comment to target spam comments on Facebook ads.
Select Action:
Add a new action > Hide comment or Delete comment based on your preference.
Click Submit to save and activate the rule.
Automate Customer Service With Rule Engine
Use Statusbrew's Rule Engine to assign high-priority conversations to customer service agents based on sentiment.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Escalate Negative Instagram Comments").
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Sentiment > In(=) > Negative to identify negative sentiment comments.
Add condition > Conversation Type > In(=) > Instagram Comment to target negative comments on Instagram.
Select Action:
Add a new action > Assign conversation and choose the appropriate user or user group (e.g., senior customer service agents).
Click Submit to save and activate the rule.
Set Up Automatic Private Replies For Instagram & Facebook
Automate private replies to users who mention "help" in their comments.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Automatic Replies To Help Messages").
Select the relevant Data sources (e.g., Instagram & Facebook).
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Message Content > In(=) > "help"
Add condition > Conversation Type > In(=) > Facebook Comment
Select Action:
Add a new action > Send a private message > "Thank you for reaching out! How can we assist you further?"
This rule can also be applied to Facebook dynamic ad comments to ensure prompt responses to potential customers.
Set Notifications With Rule Engine
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g. Notification for Negative LinkedIn Comments)
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Add Filters:
Add Condition > Sentiment > In(=) > Negative to identify negative sentiment.
Add Condition > Conversation Type > In(=) > LinkedIn Comment to target LinkedIn comments.
Select Action:
Click Add a new action and select the appropriate notification action.
Click Submit to save and activate the rule.
Auto Filter Conversations On Language Basis
Automatically move all conversations of a specific language, for example, Japanese, to a dedicated inbox.
Navigate to the Team Inbox section in Statusbrew Engage and create a custom inbox that will hold all Japanese conversations.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Move Japanese Conversations").
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Language > In(=) > Japan
Select Actions:
Add a new action > Move to Engage Inboxes and select the desired Team Inbox (e.g. All Japanese)
Click Submit to save and activate the rule.
Auto Hide Comments With Attachments
Automatically hide Facebook comments containing attachments.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Hide Facebook Comments with Attachments").
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Message has attachments > Is(=) > True to identify comments with attachments.
Add condition > Conversation Type > In(=) > Facebook Comment to target Facebook comments.
Select Action:
Add a new action > Hide comment
Click Submit to save and activate the rule.
Auto Close Conversations With Mentions & No Text
Save time by automatically closing X mentions that contain no text.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Close X Mentions with No Text").
Select the relevant Data sources (i.e., X accounts).
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > Message Mentions Count > Is not null to identify conversations containing one or more mentions.
Add condition > Message Content > Is null to identify mentions with no text.
Add condition > Conversation Type > In(=) > X Mention to filter for all X mentions.
Select Action:
Add a new action > Close conversation
Click Submit to save and activate the rule.
Auto Notify About Conversations From A Particular Campaign
Automate notifications for conversations from specific marketing campaigns.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Campaign Notifications").
Select the relevant Data sources (i.e., X accounts).
Choose a Trigger type (i.e., Message received).
Add Filters:
Add condition > UTM Campaign > Is(=) > "Summer Campaign" to filter conversations from the specified campaign.
Select Actio:
Add a new action > Slack Alerts and choose the desired Slack workspace and channel to receive notifications in.
Click Submit to save and activate the rule.
Tag Spam Or Troll Accounts
Automatically tag and manage spam or troll accounts using Rules in Statusbrew.
Go to Rule Engine and click Add new rule.
Give an appropriate Name to your rule (e.g., "Tag Spam or Troll Accounts").
Select the relevant Data sources.
Choose a Trigger type (i.e., Message received).
Apply Filter to identify potential spam or troll accounts:
Add condition > Message Content > In(=) > 'spam,' 'troll,' 'fake' to filter messages containing these keywords.
Select Action:
Add a new action > Add tags and choose tags like "Spam" or "Troll.”
Click Submit to save and activate the rule.
To notify Moderators, add another action to send a notification to the appropriate medium.
To move spam or troll messages to a specific inbox, add an action to move them to the specific inbox (e.g., "Review Spam").
Keep Mentions From Verified Accounts In A New Inbox
This rule helps you prioritize high-value conversations by automatically routing mentions from verified X accounts into a dedicated inbox.
From the Statusbrew dashboard, go to the Rule Engine and click Add new rule.
Name the rule (e.g., "Route Verified Account Mentions").
Select the relevant Data sources (X accounts).
Define a Trigger type (e.g., Message received).
Add Filters:
Add condition > Twitter Verified > Is(=) > True.
Add condition > Conversation Type > In(=) > X Mention.
Select Actions:
Add a new action > Move to Engage Inboxes > Select Verified Acc Mentions inbox
Click Submit to save and activate the rule.