workflow

Create durable, resumable asynchronous JavaScript workflows with automatic retries.

2.3k|324|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/vercel/workflow --skill workflow-vercel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow
Source: https://github.com/vercel/workflow/tree/main/skills/workflow
Command: npx skills add https://github.com/vercel/workflow --skill workflow-vercel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the creation of durable and resumable asynchronous JavaScript applications, ensuring that complex operations can survive restarts, pause for external events, and automatically retry on failure.

Core Features & Use Cases

  • Durability: Workflows maintain their state across restarts and failures.
  • Resumability: Applications can pause execution and resume later, triggered by external events.
  • Automatic Retries: Steps within a workflow can be configured to automatically retry on transient errors.
  • AI Agent Integration: Build AI agents that maintain state and can be integrated into durable workflows.
  • Use Case: Building a multi-step data processing pipeline that needs to ingest data, perform AI analysis, and then store results, all while being able to withstand network interruptions or server restarts.

Quick Start

Use the workflow skill to create a durable workflow that fetches user data and processes it using an AI agent.

Frequently Asked Questions about workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create durable async JavaScript workflows that survive server restarts?

Durable async JavaScript workflows maintain their execution state across restarts and failures by using the Workflow DevKit to suspend, resume, and automatically retry steps. This ensures complex operations withstand network interruptions without losing progress.

How do I pause JavaScript execution and resume it later based on external events?

You can pause JavaScript execution and resume it later by defining workflows that suspend automatically and using hooks to handle external events. The workflow resumes execution precisely where it paused once the triggering event is received.

What is the best way to build AI agents that maintain state in JavaScript?

The best way to build stateful AI agents in JavaScript is integrating them into durable workflows. This approach allows agents to maintain state across operations, pause for external inputs, and automatically retry failed steps.

How do I configure automatic retries for transient errors in an async application?

To configure automatic retries for transient errors in an async application, define individual steps within your durable workflow. Each step can be configured to automatically retry upon encountering transient network or processing failures.

Can I use full Node.js access inside step functions for async orchestration?

Yes, you can use full Node.js access inside step functions for async orchestration. The Workflow DevKit executes step functions with complete Node.js capabilities while supporting sandboxed workflow execution for added security.

Do I need external databases to maintain state for resumable JavaScript functions?

Resumable JavaScript functions maintain state internally through the Workflow DevKit's durable execution environment. This built-in state management allows applications to pause and resume without relying on external database configuration.