AI Transition
Chosen by AI based on the agent’s analysis of the page and task context
Selector Transition
Jumps to the next node the moment a specific element appears
API / YAML Reference
When configuring transitions via the API, SDK, or MCP, use the following type identifiers:Types of Transitions
AI Transitions
AI Transitions are the most flexible and expressive transition type. They allow Agent nodes to choose the next step based on reasoning, context, and analysis of the current browser state. When to use:- When the next step depends on page content or semantic understanding
- When multiple paths are possible and the AI must choose intelligently
- For workflows requiring reasoning, interpretation, or decisions based on extracted information
Selector Transitions
Selector Transitions are deterministic. They activate immediately when a specific selector becomes visible or present on the page. When to use:- When waiting for a specific UI element to appear
- As a guardrail for navigation changes or modal detection
- For flows that require deterministic, event-driven branching
Matching any of several selectors
selectors is a list, and it is evaluated as an OR: the transition fires as soon as any selector in the list matches the live page.
Use this when the same signal can render in more than one way — a confirmation banner that differs between locales, or a button whose markup changes between portal versions.
Passing Data Across a Transition
Transitions don’t just decide where the workflow goes — they decide what travels with it. Each outgoing transition can carry its own output schema, so a node hands off exactly the data the next node needs, in a shape you define. Output schemas are defined per outgoing transition, not on the node itself. A node that can branch three ways can hand off three different shapes.How it works
- You attach a JSON Schema to a transition.
- When the agent decides to take that edge, it calls a handoff tool and fills in a payload matching the schema. An AI transition’s tool is named
to_<target>; a selector transition’s isto_<target>_via_selector. - The receiving node reads that payload in its instructions via the
{{.output}}variable.
Example
An agent node that looks up a patient hands the identifiers it found to the next node:output variable, holding the JSON the previous node produced. Reference it in that node’s instructions with {{.output}}:
Requiring Confirmation
Any transition can be gated on a human’s approval by settingrequire_confirmation:
Best Practices
Choosing the Right Transition
Use the appropriate transition type for each decision point:- AI Transitions: For dynamic routing based on page content, extracted information, or reasoning.
- Selector Transitions: For immediate, deterministic reactions to UI events. Use cautiously, only when element type, structure, and behavior are known and stable.

