> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user-documentation/bot-builder/save-variable-value-block.md).

# Save Variable Value Block

The **Save Variable Value Block** is used to store data during a conversation. Unlike message blocks, this block does not send any message to the user. Instead, it manages and stores information behind the scenes, making your automation more intelligent and data-driven.

#### How to Use the Save Variable Value Block

1. Open your **Chat Flow**.
2. Click **Add Node**.
3. Go to **Native Tools**.
4. Select **Save Variable Value**.

#### Configure the Block

**1. Select Field**\
Choose where you want to store the value. You can select either:

* **Super Field (Custom Field)**
* **Bot Field**

**Super Fields (Custom Fields)**\
These are **permanent fields** stored in the user's profile. They can be used to save information such as:

* Lead source
* User budget
* Selected plan
* Email address
* Chat name

**Bot Fields (B Fields)**\
These are **temporary fields** that exist only during the current session or flow. They are commonly used for:

* Temporary values
* Step counters
* Calculated discounts
* Intermediate data used during automation

Once the session ends, **Bot Field values may reset**.

**2. Text Source**\
This defines what data should be stored in the selected field.

For example:

* If the user typed a response, choose **Last Text Input**.
* If the user clicked a button option, choose **Last Button Title**.

This ensures the correct user input is captured and stored.

#### Save the Configuration

After selecting the field and the data source, click **Save**.

The **Save Variable Value Block** helps store important user information during conversations, enabling smarter automation and personalized interactions.

{% embed url="<https://www.youtube.com/watch?v=RWWkEi7rIhg>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocumentation.gitbook.io/user-documentation/bot-builder/save-variable-value-block.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
