How to add a Split by condition chatbot block
A Split by condition block sends conversations down different paths based on a rule. It can check a customer's reply, the result of an earlier block, or the day and time.
Before you start
Any role can do this: Owner, Admin or Agent.
Steps
- Go to Chatbots.
- Click the chatbot, or create one. The chatbot editor opens.
- Click Add step at the end of a path, or the + on a line between two blocks.
- Choose Split by condition.
- In the Conditions section, open the condition and choose What to check:
- A reply or result from an earlier block, such as Wait for a reply, Send rich message, Detect intent or HTTP request.
- Day and time, then choose the days, the hours and the Time zone.
- Under Rule, choose a Comparison, such as Is, Contains or Is empty, and enter or choose a Value.
- Optionally, click Add condition to add another path.
- On the canvas, add the next blocks for each condition's path and for No matching condition.
To write a condition as an expression, click Write an expression instead. Click Use the condition builder to go back.
What happens next
When a conversation reaches this block, the chatbot checks the conditions once, from the top, and follows the first one that matches. Conversations that match none follow No matching condition. Click Save draft to keep your changes.
Troubleshooting
Conversations go down the wrong path
Move exceptions above general rules with Move up. Conditions are checked from the top, and only the first match counts.
Chatbot can't be activated yet
Open the highlighted condition and complete What to check, Comparison and Value. For an expression, finish it or click Use the condition builder. Then click Activate again.