👤 Who can use this feature

  • Context is available on all plans.


Context

Track Context within a script to visualize the shared understanding that develops between the user and the bot over the course of the conversational interaction. Context is located within individual scripts and added via the Script Block menu.

Context Types & Context Values

Context has types and values. The Context type describes what the Context represents in the script. Each Context type can be assigned a name and a color. Context types are shared across every script in a project.

Here are a few examples of Context types:

  • Authentication: Whether or not the user is logged in to a system

  • Name: The user’s name

  • Time of day: The time that a conversation is taking place

The Context value describes the value of a Context type at a particular point in the script. Here are some examples of Context values for the above Context types:

  • Authentication: logged in

  • Name: Samantha

  • Time of day: 1 PM

Create a New Context

If the desired Context type or value does not already exist, create a new Context type and provide a value for it. Context can be accessed from the Script Block menu within the Script Editor. To create a new Context:

  1. Open a script.

  2. Click the orange plus sign to the left of a message to open the Script Block menu.

  3. Click 🎯 Context.

  4. Type your desired Context type.

  5. Click the +Create new context button at the bottom of the Script Block menu.

  6. Type your desired Context value.

  7. Click Create Context.

Add an Existing Context to a Message

Existing Context values and types can be accessed from the Script Block menu within the Script Editor. To add an existing Context to a message:

  1. Open a script.

  2. Click the orange plus sign to the left of a message to open the Script Block menu.

  3. Click 🎯 Context.

  4. Use the search bar or scroll through the menu and select a predefined context type and value to apply to the message.

Remove Context from a Message

To remove Context from a message:

  1. Open the message with Context to be removed.

  2. Click the X icon in the Context tag of the Context to be removed.

  3. Click Confirm in the warning modal.

  4. The text of the Context value will be struck through and its line will be terminated. This indicates that the Context is no longer relevant from that point on in the script.

To remove the Context from the script entirely, follow steps 1-3 at the first instance of the Context to be removed in the script.

Did this answer your question?