What is context

Image of an author
Sylwia Kocur
3 min read
updated: Oct 22, 2024

A bot flow is a set of actions & interactions bonded together into a logical structure. ChatBot gives you complete control over your bot flow responses and actions.

The position in that structure defines the interactionā€™s priority and availability. While the chat proceeds, different bot responses become available.

The bot’s current position defines its possibilities and options, called contexts. The context changes every time the bot moves, opening new possible interactions and closing the previous ones.

Context applies only to the bot flow. The bot starts searching for answers in the bot flow when the user sends a message based on the context rule. When there is no answer in the flow, it looks for answers in the AI Knowledge and Training features. Context does not apply to these features.
Context applies only to the bot flow. The bot starts searching for answers in the bot flow when the user sends a message based on the context rule. When there is no answer in the flow, it looks for answers in the AI Knowledge and Training features. Context does not apply to these features.

How does the context workLink icon

The context gives you control over the bot’s events. It defines the flow and the next steps of the chat. You can decide what happens in every part of the bot.

When you test your bot in the Testing Tool, triggered interactions are automatically highlighted, which can help you see what happens in your flow. You can also use the context fallback triggered when the query cannot be matched. Now, let’s understand how it works.

In the above example, weā€™ve got three User Input blocks, A, B, and C:

  • A and C are root user inputs

  • B is a child user input

How it works in our Testing Tool:

  1. We’ve tried to trigger User Input B, but our user is not in this context, and that’s why Fallback was triggered.

  2. We’ve triggered A path firstly and then B path. It succeeded because the user has access to a B context after triggering A path.

  3. We’ve trigger A or C path at the beginning. As you can see, the user can access these interactions at the start. These User Intents are called roots.

Conclusion:

  • The root user inputs A and C can always be reached from any point of the story.

  • When A is currently triggered, the bot can match B user input.

Other testing options are in theĀ Testing tool settings. You can disable following the chat on the bot flow there, turn on theĀ Debug modeĀ to see more details about the actions on the flow or reset the chat to start testing from the beginning.
Other testing options are in theĀ Testing tool settings. You can disable following the chat on the bot flow there, turn on theĀ Debug modeĀ to see more details about the actions on the flow or reset the chat to start testing from the beginning.

Read more:

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

Weā€™re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products