ChatBot gives you the full control over your bot responses and actions. Thanks to the context planning you can precisely decide not only what but also when happens.
A story is a set of interactions bonded together into a logical tree structure. The position in that tree defines when the interaction’s priority and availability. While the bot traverses the scenario, different bot answers become available.
The current position of the bot defines its possibilities and options called context. The context changes every time the bot moves along the story and opens newly possible interactions as well as closes the previous ones.
How does the context work
When you’re testing your story in the built-in chat, triggered interactions are automatically highlighted what can help you to understand what exactly happens in your story.
In the above example we’ve got five different responses,
B are the root responses and
D are child responses. Additionally, below
E, there’s the reference to
D. So let’s analyze how does it work.
- The root responses
Ecan always be reached from any point of the story
- The reference to
Dcolored in green is a shortcut that allows jumping from one end of the story to another, without copying the content.
Ais selected, the bot can match
- You can block the context using the backtracking action
- Each step of the story can have its context fallback message
What do we need the context for
The context gives us the control over what happens to the story. It defines the conversation flow and the next steps of the chat. You can decide what happens in every part of the story. Additionally, you can use the context fallback triggered when the query cannot be matched.