Skip to content

Your first workflow

A workflow (a flow in the CLI) connects steps into a directed graph. In this tutorial you’ll build a small flow around the script from Your first script and add an approval step.

Prerequisites: A deployed f/demo/greet script (see Your first script).

  1. Create the flow

    Terminal window
    orvanta flow new f/demo/welcome --summary "Welcome flow"
  2. Open the editor

    In your Orvanta dashboard, open welcome on the node-based canvas. You’ll start with an empty canvas and a trigger.

  3. Add a script step

    Add a step that calls f/demo/greet and map its name input to the flow input:

    name = {{ flow_input.name }}
  4. Add an approval step

    Add an approval step after the script so a human signs off before the flow completes. See Approval steps.

  5. Run it

    Terminal window
    orvanta flow run f/demo/welcome --data '{"name": "Ada"}'

    The run pauses at the approval step; approve it from the dashboard. When it completes, inspect the job:

    Terminal window
    orvanta job logs <id>