Workflow SDK (@workflowsdk) header
Workflow SDK (@workflowsdk) profile picture

Build durable, resilient, and observable workflows. Built by @vercel.

San Francisco, CA
Joined October 2025
Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)Photo by Workflow SDK (@workflowsdk)
Workflow SDK now supports atomic idempotency when starting a run. Idempotency uses hooks, which also route messages directly to the run. πšœπšπšŠπš›πš(πš™πš›πš˜πšŒπšŽπšœπšœπ™Ύπš›πšπšŽπš›, { πšŽπš‘πš™πšŽπš›πš’πš–πšŽπš—πšπšŠπš•_πš‘πš˜πš˜πš”: { πšπš˜πš”πšŽπš—: 'πš˜πš›πšπšŽπš›-𝟷𝟸𝟹𝟺' } }) vercel.com/changelog/atomic-…
1
13
1,615
Every engine before us got something right. A brief history of what we kept and what we didn't.
Traditional workflow engines make you describe your logic as boxes and arrows. A programming language does that better. Workflow SDK compiles the graph out of plain TypeScript. Errors retry by default, and an approval is just an awaited webhook. vercel.com/blog/the-best-wor…
1
6
1,214
πš†πš˜πš›πš”πšπš•πš˜πš π™°πšπšŽπš—πš is now available in AI SDK 7. Build a durable agent that survives restarts, deploys, and approvals that arrive hours later. Learn how to migrate from π™³πšžπš›πšŠπš‹πš•πšŽπ™°πšπšŽπš—πš to πš†πš˜πš›πš”πšπš•πš˜πš π™°πšπšŽπš—πš ⬇️ ai-sdk.dev/docs/agents/workf…
AI SDK 7 is now available. Introducing: reasoning control, agent-level tool approval, tool and runtime context, file and skill uploads, MCP Apps, durable workflows, terminal UI, sandbox support, harness integrations, telemetry, lifecycle events, and more.
1
1
1
21
3,025
Workflow DevKit is now @WorkflowSDK
1
4
28
2,157
Sending an alert to four channels sequentially means the last channel waits for the first three. If you send them in parallel without coordination, you lose track of which specific channels failed. Promise.allSettled() provides the best of both worlds.
1
1
5
1,545
Using Promise.allSettled() provides parallel execution alongside per-channel failure tracking. Each step is independent, so throwing a FatalError stops retries for that specific channel while the others continue.
1
598
Traditional: a retry queue, a backoff column, and a cron to sweep stuck jobs. Workflow: a for-loop with `sleep()`:
2
8
645
The backoff is just math in a local variable. `sleep()` pauses for real wall time and zero compute while waiting. Crash between attempts? The loop picks up exactly where it left off.
1
2
469
30 Days of Workflow DevKit β€” Day 4 β€” Payment Webhooks What if your webhook tracked an order from first charge to final refund β€” remembering every event β€” without a database? `createWebhook()` can do that in a simple loop:
2
1
5
562
The webhook is scoped to one order. `for await` suspends between events at zero compute. Each hit runs as a `"use step"`, retried independently. `ledger` is a local array. It survives across events, restarts, and deploys.
2
1
271
30 Days of Workflow DevKit β€” Day 3 β€” Easy Cancel You tweaked the system prompt and kicked off a test workflow. Three sections in, every paragraph reads like a fever dream. Stop the run, keep what's there, fix the prompt. All thanks to a simple cancel():
1
5
360
Each `"use step"` function runs to completion or not at all. `run.cancel()` exits at the next step boundary. Completed sections are preserved in your dashboard, pending ones are dropped. The cancelled run is yours to inspect.
1
1
239
30 Days of Workflow DevKit β€” Day 2 β€” Email Drip Campaign You need to send 4 emails over 7 days. So you set up a cron, a state table, a "last sent" column, retry logic... Or you write this:
1
4
1
12
1,403
Each `sleep()` is real. `sleep("4d")` pauses for four actual days. Deploy in between? It picks up exactly where it left off. Each send is a `"use step"` which retries independently.
1
1
246
30 Days of Workflow DevKit β€” Day 1 β€” Approval Gate You need a human in the loop. So you build: a webhook endpoint, a database row, a polling cron, a timeout cron, a cleanup cron... Or ship a few lines of TypeScript with WDK:
1
3
12
883
`Promise.race()` means first one wins. The hook resolves when someone approves. The sleep resolves after 24 hours. Whichever comes first, the workflow continues. Both are durable. Both survive restarts.
1
60
Adding the new Workflow DevKit skill will help your coding agent: 1. Follow recommended patterns 2. Find the best documentation 3. Inspect projects with the Workflow DevKit CLI Install it now: `npx skills add vercel/workflow`
1
2
9
721
Claude Code can write complex workflows in seconds. Debugging them shouldn't take hours. `npx workflow start` - trigger runs with test payloads `npx workflow inspect` - full visibility into every run Observable by design. Claude Code ready.
1
1
6
1,130
A workflow is: - Resumable: Pause for minutes or months - Durable: Survive deployments and crashes with replays - Observable: Built-in logs, metrics, and tracing - Idiomatic: Human-readable async/await TypeScript
1
5
2
17
2,633
btw, it's not "Workflow SDK" - it's "Workflow DevKit" (or WDK, for short)
5
2
23
4,367