Switch
Written by
Updated at August 18, 2026
Note
Currently, there are two UIs that support Workflows: Yandex Cloud
- Workflows created in the Yandex Cloud UI are automatically available in the AI Studio UI.
- Workflows created in the AI Studio UI are not available in the Yandex Cloud UI.
Starting September 3, 2026, Workflows will no longer be supported in the Yandex Cloud UI. To create and manage workflows, use the AI Studio UI.
Selecting the further execution path. Only one path can be selected: the one for which the condition first returns true. If all conditions have returned false, and no value is set in the default field, the execution will be terminated with an error.
| Field name | Type | Required | Default value | Templating supported | Description |
|---|---|---|---|---|---|
input |
string |
None | Overall state of the workflow | Yes | A jq template to filter the workflow state fed into the step. |
choices |
Choice[] | Yes | None | None | List of possible further execution paths. |
default |
string |
None | None | None | ID of the step to execute if none of the conditions specified in choices return true. |
Choice object
| Field name | Type | Required | Description |
|---|---|---|---|
condition |
string |
Yes | Condition in the form of a jq template that returns either the true or false string. |
next |
string |
Yes | ID of the step to execute if the condition returns true. |