Types of transitions
AI Transitions
AI Transitions
AI transitions are the most flexible type of transition, allowing AI nodes to intelligently decide which path to take based on the current context and conditions.When to use:
AI Transition
A transition that can be picked by AI nodes based on intelligent decision-making
- When you need dynamic routing based on content or context
- For workflows that require intelligent decision-making
- When the next step depends on AI analysis of the current state
Selector Transitions
Selector Transitions
Selector transitions are deterministic, allowing for a immediate transition if an event happens.When to use:
Selector Transition
A transition that occurs when the selector is found on the page
- When you need to wait for specific elements to appear
- For conditional navigation based on page content
Outcome Success Transitions
Outcome Success Transitions
Outcome Success transitions are used by deterministic nodes like Playwright or API nodes that have clear success states.When to use:
Outcome Success
Used by nodes like Playwright or API which are deterministic and have clear success outcomes
- With API nodes to handle successful responses
- With Playwright nodes for successful web interactions
- For any deterministic node with clear success criteria
Best Practices
Choosing the Right Transition
Choosing the Right Transition
- Use AI transitions for dynamic, content-based routing
- Use Selector transitions for immediate, deterministic, reactions
- Use Outcome Success for deterministic operations with clear results
Failure Transitions
Failure Transitions
- Make sure to connect your AI nodes to the
End with Failure
node to ensure that your program detects failure conditions.