Lesson 5 of 6 Agentic AI Workflows

Deploying Multi-Agent Workflows and Their Infrastructure

This lesson explains how complex tasks are split across agents with narrow roles, and the hosting, coordination, tools, identity and observability that make up agentic workflow infrastructure.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish supervisor and other coordination patterns.
  • Assemble the infrastructure building blocks.
  • Choose between agents and deterministic workflows.

Coordination patterns

In the supervisor pattern, a coordinating agent breaks a task down and delegates parts to specialist collaborator agents, then combines their results. Bedrock Agents supports multi-agent collaboration with a supervisor agent and collaborators, in a routing mode that sends simple requests directly to the right collaborator. Other patterns include sequential pipelines of agents, parallel agents whose outputs are merged, and agent graphs defined in frameworks such as Strands Agents or LangGraph. More agents add capability but also latency, token cost and coordination failure modes.

The following diagram shows an insurance claims workflow in Step Functions and the agents it calls.

The claims workflow. EventBridge starts a Step Functions execution for each claim; the workflow calls an intake agent and a coverage agent on AgentCore Runtime; a Choice state sends payments above USD 5,000 to a human approval task with a callback token; and Step Functions history and AgentCore Observability give the audit trail.
The scenario is illustrative.
Match the pairs

Coordination patterns

Exam skills 3.2.11

Match each multi-agent pattern with its description.

Log in to try this activity Interactive activities are free with an account.

Infrastructure building blocks

A typical deployment uses AgentCore Runtime to host each agent, Gateway for shared tools, Identity for user and service credentials, Memory for state and Observability for traces. Deterministic parts, such as approvals, retries and waiting for external events, run in Step Functions, which can invoke agents as steps. EventBridge or SQS start agents from events and buffer work, and API Gateway exposes agents to applications. Everything is defined with CloudFormation or CDK, and each agent gets its own least-privilege IAM role.

Agents or workflows

Not every multi-step task needs an agent. When the steps are known in advance, a deterministic workflow, for example in AWS Step Functions, is cheaper, faster and easier to test and audit. Agents are justified when the steps cannot be known in advance and the model must decide what to do based on what it finds. Many systems combine both: a workflow for the fixed structure, with an agent for the open-ended step. The following table summarises when to use agents and when to use deterministic orchestration.

Agent
Steps known in advanceNo
Needs flexible reasoningYes
Auditability and predictabilityLower
Retries, waits, human approvalsPossible but custom
Cost per executionTokens per reasoning step
Step Functions workflow
Steps known in advanceYes
Needs flexible reasoningNo
Auditability and predictabilityHigher
Retries, waits, human approvalsBuilt in
Cost per executionPer state transition
Sort into groups

Agent or workflow?

Exam skills 3.2.11

Decide whether each step should be left to an agent or fixed in a workflow.

Log in to try this activity Interactive activities are free with an account.
Worked example

An insurance claims system

An insurer automates claim intake. Documents arrive by email; damage must be assessed, coverage checked and payments above USD 5,000 approved by a person.

  • EventBridge starts a Step Functions workflow for each new claim.
  • The workflow calls an intake agent (extracts details with Textract tools) and a coverage agent (queries the policy knowledge base) on AgentCore Runtime.
  • A Choice state routes payments above USD 5,000 to a human approval task with a callback token.
  • AgentCore Observability and Step Functions history give an end-to-end audit trail.

Agents handle the variable reasoning, while the workflow enforces the fixed rules, such as the approval threshold, that must never depend on a model's judgement.

Check yourself

Where do fixed rules, approvals and waits belong in an agent system?

Show answer

In a Step Functions workflow around the agents.

Exam Tips

Remember for the exam

  • Supervisor agent delegating to specialists: multi-agent collaboration.
  • Fixed rules, approvals and waits: Step Functions around agents.
  • Host agents: AgentCore Runtime; shared tools: Gateway.
  • Start agents from events: EventBridge or SQS.
  • Each agent gets its own least-privilege role.