Skip to main content

Context Management

Adding contextual responses involves providing additional context as a response to a specific prompt.

Here's an example:

  • Bot: Can you share your email with me?
  • User: Sure, [email protected] (Expected response)
  • User: What is an email? Or Why do you need my email? (Received response)

In this scenario, the user asks a question about emails instead of directly providing their email address. To handle these types of contextual intents, contextual responses can be employed to provide appropriate information or address the user's query.

Add contextual responses

By establishing standardized contextual responses for all prompts across various user journeys in the bot, users will receive a response when they ask questions starting with words like Why, What, How, and so on, regardless of the specific prompt.

  1. Go to Studio > Train > Context Management.

  2. For existing intents, click Set default response to set a default response to that intent.

  3. Choose a type of default message and add the respective info.

  1. To add more utterances to that intent, click Edit, add the utterance and click Add.

  2. To add new intents and contextual responses, click + Add contextual intents.

  3. In Intent name, enter the name of the intent.

  4. In Utterances, add the different phrases that synonymous with the intent and click Add.

  5. Click Train responses to train the bot on the added intents and responses.

Bulk upload and download of contextual responses

Bulk upload

To upload contextual responses in bulk into your system go to Bulk manage > Import > Upload file.

Sample file


Bulk download

To download contextual responses in bulk, go to Bulk manage > Export.

All the contextual responses will be downloaded to your system as a CSV file.