Summary
Rule-based automation in Wati helps you automatically perform tasks based on specific events and conditions. By creating rules, you can trigger actions such as sending messages, updating information, or responding to customers without manual effort.
Each rule in Wati is built using three core components: Triggers, Filters, and Actions. This guide explains what these components mean and walks you through how to create your first automation rule.
Instructions
Understanding the building blocks of a rule
Rule-based automation works by connecting three elements that define when, why, and what should happen.
Trigger
A Trigger is the event that starts the automation.
Examples of triggers include:
A new message is received
A contact attribute is added
A contact attribute is updated
When this event occurs, the rule begins to run.
Filter
A Filter defines the conditions that must be true for the rule to continue. For example, you may only want the rule to run if a message contains a specific keyword, if the message has a image or document attached, if the message is a voice note, or if a contact attribute has a certain value.
Action
An Action is the automated task that Wati performs after the trigger occurs and the filter conditions are met.
Examples of actions include:
Sending a template message
Updating contact attributes
Assigning a conversation
Steps to create a rule
Follow these steps to create your first automation rule in Wati:
1. Go to automation rules
Navigate to the Automation page.
Select the Rules tab from the left panel.
2. Create a new rule
Click Create new rule.
Select the Trigger you want to use.
3. Open the rule builder
After selecting a trigger, you will be taken to the Rule Builder page. Give an appropriate name for your rule before proceeding.
The Rule Builder allows you to configure the three components of your rule:
Trigger
Filter
Action
For this example, we will use the trigger New attribute is added to a contact.
4. Configure the trigger
Click the Trigger block.
Select the contact attribute you want the rule to monitor.
5. Add a filter (optional)
Filters let you narrow down when the rule should act. For example, you can set a filter so the rule only runs if a message contains a specific keyword or if a contact attribute has a particular value. If no filter is added, the rule runs for every contact that matches the trigger.
6. Add and configure the action
Click the Action block.
Choose the action you want the rule to perform.
For this example:
Select Send template message.
Choose the template you want to send automatically when the rule is triggered.
Wati will continue to add more automation actions over time to support additional use cases.
Example rule
Here is a simple example of how a rule works.
Scenario:
A new attribute
countryis added to a contact.The attribute value contains the word "india".
Result:
Wati automatically sends a predefined wati_test template message to that contact.
This type of automation helps businesses instantly respond to customers based on their information or activity.
Understanding rule execution order
Wati evaluates automation rules from the top of the Rules list to the bottom. When multiple rules match the same message, all matching rules run, with one exception: only 1 chatbot or AI agent can take a conversation.
If multiple matching rules attempt to start a chatbot or assign the conversation to an AI agent, only the action in the highest matching rule takes effect. Other actions in the matching rules continue to run as usual.
How to change the rule order
You can change the order of rules to control which chatbot or AI agent takes a conversation when multiple rules match.
Go to the Automation page and select the Rules tab.
Click Reorder.
Drag the rule to its new position in the list.
Click Save changes to save the new order.
Important:
New rules are added to the top of the list.
Turning a rule off does not change its position. When you turn it back on, it runs in the same position.
Example: Multiple rules match the same message
Suppose 3 rules match the same incoming message:
Book an appointment — Starts a chatbot.
Talk to support — Assigns the conversation to an AI agent.
Save appointment date — Updates a contact attribute.
In this example:
The Book an appointment rule starts its chatbot because it is the highest matching rule.
The Talk to support rule does not start its AI agent because the chatbot has already taken the conversation.
The Save appointment date rule updates the contact attribute as usual.
If you want the AI agent to take the conversation instead, move the Talk to support rule above the Book an appointment rule.
When rules do not run
A rule does not run in the following situations:
The contact is currently in the middle of a chatbot.
The rule is turned off.
The rule's trigger is not included in your Wati plan.
The chat is assigned to a human agent or AI agent, and the rule is triggered by an incoming message.
The conversation is blocked.
The trigger is an emoji reaction.
Rules triggered by other events can still run while an agent is handling the chat. These include:
Contact attribute changes
Shopify events
Schedules
Missed calls
If one of these rules sends a message or starts a chatbot, the conversation moves from the assigned agent back to the bot.
To avoid interrupting an agent's conversation, use actions such as:
Route to team
Assign to operator
Update contact attribute
Notification
These actions leave the conversation with the assigned agent.
Multiple rules that start different chatbots
If 2 matching rules start different chatbots, the chatbot in the rule higher in the Rules list starts. The chatbot in the lower rule is skipped, but its other actions still run normally.
You can change which chatbot takes the conversation by changing the order of the rules.
New rules and priority
New rules are added to the top of the Rules list, giving them the highest priority. You can move a new rule to a different position after it is created.
Time-Based Rules
Time-Based Rules cannot be reordered. They run according to their schedules and do not have a priority order.
Frequently Asked Questions (FAQs)
Rule-based automation
1. What is rule-based automation in Wati?
Rule-based automation in Wati automatically performs tasks based on specific events and conditions. Rules can trigger actions such as sending messages, updating information, or responding to customers without manual effort.
2. What are the 3 components of a Wati automation rule?
A Wati automation rule has 3 core components:
Trigger: The event that starts the automation.
Filter: The conditions that must be met for the rule to continue.
Action: The automated task Wati performs after the trigger occurs and the filter conditions are met.
3. What is a trigger in a Wati automation rule?
A trigger is the event that starts an automation rule. Examples include receiving a new message, adding a contact attribute, and updating a contact attribute.
4. What is a filter in a Wati automation rule?
A filter defines the conditions that must be true for an automation rule to continue. For example, a filter can check whether a message contains a specific keyword, has an image or document attached, is a voice note, or whether a contact attribute has a specific value.
5. What is an action in a Wati automation rule?
An action is the automated task Wati performs after the trigger occurs and the filter conditions are met. Examples include sending a template message, updating contact attributes, and assigning a conversation.
Rule execution and priority
6. How does Wati handle multiple rules that match the same message?
Wati evaluates automation rules from the top of the Rules list to the bottom. All matching rules run, except when multiple matching rules attempt to start a chatbot or assign a conversation to an AI agent. In that case, only the action in the highest matching rule takes effect. Other actions in the matching rules continue to run normally.
7. What happens when multiple rules start different chatbots?
If 2 matching rules start different chatbots, the chatbot in the rule higher in the Rules list starts. The chatbot in the lower rule is skipped, but its other actions still run normally.
When rules do not run
8. When does a Wati automation rule not run?
A Wati automation rule does not run when:
The contact is currently in the middle of a chatbot.
The rule is turned off.
The rule's trigger is not included in the Wati plan.
The chat is assigned to a human or AI agent and the rule is triggered by an incoming message.
The conversation is blocked.
The trigger is an emoji reaction.










