cd /news/ai-agents/workflow-sdk-now-writes-over-websock… · home › topics › ai-agents › article
[ARTICLE · art-166528] src=vercel.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Workflow SDK now writes over WebSockets on Vercel

The Workflow SDK now sends event writes and stream writes to Vercel Workflows over a WebSocket by default, replacing one HTTP request per write, with no code change needed beyond upgrading to workflow@5.2.0 or later. In a benchmark replaying an AI agent's token stream, v5.2.0 delivered the full response 4.2× faster than v4.8.12, with no chunk delayed over a second. New runs use the WebSocket after deployment while in-flight runs finish on the deployment they started on, and users on 4.x must follow the upgrade guide because v5 is a major release.

by read1 min views1 publishedNov 9, 2026

The Workflow SDK now sends event writes and stream writes to Vercel Workflows over a WebSocket by default, replacing one HTTP request per write, or per write group for streams. No code change is needed beyond upgrading to workflow@5.2.0 or later.

Once you deploy the upgrade, new runs use it. In-flight runs finish on the deployment they started on.

Existing streaming code works as is. A step that writes a burst of chunks, like AI tokens, sends them over the WebSocket once it opens:

In a benchmark replaying an AI agent's token stream, v5.2.0, which writes streams over a WebSocket by default, delivered the full response 4.2× faster than v4.8.12, with no chunk delayed over a second.

Every step start and completion is an event write, now sent over the WebSocket, so workflows with many steps make fewer HTTP requests. The added efficiency also improves performance and reduces costs. The queue handler opens the connection for every delivery.

Read the Vercel World documentation to get started. If you're on 4.x, start with the upgrade guide, since v5 is a major release.

── more in #ai-agents 4 stories · sorted by recency
── more on @workflow sdk 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/workflow-sdk-now-wri…] indexed:0 read:1min 2026-11-09 · —