vercel · Vercel AI SDK Docs
AI SDK Agents: Workflow Patterns
Explains various architectural patterns for designing AI agent workflows, including sequential execution, parallel processing, and complex multi-step orchestration.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
AI SDK Agents: Workflow Patterns
Explains various architectural patterns for designing AI agent workflows, including sequential execution, parallel processing, and complex multi-step orchestration.
When To Use
Use when designing the orchestration logic for AI agents to determine whether to use sequential, parallel, or complex branching execution paths.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/ai-sdk-agents-workflow-patterns-workflow-guide.md | A guide detailing various agentic workflow patterns including sequential processing, parallel processing, and routing using the AI SDK. | Questions about a guide detailing various agentic workflow patterns including sequential processing, parallel processing, and routing... |
examples/ai-sdk-agents-workflow-patterns-typescript.text | A TypeScript code example demonstrating multi-step agentic workflow patterns using the AI SDK. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating multi-step agentic workflow patterns using the AI SDK. |
examples/ai-sdk-agents-workflow-patterns-customer-query-classification-typescript.text | A TypeScript code example demonstrating a multi-step agent workflow that uses structured output to classify customer queries. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating a multi-step agent workflow that uses structured output to classify customer... |
examples/ai-sdk-agents-workflow-patterns-parallel-review-typescript.text | A TypeScript implementation demonstrating a parallel code review workflow using multiple specialized AI agents. | Exact payloads, commands, or snippets shown in A TypeScript implementation demonstrating a parallel code review workflow using multiple specialized AI agents. |
examples/ai-sdk-agents-workflow-patterns-orchestrator-implementation.text | A TypeScript code example demonstrating an orchestrator pattern using the AI SDK to plan and implement features via structured output. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating an orchestrator pattern using the AI SDK to plan and implement features via s... |
examples/ai-sdk-agents-workflow-patterns-translate-with-feedback-typescript.text | A TypeScript implementation of a translation workflow pattern that uses iterative feedback loops to refine text output. | Exact payloads, commands, or snippets shown in A TypeScript implementation of a translation workflow pattern that uses iterative feedback loops to refine text output. |
What This Skill Covers
- Combine the building blocks from the overview with these patterns to add structure and reliability to your agents:
- Main sections:
Choose Your Approach,Patterns with Examples,Sequential Processing (Chains),Routing,Parallel Processing.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai-sdk.dev/docs/agents/workflows