> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/reference/workflow-exports.md).

# Workflow exports

Build multi-step AI pipelines with named agents, shared state, and optional dashboard observability.

## Recommended entry point

Use `notifier.runWorkflow({ workflow, input })` after `connect()`. You do not need `WorkflowRunner` directly for typical apps.

## Exports

| Export              | Description                               |
| ------------------- | ----------------------------------------- |
| `defineAgent`       | Factory for named agent handlers          |
| `Agent`             | Agent class                               |
| `Workflow`          | Workflow definition with `entry` function |
| `WorkflowContext`   | Context passed to `entry` and agent `run` |
| `WorkflowRunner`    | Low-level runner (advanced)               |
| `WorkflowError`     | Validation and runtime errors             |
| `WorkflowRunResult` | Return type of `runWorkflow` (Dart)       |

## Language pages

* [**JavaScript / TypeScript**](/product-docs/reference/workflow-exports/javascript-typescript.md)
* [**Dart / Flutter**](/product-docs/reference/workflow-exports/dart-flutter.md)

## Related

* [Workflows overview](/product-docs/workflows-and-agents/overview.md)
* [WorkflowContext reference](/product-docs/workflows-and-agents/workflow-context.md)
* [Workflow observability](/product-docs/workflows-and-agents/observability.md)
