# 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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2Fk1mDFSRwGDEI74WOs4ln%2F1.png?alt=media\&token=d07d58ff-3fe2-413a-8199-80e8c5554f95)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FQ5nrRPf1466UUZqyR3OS%2F2.png?alt=media\&token=f3504ed8-02af-4396-958b-dd6679b8b18c)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FhoQLMuPwcziAcdnAwbo7%2F3.png?alt=media\&token=bbe68fe6-ed82-4a59-bc6b-7feb081ee132)

Action blocks are connected by arrows.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F8b8GYp0kgscJpJvsjLuX%2F4.png?alt=media\&token=7d99be07-59aa-4e7d-971c-36fd111b5754)

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:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FNCUbbBnwAnPtODPfFltO%2F5.png?alt=media\&token=99c1c670-cf53-45d6-9d6e-a7290a094152)

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.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FytcnI64VfrUYGqY5Fd1W%2F6.png?alt=media\&token=6a2d2bff-4983-4001-8ef4-069d8fe7619a)

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

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FhBsZlUgHV1A3Q6VMj9vc%2F7.png?alt=media\&token=e2236996-b92d-4bfe-b0ad-7bab6b908f72)

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