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

To add contextual response, follow these steps:

  1. Go to Automation > 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.

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

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

  6. Enter Intent name, Utterances that synonymous with the intent.

  7. To add another uttrancs, click Add another uttrance. Similarly, you can add multiple utterances.

  8. Click Add.

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

Bulk upload and download of contextual responses

Import contextual responses

You can upload bulk responses only in CSV file format.

To upload contextual responses in bulk into your system:

  1. Create a CSV file with two columns - intent as the first column header and utterance as the second column header.

  2. Go to Bulk manage > Import > Upload file.

  1. Click Upload file and pick the file that you have created.

Download contextual responses

To download contextual responses in bulk:

  1. Go to Bulk manage > Export.

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