页面简介
Build and deploy long running workflows on Vercel
正文摘录
"use workflow"for infinite compute durabilityWith zero configuration, atomic versioning and out of the box observability, Vercel makes Workflows easyGet started$npm install workflowPowered by Workflow SDKWorkflows bring durability, reliability, and observability to async JavaScript. Build apps and AI Agents that can suspend, resume, and maintain state with ease.Get startedWith Workflow SDKWithout Workflow SDKexport async function welcome(userId: string) { "use workflow"; const user = await getUser(userId); const { subject, body } = await generateEmail({ name: user.name, plan: user.plan }); const { status } = await sendEmail({ to: user.email, subject, body, }); return { status, subject, body };}Queueing the getUser step...ObservabilityInspect every run end‑to‑endWhen deploying a workflow on Vercel, deep workflow observability is built into the Vercel dashboard with no configuration or storageWorkflowsDX PlatformDeploy and scaleYou don't have to configure queues, servers, or storage to get started with Workflow SDK on Vercel. Everything works automatically.Zero infrastructure management. Fluid compute, serverless functions, queues and persistence work out of the box.VGxkwTd46PreviewBuildingLoading...30sGFsdgf33wProductionReady56sREsdf2dsxPreviewReady49sLDDgfrT21ProductionReady59sfSDFDJx12PreviewReady44sggFkdwDnvPreviewReady34slgurbWdxbPreviewReady59sDeploy confidently. Running workflows continue on their original version while new executions use the latest code.workflowTrigger()58s4mwaiting155msNo timeout limits. Write long-running workflows without worrying about execution time limits.5sidle5sidle5sidlePay for what you use. Only pay for actual execution time, not idle resources.Get startedSee Workflow SDK in action with one of our templates.All examplesStory Generator Slack BotA Slack bot that generates children's stories from collaborative input.Flight Booking AppUse Workflows on Vercel to make AI agents reliable and production-ready.Natural Language Image SearchA free, open-source template for building natural language image search.Build workflowsTalk to an expertGet an enterprise trial