Build durable, resumable workflows that survive restarts, deployments, and failures using TypeScript directives.
| "use workflow" | Orchestrates steps, sleeps, suspends | Deterministic: No side effects, no Node.js modules, no global fetch | | "use step" | Contains business logic, I/O, side effects | Runs on separate request: Auto-retries on failure |
Workflow DevKit uses event sourcing - state changes are stored as events and replayed to reconstruct state. Workflows must be deterministic so replays produce identical step sequences. Steps run on separate requests, so data passes by value (mutations don't affect workflow variables).
「ワークフローを使用」および「ステップを使用」ディレクティブを使用して、Vercel Workflow DevKit で耐久性のあるワークフローを構築します。長時間実行タスク、バックグラウンド ジョブ、AI エージェント、Webhook、スケジュールされたタスク、再試行、ワークフロー オーケストレーションに使用します。 Next.js、Vite、Astro、Express、Fastify、Hono、Nitro、Nuxt、SvelteKit をサポートします。 ソース: jakerains/agentskills。