Action set_language
System ID:
action_set_language
Description
Sets the user's dialog language. The language code is taken from the lang_code constant and validated against the bot languages enabled for the dialog. Alias for the same logic: action_language__set.
Events (scenario branches)
| Event | When it occurs |
|---|---|
| success | Language was set and validated |
| error | No lang_code in constants, or the code is not among the bot's available languages |
Parameters
No parameters in the node JSON ({}).
Before execution, user constants must include:
| Constant | Type | Required | Description |
|---|---|---|---|
lang_code | string | yes | Language code (e.g. uk, en) |
Configuration example
Node config:
{}
User constants (example):
{
"lang_code": "uk"
}