Skip to main content
A complete order processing workflow combining structured output, conditional logic, and human-in-the-loop approval.

Define structured output schema

Create the order agent

Build the workflow

Flow summary

Amount $1000 or less:
  1. Agent charges customer via Stripe
  2. Agent immediately sends confirmation email
  3. Workflow completes
Amount over $1000:
  1. Agent charges customer via Stripe
  2. Agent returns action_requested: "fraud_review"
  3. Workflow suspends for human review
  4. If approved: Agent sends confirmation email
  5. If rejected: Order cancelled

Run it

Open http://localhost:5173 to view your agents and workflows, run them from the UI, and see execution traces. Python example on GitHub | TypeScript example on GitHub