Supercharging Amazon Bedrock Flows with AWS Multi-Agent Orchestrator
Amazon Bedrock Flows is an intuitive visual design tool that enables users to create complex AI workflows through a user-friendly drag-and-drop interface. By seamlessly integrating with AWS Multi-Agent Orchestrator, it simplifies the coordination of AI agents, making sophisticated AI solutions more accessible to organizations of all technical levels.
Anthony Bernabeu
Amazon Employee
Published Dec 3, 2024
I've been working with Amazon Bedrock Flows lately - it's this really cool feature from Bedrock that lets you visually design your AI workflows. If you're like me and prefer visuals over code, you'll love it! Drag, drop, connect nodes, and boom - you've got an AI flow running.
But after using it for a while, I hit some limitations that Bedrock Flows alone couldn't solve.
Two big ones stood out:
- No memory across conversations (each request starts fresh)
- No built-in way to manage multiple flows
Let me show you how I solved these using the Multi-Agent Orchestrator framework.
As of December 3, 2024, Amazon Bedrock Flow doesn't have built-in memory support. That means if you're building a conversational AI, your flow can't remember what was said earlier in the conversation - not ideal!
But here's where the Bedrock Flows Agent comes to the rescue. It adds chat history support to your flows, making them actually conversational. Pretty neat, right?
For our example we have created a tech agent flow as followed:
The tech_agent prompt node will extract
history
and question
from the Flow input.Here is the prompt we used for this
tech_agent
node:In this example we are not going to use a classifier since we only have one agent and we donโt need to use the full orchestrator logic.
Here is a diagram that shows how everything connects together within the multi-agent-orchestrator:
Our tech agent flow, enhanced by chat history context, accurately recognized that the question was related to AWS Lambda. This allowed it to provide the correct response to our follow-up query.
Pretty impressive, right? ๐คฉ
Letโs create another Bedrock Flows, for health request:
Similar to the tech_agent flow,
question
and history
are extracted from the Flow input node.Here is the prompt we defined for this health_agent node:
When you have multiple flows, you'll want to use the orchestrator to route requests to the right flow:
Now you have:
- Flows that integrates conversation history
- Smart routing between different flows
- A clean way to mix flows with other agent types
By using the Multi-Agent Orchestrator framework, we've basically given our Bedrock Flows superpowers! The flows can now remember conversations and work together seamlessly. No more awkward "sorry, what were we talking about?" moments or confusion about which flow should handle what.
Give it a try and let me know how it works for you! ๐
Head out to our documentation with practical examples:
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.