This action is used to process commands of the form /commandname or passed through deeplink, if a parameter is passed, sets the constant {{messenger_input_param}}

No action configuration required.

As possible variants of the event, it returns the command that it received from the messenger (in the above example, there will be an event commandname).

Telegram commands

This makes it possible to implement the capabilities of Telegram, which allows you to use different commands, which is configured in BotFather and then looks like this:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ef375d2e-9fdf-4b2d-a265-100a0fc6b82f/Untitled.png

Commands in other messengers

Facebook, Viber do not support commands as such, but you can write / commadname in the input line and Kwizbot will treat it as a command.

Commands through deeplink (by link)

When transmitted via deeplink, the start command is always transmitted. Parameters passed through deeplink or in the form /commandname paramvalue will work the same in all messengers.

Read more about the practical application of this action with deeplink here User subscription to bot notifications

Example script for processing command

Create an action in the script, specify one event for each command

General view of the script for the command processing

General view of the script for the command processing

For each command, you need to create a separate event in action and the corresponding branches of the script.

For example, for the / menu command, you need the menu event

For example, for the / menu command, you need the menu event