﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> Fetch the complete documentation index at: https://openworkflow.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ### When to use OpenWorkflow
>
> Use OpenWorkflow in TypeScript or JavaScript apps for:
>
> - Background jobs that need retries and must resume after a crash or deploy.
> - Multi-step integrations and data pipelines that need to save progress between operations.
> - AI workflows with multiple model or tool calls that need durable checkpoints.
> - Workflows that wait for a human approval, a webhook, or a timer before continuing.
>
> OpenWorkflow runs on Node.js 22.22+ or Bun, with PostgreSQL or SQLite storing workflow state. Your app enqueues runs, and a worker executes them.
>
> ### How to use OpenWorkflow
>
> Read and follow https://openworkflow.dev/skills/setup.md to set up OpenWorkflow.
>
> Define workflows with `defineWorkflow`, wrap operations in `step.run`, and enqueue runs with `ow.runWorkflow(workflow.spec, input)`. Start a worker with `npx @openworkflow/cli worker start` to execute them. See [Workflows](https://openworkflow.dev/docs/workflows.md), [Steps](https://openworkflow.dev/docs/steps.md), and [Signals](https://openworkflow.dev/docs/signals.md) for the APIs.

# Building with LLMs

> Use OpenWorkflow with a coding assistant through the setup guide, agent skill, Markdown docs, and MCP

## Set up OpenWorkflow with an assistant

Open your project in your AI coding assistant and paste this prompt:

```text theme={null}
Read and follow https://openworkflow.dev/skills/setup.md to set up OpenWorkflow.
```

The [agent setup guide](https://openworkflow.dev/skills/setup.md) walks your assistant through inspecting
the project, installing OpenWorkflow, and running an example workflow to verify
the setup.

## Plain-text docs for LLMs

Append `.md` to any docs URL to retrieve the page as plain-text Markdown. For
example, this page is available at
[https://openworkflow.dev/docs/llms.md](https://openworkflow.dev/docs/llms.md).

OpenWorkflow also provides [/llms.txt](https://openworkflow.dev/llms.txt) at the
root of the docs site. It follows the emerging standard and maps the
documentation so agents can find each page's plain-text version.

For tools that need the entire documentation in one request, you can use
[/llms-full.txt](https://openworkflow.dev/llms-full.txt).

## Search the docs with MCP

Add this URL as an HTTP MCP server in an assistant that supports remote MCP:

```text theme={null}
https://openworkflow.dev/mcp
```

Use this server to search and read the docs. To run workflows in your project,
use the [SDK](https://openworkflow.dev/docs/workflows.md) and [CLI](https://openworkflow.dev/docs/cli.md).

## Install the OpenWorkflow skill

Run this command from your project and select your coding assistant:

```bash theme={null}
npx skills add https://openworkflow.dev
```

The [OpenWorkflow skill](https://openworkflow.dev/skill.md) includes setup
instructions and links to the SDK docs. The [skills
index](https://openworkflow.dev/.well-known/agent-skills/index.json) lets agents
discover and fetch it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.