Skip to main content
Fan out work to multiple agents, then combine the results. Restate runs the agents in parallel with automatic retries and recovery. If one agent fails, only that agent is retried, the successful results are preserved.

Example: parallel claim analysis

Three specialist agents analyze a claim concurrently. A decision agent combines their results.
workflow-parallel.ts
Install Restate and launch it:
Get the example:
Export your OpenAI API key and run the agent:
Register the agents with Restate:
Start a request for a claim that needs to be analyzed by multiple agents in parallel:
In the UI, you can see that the handler called the sub-agents in parallel. Once all sub-agents return, the main agent makes a decision.
Parallel agent execution trace