Code Editor
The Code Editor lets advanced users edit the capability DSL directly in YAML. The DSL is the source of truth and stays in sync with the visual journey.
When To Use It
- You need advanced branching or labels
- You want version control for DSL
- You prefer editing large flows in text
Features
- YAML syntax highlighting
- Autocomplete for DSL keys
- Validation with inline errors and warnings
- Templates and step snippets
Visual And Code Sync
Switching between Visual and Code keeps the journey aligned. The editor warns if it detects deprecated keys such as steps (use journey).
DSL Shape (Quick Example)
name: Check Order Status
trigger:
goal: check order status
examples:
- where is my order
journey:
- collect:
fields:
- order_id
- action:
call: orders.get-status
as: order
outcomes:
success: continue
not-found:
- done: "Order not found"
- done: "Order {{variables.order.id}} is {{variables.order.status}}"
For semantics and advanced patterns, see DSL Semantics.