Chatbot education

👉 Chatbot videos

👩🏼‍🎓 Bot Academy

Activechat Essentials

E-commerce Chatbots

Advanced Chatbot Tools

Tracking code installation

Tracking page visits

Natural Language Chatbots

Intents and Entities

NLP contexts

Building Dialogflow agent and connecting to Activechat

Sending user input to NLP engine

Triggering bot skills by intents and events

Working with entities

Slot filling

Using contexts

NLP best practices 

SWITCH blocks, conditional branches

Smart chatbots take decisions and behave differently in different situations. Flexibility is a key factor in creating a bot that will be really useful and engaging.

To achieve this in Bot Architect you can use SWITCH blocks. When executed, it will check certain conditions and route the flow to different parts of your bot based on these conditions. 


Each condition in SWITCH block has it’s own “button” which can be used to trigger other block flows (just connect it to another block with an arrow).

If none of the conditions is true, DEFAULT button will trigger the block that is connected to it.

You can use logical AND / OR to make complex conditions. 

Possible operators are:

  • > (greater than)
  • < (less than)
  • >= (greater or equal)
  • <= (less or equal)
  • == (equals)
  • != (not equals)
  • ∈ (contains)
  • ∉ (does not contain)

In the example above the bot will check if $value variable is less than -5 or greater than 5 (“out of limits”). If this is true, as a result first text block will be triggered. Then, the bot will check if $value is equal to zero. And if none of these conditions are true, “default” exit from SWITCH block will take control.