Learn more about how Workflows is priced.
Cloudflare Workflows
Build durable multi-step applications on Cloudflare Workers with Workflows.
With Workflows, you can build applications that chain together multiple steps, automatically retry failed tasks, and persist state for minutes, hours, or even weeks - with no infrastructure to manage.
Workflows give you:
- Reliable multi-step operations without worrying about timeouts
- Automatic retries and error handling
- Built-in observability for long running operations
- Simple and expressive code for complex processes
export class CheckoutWorkflow extends WorkflowEntrypoint { async run (event, step) { const processorResponse = await step.do( 'submit payment', async () => { let resp = await submitToPaymentProcessor(event.params.payment) ; return await resp.json<any>(); }) ;
const textResponse = await step.do( 'send confirmation text', sendConfirmation); await step.sleep('wait for feedback', '2 days'); await step.do('send feedback email', sendFeedbackEmail); await step.sleep('delay before marketing', '30 days'); await step.do( 'send marketing follow up', sendFollowUp); }}
{ "name": "my-worker-with-workflow", "main": "src/index.js", "compatibility_date": "2025-02-27", "workflows": [ { "name": "checkout-workflow", "binding": "CHECKOUT", "class_name": "CheckoutWorkflow" } ]}
Start building with Workflows
Deploy your first Workflow
Define your first Workflow, understand how to compose multi-steps, and deploy to production.
Rules of Workflows
Understand best practices when writing and building applications using Workflows.
Trigger Workflows
Learn how to trigger Workflows from your Workers applications, via the REST API, and the command-line.
Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.
Deploy dynamic front-end applications in record time.
Learn more about Workflow limits, and how to work within them.
Learn more about the storage and database options you can build on with Workers.
Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers.
Follow @CloudflareDev on Twitter to learn about product announcements, and what is new in Cloudflare Developer Platform.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark