> For the complete documentation index, see [llms.txt](https://book.microcrm.online/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.microcrm.online/konstruktor-chat-botov/tipy-uzlov/sokhranit-v-kontekst.md).

# Сохранить в контекст

Сохраняет значение в переменную контекста для использования в дальнейшем сценарии.

<figure><img src="https://2761604671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBnmghAGVwptospVllo8n%2Fuploads%2FoZU1MeZmsrslDXtSWT5M%2Fimage.png?alt=media&amp;token=fd0e78fe-f5b5-4e47-a29a-0e9d8a99ee90" alt=""><figcaption></figcaption></figure>

## **Настройки**

* **Переменная** — имя переменной (без `{{}}`)
* **Значение** — что сохранить (может быть текст, число, формула, другая переменная)

## **Примеры**

```
Переменная: score
Значение: 0

Переменная: score
Значение: {{context.score}} + 1

Переменная: greeting
Значение: Привет, {{client.name}}!
```
