What are synonyms and why are they needed?

Views:920

Synonyms help make communication with a bot more like communication with a human.

In fact, these are all variants of words that will trigger the desired command.
You can set different phrases by which the bot will be launched, for example: "Hello!", "Hi!", "Start" and so on. In all cases, a variant of the synonym phrase = / start.

But the most interesting thing is that in addition to phrase variants, you can also set a command launch condition for each variant.

For example, the / start command will be triggered by a complete or partial match if the message starts with a synonym, ends with it, or contains a certain number of characters.

You can clarify the phrase using operators. Operator "!" captures the exact shape of the word. Operator "-" - will exclude the triggering of the synonym if the message contains the specified phrase. For example, if you "minus" the word "bot", the synonym will not work for the message "Hello, bot!" Synonyms can be configured with a% chance of triggering, as well as for a user category - then it will trigger only for the selected category.

Read more about synonyms here.

Was this page helpful?