# Scripts

- [Basics](https://docs.smartbotpro.io/scripts/basics.md): In this section, we'll learn how to get started with scripting.
- [Create a script](https://docs.smartbotpro.io/scripts/basics/create-a-script.md): In this section, we will look at the process of creating and running our own scripts.
- [Script templates](https://docs.smartbotpro.io/scripts/basics/script-templates.md): You will learn how to use ready-made scripts
- [Editor interface](https://docs.smartbotpro.io/scripts/basics/editor-interface.md): In this section, we will consider the main functionality of the script editor interface.
- [Publishing a script](https://docs.smartbotpro.io/scripts/basics/publishing-a-script.md): Briefly talk about the script publishing interface
- [Script testing](https://docs.smartbotpro.io/scripts/basics/script-testing.md): Here we will tell you how to check the operation of your chain in one click
- [How the script is chosen](https://docs.smartbotpro.io/scripts/basics/how-the-script-is-chosen.md): In this article, we will tell you how Smartbot chooses a script to run
- [Script events](https://docs.smartbotpro.io/scripts/script-events.md)
- [Message from user](https://docs.smartbotpro.io/scripts/script-events/message-from-user.md): In this section, we will cover the input event in detail.
- [No appropriate script](https://docs.smartbotpro.io/scripts/script-events/no-appropriate-script.md): In this article, you will learn how to set up a bot to respond if a message from a user does not fit any script.
- [First message](https://docs.smartbotpro.io/scripts/script-events/first-message.md): Here you will learn how to set up a greeting in response to the user's very first message.
- [VK Events](https://docs.smartbotpro.io/scripts/script-events/vk-events.md): Here we will tell you how to set up a bot to respond to likes, reposts, joins and exits from your VK group
- [Webhook](https://docs.smartbotpro.io/scripts/script-events/webhook.md): This function allows you to launch the bot via API from any other service.
- [Actions](https://docs.smartbotpro.io/scripts/actions.md): Actions in Smartbot Pro are steps taken by the bot in response to user commands.
- [Send a message](https://docs.smartbotpro.io/scripts/actions/send-a-message.md): The "send message" action allows the bot to send text, emoji, buttons, and attachments to the user.
- [Buttons](https://docs.smartbotpro.io/scripts/actions/send-a-message/buttons.md): In this article, we will look at how to add interaction to your script using buttons.
- [Process message](https://docs.smartbotpro.io/scripts/actions/process-message.md)
- [Extract data](https://docs.smartbotpro.io/scripts/actions/extract-data.md)
- [Change context](https://docs.smartbotpro.io/scripts/actions/change-context.md): You will learn how to switch from one user to another, switch during communication to different chats within the same social network, from comments to private messages, and vice versa.
- [Write to statistics](https://docs.smartbotpro.io/scripts/actions/write-to-statistics.md): The action "Write to statistics" allows you to "mark" the necessary events in the bot, so that you can later view them in the "Statistics" section
- [Send Notification](https://docs.smartbotpro.io/scripts/actions/send-notification.md): The "Send notification" action allows you to notify the account manager of certain events.
- [Switching to another script](https://docs.smartbotpro.io/scripts/actions/switching-to-another-script.md): In this article, we will look at how to navigate to blocks of different scripts.
- [Working with the user](https://docs.smartbotpro.io/scripts/actions/working-with-the-user.md): How to create user lists
- [Set variable](https://docs.smartbotpro.io/scripts/actions/set-variable.md): In this article, we will look at how to change variables during the script.
- [Scheduled transitions](https://docs.smartbotpro.io/scripts/actions/scheduled-transitions.md)
- [Run SmartQuery](https://docs.smartbotpro.io/scripts/actions/run-smartquery.md): This step allows you to process data from users directly in the bot, even if you have complex mathematical calculations, as well as perform complex operations with variables.
- [Conditions](https://docs.smartbotpro.io/scripts/conditions.md)
- [Condition](https://docs.smartbotpro.io/scripts/conditions/condition.md)
- [Condition with options](https://docs.smartbotpro.io/scripts/conditions/condition-with-options.md): Consider two main types of conditions in Smartbot Pro
- [Conditions of VKontakte](https://docs.smartbotpro.io/scripts/conditions/conditions-of-vkontakte.md): Here is a description of what conditions specifically for VK can be applied in Smartbot
- [Variables](https://docs.smartbotpro.io/scripts/variables.md): In this section, we will look at what variables are in Smartbot Pro.
- [Special Variables](https://docs.smartbotpro.io/scripts/variables/special-variables.md): In this article, we will talk about built-in variables that allow you to get special parameters: username, page id, local time, etc.
- [User variables](https://docs.smartbotpro.io/scripts/variables/user-variables.md): There are 2 types of variables in Smartbot Pro: user (i.e., each user has its own value) and global (the value is the same for all bot users). In this article, we will talk about the first
- [Global variables](https://docs.smartbotpro.io/scripts/variables/global-variables.md): Here you will learn how to create a variable whose value will be the same for all users.
- [Variable %ref%](https://docs.smartbotpro.io/scripts/variables/variable-ref.md): Here we will tell you how to create referral links based on Smartbot Pro
- [Acceptance of payment](https://docs.smartbotpro.io/scripts/acceptance-of-payment.md): In this article, you will learn how to link payment cabinets\wallets to Smartbot Pro and accept payments on them
- [Telegram bot menu](https://docs.smartbotpro.io/scripts/telegram-bot-menu.md): We tell you how to make a menu in Telegram chat with commands like /start /help for end-to-end navigation - quick access to the most popular functions of your bot!
- [Integrations](https://docs.smartbotpro.io/scripts/integrations.md): In this article, we will look at how Smartbot Pro works with built-in services
- [Google-таблицы](https://docs.smartbotpro.io/scripts/integrations/google-tablicy.md): В этой статье мы рассмотрим, как Smartbot Pro работает с таблицами Google
- [http request](https://docs.smartbotpro.io/scripts/integrations/http-request.md)
- [amoCRM](https://docs.smartbotpro.io/scripts/integrations/amocrm.md): This article will show you how to connect amoCRM to your chatbot.
- [Get Course](https://docs.smartbotpro.io/scripts/integrations/get-course.md): In this article, we will tell you how to enroll people in Get Course and accept payments through Smartbot Pro
- [Yukassa for receiving payments](https://docs.smartbotpro.io/scripts/integrations/yukassa-for-receiving-payments.md): From the article, you will learn how to connect Yukassa for legal entities and accept payments from customers using buttons.
- [Reactions](https://docs.smartbotpro.io/scripts/reactions.md): In this article, you will learn how to use Smartbot Pro reactions section


---

# 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.smartbotpro.io/scripts.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.
