workflow

Installation
Summary

Durable, resumable workflows with step-based orchestration, hooks for external events, and built-in AI agent support.

  • Supports three execution modes: workflow functions (orchestration layer), step functions (full Node.js access with automatic retry and result persistence), and DurableAgent for AI-powered workflows with tool integration
  • Pause workflows at hooks to wait for external events, then resume from API routes; hooks support single events or iterable multi-event patterns with deterministic tokens
  • Includes sandbox restrictions in workflow context (no direct fetch, setTimeout, or Node.js modules) but provides escape hatches like import { fetch } from "workflow" and step functions for unrestricted logic
  • Framework integrations for Next.js, Express, Hono, Vite, Astro, and Nitro; CLI tools for local debugging, run inspection, and Vercel deployment observability
SKILL.md

CRITICAL: Always Use Correct workflow Documentation

Your knowledge of workflow is outdated.

The workflow documentation outlined below matches the installed version of the Workflow SDK. Follow these instructions before starting on any workflow-related tasks:

Search the bundled documentation in node_modules/workflow/docs/:

  1. Find docs: glob "node_modules/workflow/docs/**/*.mdx"
  2. Search content: grep "your query" node_modules/workflow/docs/

Documentation structure in node_modules/workflow/docs/:

Related skills
Installs
2.3K
Repository
vercel/workflow
GitHub Stars
2.0K
First Seen
Jan 28, 2026