> For the complete documentation index, see [llms.txt](https://docs.suvvy.ai/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suvvy.ai/en/workflows/setting-values-in-the-bots-memory.md).

# Setting values in the bot's memory

What's it for?

The values at the dialog are fixed when there is a restriction on history transfer, but there is important data that needs to be saved so that you don't get it again in the dialog, for example:

* Client Name;
* Phone;
* Order number;
* Any other transaction details.

### Create an action to set a value in the bot's memory

{% stepper %}
{% step %}

### Go to the “Workflows” section and click the “Create” button

<figure><img src="/files/and5lfknUcFeXT1X6W0G" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Go to Action Settings

<figure><img src="/files/DtjLSQ04R7jNWZ9cTyP7" alt=""><figcaption></figcaption></figure>

| **Name of action**              | Display name, by which you can easily identify the desired action in the general list.                                                                                                                                                               |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Function name**               | <p>Must describe the main meaning of the action.<br>Only English characters and underscores are allowed (<code>\_</code>)</p>                                                                                                                        |
| **Function description**        | A description of what the action will do                                                                                                                                                                                                             |
| **Error message**               | This text will be returned to the bot in case of an error. It is recommended to write something like “An error occurred” there                                                                                                                       |
| **Rules for replying to a bot** | <p>Several webhooks can be called or other functions can be performed within one action.</p><p>With this setting, we have the ability to choose whether the response from the first step, the last step, or all steps will be passed to the bot.</p> |
| {% endstep %}                   |                                                                                                                                                                                                                                                      |

{% step %}

### Fill in the blanks:

<figure><img src="/files/hLhHe9Wd01uD1QoA2rYo" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To automatically generate the Function Name, fill in the Action Name field and click the auto-generate button to the right of the Function Name field
{% endhint %}
{% endstep %}

{% step %}

### Add a step by clicking on the “Add Step” button

<figure><img src="/files/8rzOG2KFiWW5dbQZmz4i" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Select the type of step

<figure><img src="/files/9AZFxN6zfNR4zh0Nz7XJ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### In the menu for setting the step, fill in the fields “Key in memory” and “Value in memory”. Click “Save”.

<figure><img src="/files/e5JALElKNk5Tbas1oSfN" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Name** - is filled in automatically when selecting the step type.

**Memory key** - this is some value by which the bot will search.

**Value in memory** - this is the data that will be fixed/saved to the memory key.
{% endhint %}
{% endstep %}

{% step %}

### Click on the “Save” button to save the action.

<figure><img src="/files/MOpFMLnCEKJZGGsCelnc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Setup is complete

<figure><img src="/files/Nc3pLL2v0BFWgr57Z59S" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
