Accepting payments and sending invoices
Sending order updates
Sample Messenger store assistant
Intents and Entities
Building Dialogflow agent and connecting to Activechat
Sending user input to NLP engine
Triggering bot skills by intents and events
Working with entities
NLP best practices
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:
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.