confirm Step
The confirm step asks the user to verify information before continuing. Use it as a decision gate before sensitive actions.
Syntax
Short Form
- confirm: [order_id, shipping_address]
Full Form
- confirm:
fields: [order_id, shipping_address]
message: "Please confirm these details"
on_change:
- goto: update_details
name: "Confirm Order"
Properties
| Property | Type | Required | Description |
|---|---|---|---|
fields | string[] | Yes | Variables to confirm |
message | string | No | Custom prompt |
on_change | target | No | What happens if the user wants changes |
name | string | No | Human readable step name |
Example
- confirm:
fields: [order_id, refund_amount]
message: "Confirm refund for order {{variables.order_id}} of ${{variables.refund_amount}}"