Text

Last Updated: 25.10.2019

Overview

If you want to provide a text response, enter the text that you want to display to the user.

To work with the text, you have additional options available in the top right corner. You can make the text bold, Italic, Underline text and add a bulleted list or ordered list.

Accessing objects in output

You can access next objects in the output:

Object

Description

context.context_name

The output text will include the information stored in the context variable.

entity.entity_name.value

The output text will include information about the entity that was mentioned by the user during the conversation.

To include a context variable value in the response, use the syntax {{context.variable_name}} to specify it. For example, in the system by default, you have the context variable user.firstName and user.lastName. You can use these context variables or any of your custom context variables in the output.

Your response of the node can look like this:

The end-user will get next response in the chat:

You can also access entities by using the same approach. For accessing entities you need to use next syntax {{entity.name_of_the_entity.value}}. For example, you ask the user to provide the status for the creation of a new incident, and the end-users send the next text: "the status is urgent." After this, you want to get the confirmation for creation of incident, and you need access the entity value to get the confirmation from the user:

The end-user will get next response in the chat:

Expert mode in JSON format

You can use the expert mode to specify the output text. The expert mode becomes available by pressing the button next to the word "Output."

Access the Expert mode

Here are a few examples of using the expert mode.

[
{
"type": "text",
"value": "Could you please describe your problem"
}
]

and example with accessing the objects:

[
{
"type": "text",
"value": "Confirm the creation of the new incident:"
},
{
"type": "text",
"value": "Description: {{context.short_description}}"
},
{
"type": "text",
"value": "Status: {{entity.status.value}}"
}
]

‚Äč