Workflows

Build durable workflows & multi-step applications

Workflows is an execution engine built on Cloudflare Workers — to build applications that can automatically retry, persist state and run for minutes, hours, days, or weeks. No need to worry about scaling, managing infrastructure, or handling durability: Workflows takes care of it for you.

Step-based

Any logic wrapped in a step can be automatically retried and memoized for durability, without extra boilerplate or checkpoints.

State included

Every instance persists to its own local state: no need to set up or manage a database or control plane.

Human-in-the-loop

Wait on external events: webhooks, approvals, queue messages — and use them to determine the next steps in your Workflow.

How do Workflows work?

Background Pattern

State included

Every Workflow instance has its own built-in local database. State is automatically persisted and replayed: no need to run (or scale) complex database infrastructure.

Background Pattern

Pay only for actual compute time

You are only billed while code executes. Waiting for third-party APIs or approvals costs $0, so bills are dramatically lower than duration-based platforms or self-hosted alternatives.

Background Pattern

Just write code

Write code, test it, and use your favorite packages and API libraries — no custom DSL needed.

Background Pattern

Human-in-the-loop

Build Workflows that can wait for events — approvals from a human, webhooks from a payment processor, or messages from a queue — with just a single line of code.