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:
Go to Automation > Train > Context management.
For existing intents, click Set default response to set a default response to that intent.
Choose a type of default message and add the respective info.
To add more utterances to that intent, click Edit, add the utterance and click Add.
To add new intents and contextual responses, click + Add contextual intents.
Enter Intent name, Utterances that synonymous with the intent.
To add another uttrancs, click Add another uttrance. Similarly, you can add multiple utterances.
Click Add.
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:
Create a CSV file with two columns - intent as the first column header and utterance as the second column header.
Go to Bulk manage > Import > Upload file.
Click Upload file and pick the file that you have created.
Download contextual responses
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.