Durable Workflows (WDK)





Pattern
Evaluator Workflow Pattern
Demonstrates an evaluator-optimizer workflow pattern using Workflow DevKit. Features iterative improvement through AI evaluation and optimization loops.
IntermediateNov 2025View the full pattern on desktop


Problems solved
- Run an evaluator-optimizer loop inside Workflow DevKit
- Score outputs with structured evaluation schemas
- Iterate translation or content quality until thresholds pass
- Persist workflow progress with Workflow DevKit durable steps
Use cases
- Translation quality loops
- Iterative content improvement workflows
- Workflow DevKit evaluator-optimizer demos
- Multi-step AI QA processes
AI SDK APIs
generateObjectgenerateText
Tags
aiworkflowevaluatoroptimizationai-sdkworkflow-devkittranslationiterative-improvement
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- OpenAI API key
- Workflow DevKit setup
Environment variables
OPENAI_API_KEYGet key
External services
openai
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktopRelated patterns


Parallel Review Workflow Pattern
Demonstrates a parallel review workflow pattern using Workflow DevKit. Features concurrent code reviews (security, performance, maintainability) with result aggregation.
aiworkflow+8
View pattern β


Routing Workflow Pattern
Demonstrates a routing workflow pattern using Workflow DevKit. Features query classification and conditional routing to specialized handlers based on type and complexity.
aiworkflow+7
View pattern β



