Build reliable, long-running processes with automatic retries, state persistence, and observability.
| Workflows | Orchestrate durable operations | "use workflow" directive | | Steps | Atomic, retriable units | "use step" directive | | Webhooks | Human-in-the-loop, callbacks | createWebhook() | | Actors | Event-driven state machines | defineHook() + for await | | Streaming | Real-time frontend updates | getWritable() / run.readable |
| AI Agents | Durable LLM workflows | DurableAgent + globalThis.fetch = fetch | | AI Gateway | Multi-provider model switching | "provider/model" strings, @ai-sdk/gateway |
Crea flussi di lavoro TypeScript durevoli e ripristinabili con Vercel Workflow DevKit. Da utilizzare durante la creazione di processi a lunga esecuzione, agenti AI, processi in background, pipeline multifase, webhook o sistemi basati su eventi. Si attiva su "flusso di lavoro", "durevole", "ripristinabile", "usa flusso di lavoro", "usa fase". Fonte: johnlindquist/claude.