> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/actions.md).

# Actions

There are 10 in total:&#x20;

1. send a message&#x20;
2. Process message&#x20;
3. set variable&#x20;
4. Extract data&#x20;
5. Write to statistics&#x20;
6. Run Smart Query&#x20;
7. Working with the user&#x20;
8. Switching to another scenario&#x20;
9. Scheduled transitions&#x20;
10. Write to the manager&#x20;

Actions are added to your script screen as rectangular boxes.&#x20;

There are two ways to add an action:&#x20;

1. Select the desired action in the additional menu

![](/files/1fIux6dB8zTTnuuHEeIx)

2\. Right-click anywhere on the screen of your scenario and select the desired action from the pop-up window

![](/files/RQQTB403AnXCGwNTXUOb)

A new action block will appear in the middle of your script screen. The right menu of block settings will open automatically.

![](/files/Qn6uTN6wBU9yLqFmirbY)

Action blocks are connected by arrows.

![](/files/vx25Llmg7Xcq7RWr4KwE)

In order not to look for the next action on the screen for a long time, you can select it in the block settings menu (on the right) in the "Next block" section:

![](/files/5ixFPEXagiu4dXJOrMW1)

All blocks of your script are displayed here. When you select the right one, the arrow will automatically connect the two blocks.

### Quick Block Editing

Actions, like any other blocks, can be deleted, copied and pasted.

* **To delete an action**, click on it and press the trash can icon in the block settings menu or press the DELETE key.&#x20;
* **To copy a block**, click on it and press CTRL + C or CMD + C (for mac os). A notification about copying blocks will appear.&#x20;
* **To paste the copied blocks**, use the key combination CTRL + V or CMD + V (for mac os).&#x20;
* **To delete a connecting arrow**, highlight it and press the DELETE button. Don't forget that the bot always needs a message from the user to start working.&#x20;

Therefore, do not forget to associate bot actions with events.

![](/files/0F7OHyXot9StW4cFMsgJ)

When your script is ready, all you have to do is [publish it.](https://docs.smartbotpro.ru/scenarii/publikaciya-scenariya)

![](/files/hCkdMfZY7r7dZBGC8ZsT)

From now on, it will work in the [selected channel.](https://docs.smartbotpro.ru/nachalo-raboty/kak-podklyuchit-messendzher)
