Common task agent step patterns
For high-stakes automation, relying on a single AI response can be risky. You can link multiple task agent steps to create self-correcting agentic patterns. For example, one step can draft a solution and another can review it for errors.
Evaluator-optimizer pattern
An evaluator-optimizer pattern uses two task agent steps in a feedback loop: one generates output and the other evaluates it. If the evaluation fails, the workflow routes back to the generator with the errors as additional context.
For the step-by-step procedure, see the Related links section.
Other multi-agent step patterns
You can combine task agent steps with other step types to create additional patterns:
- Analysis and action: Use a task agent step to analyze logs or alerts, then route the analysis to an Ansible Automation Platform job template step that runs the recommended remediation.
- Summarization chain: Connect multiple task agent steps in sequence, where each agent summarizes or transforms the output of the previous one for different audiences or formats.
- Classification and routing: Use a task agent step to classify incoming data (for example, categorizing support tickets by severity), then use a conditional step to route the workflow along different paths based on the classification.
Build an evaluator-optimizer pattern
An evaluator-optimizer pattern uses two task agent steps in a feedback loop: one generates output and the other evaluates it. If the evaluation fails, the workflow routes back to the generator with the errors as additional context.
Before you begin
- You have access to the workflow builder.
- At least one LLM provider integration is enabled and healthy.