New
- Environment variables.
- Decreased timeout for request execution via
$http.query
.
Docs
- New articles on ready-to-use action tags.
- An instruction on how to create action tags.
Environment variables
In release 1.11.9, we added a feature that allows you to specify secrets for sensitive data in a script. Now you can also add environment variables.
A variable, like a secret, is a key-value pair. However, variables and secrets differ in the following aspects:
- Encryption: secrets are encrypted by the platform, variables are not encrypted.
- Visibility: you can see variables’ values in the interface and copy them. When downloading the project, variables can also be exported.
- Access rights: only administrators can manage secrets, while you can assign different access rights to variables for users.
You can use variables in the bot script by calling the $env.get
method.
Timeout for request execution via $http.query
We have decreased the timeout for request execution via $http.query
to 25 seconds. The previous value was one minute.
Documentation updates
In the documentation, you could already find articles related to action tags: an introductory article and a description of the TelegramPayment
action tag. In release 1.11.10, we have added new articles in the Action tags section.
Descriptions of action tags
We have added descriptions of the following action tags:
Tag | Description |
---|---|
Email | Sends a message to the specified email address. |
GoogleSheets | Integrates the script with Google Sheets. This allows the bot to read data from spreadsheets or write data into them. |
HttpRequest | Sends an HTTP request. This allows the bot to receive data from an external resource and save it into variables. |
InputFile | Makes the bot ask the user to upload a file and save a link to it into a variable. |
Sms | Sends an SMS message to the specified phone number. Only Russian phone numbers are supported. |
TransferCallToOperator | Switches the call to an agent (for phone channel bots). |
TransferToOperator | Switches the dialog to an agent in a customer engagement platform (for text bots). |
Instruction on how to create action tags
Ready-to-use action tags cover some of the actions frequently performed in bot scripts. If you need other action tags, you can create your own. To do that, use our new instruction.