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).
-
Create the flow
Terminal window orvanta flow new f/demo/welcome --summary "Welcome flow" -
Open the editor
In your Orvanta dashboard, open welcome on the node-based canvas. You’ll start with an empty canvas and a trigger.
-
Add a script step
Add a step that calls
f/demo/greetand map itsnameinput to the flow input:name = {{ flow_input.name }} -
Add an approval step
Add an approval step after the script so a human signs off before the flow completes. See Approval steps.
-
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>
What next?
Section titled “What next?”- Build your first app — Put a UI on top of this workflow.
- Concepts: Workflows — Structure, node types, and triggers.
- Workflows as code — Export this workflow as a code artifact.