
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.
Running a workflow by hand
Triggers cover the routine cases. Sometimes you need to run one yourself — to apply a workflow to orders that predate it, or to check a change before you turn it on. Start a workflow on demand with the Trigger Workflow endpoint (POST /v1/workflows/{id}/trigger), passing entity references (such as the ID of a job, i.e. a delivery) and optional input data, in synchronous or asynchronous mode.
A manual run works on a workflow in either active or inactive status. That’s the useful part of inactive: a workflow you’ve switched off no longer fires on its own, but you can still run it deliberately. Workflows in draft, archived, or template status are rejected.
In the Portal, select the orders you want on the Orders page and choose Run Workflow from the action bar. Pick the workflow, add trigger input if it needs any, and Nash starts one run per selected order — each independent, each with its own result you can open. Selecting orders row by row is what’s supported here; a workflow run needs a concrete order to reference, so “select all results” across pages isn’t.
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.