workflows.do

Business Workflows That Optimize Themselves

Declarative TypeScript workflows with automatic execution, intelligent retry logic, and AI-powered optimization. Build complex multi-step processes with durable execution and automatic state persistence.

Read the docs
index.tsworkflows.do
import { Workflows } from 'workflows.do' // Declarative workflows with automatic retriesconst workflow = Workflows.define({  steps: [validateOrder, chargePayment, checkInventory, ship],  retries: { max: 3, backoff: 'exponential' },  durable: true}) on.Order.created($ => workflow.execute({ order: $ })) // AI optimizes workflows autonomouslyon.Workflow.completed($ => $.AI.optimize.workflow($))

One of 48 primitives

workflows.do sits in Workflows: triggers, steps and functions. Every .do shares one grammar, Business-as-Code, and one SDK.

Business

Goals, plans and the work itself

Workflows

Triggers, steps and functions

Data

Records, vocabulary and search

Insight

Measure, test and trace

Build

Ship from code, CLI or MCP

Frequently asked questions

Build your 1-person unicorn

Write the business. Agents run it around the clock.

Read the docs