# Variables

Variables are used in Chatlayer.ai to store any information the bot knows about a customer. This can be the language or channel they're using, but also information coming from external data sources through for example an API. All variables are stored on what is called the *session* of a user.

## Sensitive variables - GDPR

In Chatlayer.ai you can make sure that variables are not stored. This is typically useful when the conversation between a bot and user contains sensitive information, such as a bank account number. Sensitive data often should not or can not be stored with an external provider like Chatlayer.ai, in order to comply with GDPR or other data & security policies.

To make sure variables are not stored in the database you can click on Variables in the Settings tab. Here you can add a variable to the list of variables by clicking on + Variable.

![](/files/-MFgEBGENl9hvY9zVV_R)

If you put the Sensitive toggle to `true`, the content of your variable will never be stored in the database. Instead only a placeholder with the variable name is stored.

## Incrementing variable counter

If you want to incrementally increase the value of a variable, you can use the following steps:

* Define a variable, for example `variableName`, and give it a numeric value such as `0`
* At the point in the flow where you want to increment the value of `variableName`, enter variableName as the variable and `{variableName|increment}` as the value.

This method will increase the value of counter by 1 each time for example a specific bot dialog is passed or button is clicked.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-convai.wavy.global/bot-answers/settings/secure-variables-gdpr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
