Setting values in the bot's memory

This functionality allows you to commit values to a dialog.

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

1

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

2

Go to Action Settings

Name of action

Display name, by which you can easily identify the desired action in the general list.

Function name

Must describe the main meaning of the action. Only English characters and underscores are allowed (_)

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

Several webhooks can be called or other functions can be performed within one action.

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.

3

Fill in the blanks:

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

4

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

5

Select the type of step

6

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

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.

7

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

8

Setup is complete

Last updated