Diska
Flow Builder

Conditions and paths

Split the conversation into paths with an LLM prompt or deterministic rules.

A condition splits the conversation into paths. Paths are evaluated in order and the conversation follows the first one that matches; if none matches, it follows the Caso contrário (Otherwise) path.

Where conditions appear

  • After every Conversation — the Flow Builder automatically adds a Condição (Condition) with a single Continuar (Continue) path that acts as the otherwise path. Add paths to react to what the caller said (e.g. "wants to speak to a person").
  • In the Dividir o caminho node (Split the path) — insert it after a Message, a Jump to, a Trigger subflow or an action's exit, to decide based on variables or context.

See Split the path.

Configure a path

Click a path of the condition to open the Condição panel:

  1. Nome (Name) — a short name shown on the canvas.
  2. Tipo de condição (Condition type) — Prompt LLM or Regra determinística (Deterministic rule).
  3. The condition itself (see below).
  4. The destination — connect the path's + to a next step.

In the Dividir o caminho node panel, Adicionar caminho (Add path) creates more paths and Adicionar caso contrário (Add otherwise) creates the default path (the button changes to Alternativa activa, Alternative active, once it exists).

LLM prompt

Under Seguir este caminho se (Follow this path if), describe in plain language when to take the path. The model decides from the conversation. You can insert variables with { Variáveis.

The caller asked to speak to a person or said the matter is urgent.

Deterministic rule

Compares variables with values. Under Seguir este caminho se Qualquer | Todas das seguintes regras corresponderem (Follow this path if any | all of the following rules match), add one or more Regras (Rules), each with a Variável (Variable), Operador (Operator) and Valor de comparação (Comparison value):

OperatorNeeds a value
É igual a (equals)Yes
É diferente de (does not equal)Yes
Contém (contains)Yes
Maior que (greater than)Yes
Menor que (less than)Yes
Está vazio (is empty)No
Não está vazio (is not empty)No
É verdadeiro (is true)No
É falso (is false)No

With Qualquer (any), one rule being true is enough; with Todas (all), every rule must be true.

Use deterministic rules for exact logic (a menu option, a value, a collected yes/no) and the LLM prompt for open-ended intents.

Validation

ProblemSeverity
A condition without a Caso contrário pathError
More than one Caso contrário pathError
An LLM prompt path without a descriptionError
A rule without a variable or operatorError
A path with no connected destinationWarning
A path that repeats another path's condition (it will never be chosen)Warning
A rule using a variable that is never collected or setWarning

See Validation and publishing.

Copyright © 2026