WhoBuilt

Building durable Agents with Workflow DevKit & AI SDK

Jan 6, 2026· 1 h 10 min· 9.3K views·Watch on YouTube

Speaker

Peter Wielander of Vercel demonstrates how to make an AI SDK coding agent durable with Workflow DevKit during an AI Engineer workshop.

Why use a workflow

Wielander says a workflow layer helps move agents from local development to reliable production. It separates orchestration from steps such as model and tool calls, which can run independently, persist their results, and retry after failure.

Convert the coding agent

Using the Vercel Examples coding platform, Wielander moves the agent into a workflow function and marks it with `use workflow`. He marks model and tool calls as steps, then starts the workflow from the API route. Completed step outputs are cached, and failed steps can be retried.

Inspect runs and resume streams

The local Workflow UI shows each step with its inputs, outputs, and events; Wielander also demonstrates inspecting a production run. Because the stream belongs to the workflow rather than the API handler, the client can reconnect using a run ID and resume from a given chunk.

Wait for timers and human input

A workflow can sleep for days without keeping a serverless instance running, then resume with its recorded state. Wielander adds a sleep tool and demonstrates a webhook that pauses for human approval, then continues when someone opens its URL.

Deployment, control, and operations

Wielander describes workflows as independently running on serverless infrastructure, with deployment versions isolated from one another. He discusses planned concurrency limits and run upgrades, and says developers remain responsible for making side-effecting steps safe to retry. He also describes using API data or UI components to send observability information to tools such as Datadog.

Takeaways

  • Put orchestration in a deterministic workflow function and side-effecting work in steps.
  • Cache step results so a resumed workflow can continue without repeating completed work.
  • Keep stream identity with the workflow so clients can reconnect after losing their API connection.
  • Use sleep and webhook waits for long delays or human approval without holding a serverless instance open.
  • Design steps to handle retries safely; the orchestration layer does not make external side effects transactional.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • works at
    Software Engineer
    “Peter Wielander, Vercel”
    YouTube
    Verified2 sources· Talk, Web· archived
  • built
    “That's why we developed Workflow DevKit”
    YouTube
    Unverified1 source· Talk
  • feature
    workflow: Durable workflows with resumability, retries, and observability
    “we'll have first-class observability built in, as well as durability and reliability”
    YouTube
    Unverified1 source· Talk
  • uses
    “It's open source, runs with any TypeScript front ends or backends”
    YouTube
    Unverified1 source· Talk
  • feature
    workflow: Open source, works with TypeScript front ends and backends, and can run on any cloud
    “It's open source, runs with any TypeScript front ends or backends, and can run on any cloud.”
    YouTube
    Unverified1 source· Talk
  • feature
    workflow: Sleep and webhook calls can suspend a workflow and resume it later
    “A workflow could wait for a week. This is built into the Workflow Development Kit”
    YouTube
    Unverified1 source· Talk
  • integrates with
    workflow integrates with Datadog
    “you can export this to Datadog if you want”
    YouTube
    Unverified1 source· Talk
  • feature
    workflow: More than one million workflows run internally in a day
    “Internally, I think we’ve run more than a million workflows in a day.”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks