
What workflows are
A workflow is built from nodes connected by edges, plus a trigger that defines when it runs.- Nodes are the steps of the workflow. Each node has a type:
trigger— the entry point that starts the workflowfilter— evaluates conditions and branches the flowaction— performs an operationswitch— routes execution based on a value
- Edges connect nodes and define execution order. An edge type of
defaultis used for trigger and action nodes. For filter nodes,successfollows when the condition is met andnegativefollows when it is not. - A trigger defines the event that activates the workflow.
draft, active, inactive, archived, and template. New workflows are created in draft by default and must be set to active to run. Updating a workflow’s structure (nodes, edges, and trigger together) creates a new version.
Actions
Action nodes perform operations on the order or delivery, or send notifications. Supported actions include:- Apply a dispatch strategy or an optimization strategy
- Modify order price or tip
- Add a tag or extract a metadata field
- Flag a delivery, auto-reassign, cancel a delivery, cancel an order, or remove an order from a route
- Add requirements to an order
- Send a notification by email, SMS, Slack, or Teams channel message
- Summarize, run an agent call or browser automation, or emit a custom event
The exact set of actions, their configuration schemas, and the available filter fields and operators are self-describing. Call
GET /v1/workflows/schema to retrieve the current triggers, action config schemas, filter fields and operators, and supported node, edge, and status types.Triggers & conditions
A workflow’s trigger specifies what activates it. Trigger types includeevent, manual, webhook, and cron. Event triggers listen for a named event in Nash — for example order.created or order.creating. (Currently, the REST API for creating workflows supports the event trigger type; other trigger types exist in the platform but are not all exposed through that endpoint.)
Conditions are expressed with filter nodes. Each filter holds one or more conditions made up of a field, an operator, and a value. When the filter evaluates true, execution follows the success edge; otherwise it follows the negative edge — letting you branch a workflow based on order attributes. The available fields and operators are returned by GET /v1/workflows/schema.
You can also start an active workflow on demand with the Trigger Workflow endpoint (POST /v1/workflows/{id}/trigger), passing entity references (such as a job ID) and optional input data, in synchronous or asynchronous mode.
How workflows relate to dispatch strategies
Workflows and dispatch strategies are complementary:- A dispatch strategy answers “given this job, which provider should fulfill it?” — it defines the eligible providers, selection rule, and failover behavior.
- A workflow answers “given this event and these conditions, what should happen?” — including which dispatch strategy to apply.
dispatch_strategy action nodes that apply the right strategy to each branch. This is the same role served by Automations, which map account-level business rules to dispatch strategies; workflows generalize that idea to a broader set of triggers, conditions, and actions.
Next steps
Dispatch strategies
How Nash selects a provider for each delivery.
Automations
Map business rules to dispatch strategies.
Notifications
Configure delivery notifications to customers and systems.
How Nash works
See where workflows fit in the delivery lifecycle.