# OmniWorkflow for AI agents

OmniWorkflow runs business processes drawn as BPMN diagrams: it gives tasks to people, calls services, keeps each
case until it ends, and records why each one went the way it did. It is open source (MIT), written in TypeScript for
Node.js.

This file is the machine-readable entry point. The human version is <https://omniworkflow.com/ai>.

## Start from a server

Every OmniWorkflow server describes itself at **`/llms.txt`**: its API, the services and connectors it offers, its
user groups, its own rules, and a guide to building workflows on it. Given a server's address, read that first.

```
GET https://<server>/llms.txt
```

## What you can do

| Task | Where | What it means |
|---|---|---|
| Explore | <https://demo.omniworkflow.com> | An HR application with OmniWorkflow inside it. **Read-only: do not attempt to change its data or its models.** |
| Try | <https://bpmn.omniworkflow.com> | Create, verify, test and run workflows. Shared and public: anything there is visible to others. |
| Install | The user's machine or server | Install a release, configure it, start it, and prove it runs. |
| Integrate | The user's application | Connect an existing application through the API. |

## Building a workflow: the loop

Do not assume a generated BPMN definition is correct because it parses. The server checks it, and the tests say
whether it does what was asked. Report what the server answered.

1. Read the server's `/llms.txt` and the guide it points to.
2. Write the model: the steps, who does each, the forms, the decisions.
3. **Check** the model with the server. The answer names what is wrong or missing.
4. Fix what it reported, and check again.
5. **Save** the model.
6. Write the model's **tests** as scenarios, and save them.
7. **Run** the tests in the engine.
8. When one fails, read the case's **Rationale**: each step, and what decided it.
9. Fix the model or the test, and repeat from step 3 until the tests pass, or report what is blocking you.
10. Give the user the model's link and the test results **as the server reported them**.

## Access

On a server with sign-in, a person gets a link for their agent (`/ai/key`): it acts as that person, at a level they
choose (work, design, administer), for minutes, and can be revoked. An agent never has more access than the person
who issued it.

Use the API, not a browser. The operations are described by the server's own OpenAPI document:

```
GET https://<server>/api/v3/openapi.json
```

## Installing

Node.js 20 or later.

```sh
npx bpmn-server init my-app --memory    # nothing is kept when it stops; omit --memory for MongoDB or SQLite
cd my-app
npm start                                # http://localhost:3000
```

The first page asks for an administrator, with the setup token the server prints at startup.

Follow the installation page for the current release rather than remembering earlier commands:
<https://bpmnserver.github.io/bpmn-server/setup/>

Installing on a public server also needs HTTPS, sign-in, a database that keeps its data, and backups. Ask the user
before privileged system changes. Never put an unauthenticated server on a public address.

## Documentation

| | |
|---|---|
| All documentation | <https://bpmnserver.github.io/bpmn-server> |
| Building workflows with an agent | <https://bpmnserver.github.io/bpmn-server/ai/building-workflows/> |
| Chat assistants and MCP | <https://bpmnserver.github.io/bpmn-server/ai/chat-assistants/> |
| Installation | <https://bpmnserver.github.io/bpmn-server/setup/> |
| Integrating an application | <https://bpmnserver.github.io/bpmn-server/integrate/> |
| Testing models | <https://bpmnserver.github.io/bpmn-server/testing/> |
| Source code | <https://github.com/bpmnServer/bpmn-server> |

## Rules

- Report real results from the server, never an assumption that generated output is correct.
- Treat `demo.omniworkflow.com` as read-only.
- Public servers limit what a case may do, and clear it from time to time. Do not keep work there.
- Do not invent commands or API routes: read `/llms.txt`, the OpenAPI document, or the documentation above.
