# Text

## Overview

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

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-Lqv6AUKnnJWivMa595j%2F-LqvA4qfVLl3R7WEYVj0%2Fdoc-36.png?alt=media\&token=bb2b34b9-1905-4a45-a34c-57c6f52a19d5)

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.

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-Lqv6AUKnnJWivMa595j%2F-LqvBjN-teE25MAV9S-h%2Fdoc-37.png?alt=media\&token=1ce553f9-10d7-4c47-87ad-e74cfc9c25c4)

## Accessing objects in output

You can access next objects in the output:&#x20;

| 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:

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-LrxTC_sgko5qUxvtEc9%2F-LrxTYmNZ0T1nBwFnMK3%2FScreen%20Shot%202019-10-24%20at%202.14.56%20PM.png?alt=media\&token=7844bcef-fb32-47f2-9e4f-8e6ca5f9b22d)

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

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-LrDdlGfPM8ekH8IyQ0G%2F-LrDdp1qLNSK9DS137D_%2Fdoc-43.png?alt=media\&token=97838b25-6620-40e2-885b-4befed809632)

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:

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-LrDXLfw-4EF19-vbQHH%2F-LrD_91MM83FfYv1tC0w%2Fdoc-40.png?alt=media\&token=943f7bcf-ece6-45e4-ad80-af69fc979afd)

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

![](https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-LrDXLfw-4EF19-vbQHH%2F-LrD_CuMFo0XvDyUujBk%2Fdoc-41.png?alt=media\&token=95c5daa6-15b8-41a8-b876-e63eae76fa88)

## 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." &#x20;

<div align="left"><img src="https://3295177523-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lit4AWYuRQwOi31ApzH%2F-LrDXLfw-4EF19-vbQHH%2F-LrDaVc-cu_vp0TTNdz0%2Fdoc-42.png?alt=media&#x26;token=3a7eb608-1501-4497-aebe-72015dc5f659" alt="Access the Expert mode"></div>

Here are a few examples of using the expert mode.

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

and example with accessing the objects:

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