DoWhile loops now supported in Amazon Bedrock Flows
AWS•Announcement••by Shubhankar Sumar, Jesse Manders and Eric Li•AWS Artificial Intelligence Blog
Today, we are excited to announce support for DoWhile loops in Amazon Bedrock Flows. With this powerful new capability, you can create iterative, condition-based workflows directly within your Amazon Bedrock flows, using Prompt nodes, AWS Lambda functions, Amazon Bedrock Agents, Amazon Bedrock Flows inline code, Amazon Bedrock Knowledge Bases, Amazon Simple Storage Service (Amazon S3), [...]
Bedrock Flows now has DoWhile loop nodes, so loops can repeat Prompt, Lambda, agent, inline code, knowledge base and S3 steps until a condition is met.
Who it is for
Teams building iterative generative AI workflows on Amazon Bedrock Flows, such as content refinement or multi-step checks.
Key points
Loop controller checks up to five conditions and needs a maximum iteration limit.
Nested loops are not supported.
Available in all Bedrock Flows regions except AWS GovCloud (US); traces can be enabled via the InvokeFlow API.
AI:A taxonomy of multi-agent patterns (sequential, conditional, parallel, plan-based, handoff, conversation, debate) with anti-patterns and a decision sequence for when multiple agents are warranted.
AWS•Customer story••by Isha Doshi, Ayush Ahuja, Evan Richardson, Gustavo Frizzo, Jimin Kim, Shree Krishnamurthi, Mark Whitney, Michael Dillon and Matt Martin•AWS Artificial Intelligence Blog
AI:Rescale built an agent that classifies and routes nightly end-to-end test failures, using Claude on Amazon Bedrock, a knowledge base, and MCP log retrieval, run on Amazon EKS.
AI:Step Functions runs a medical coding workflow that tries a block-list, then exact matching, then a Bedrock AgentCore agent only for ambiguous terms, with every routing decision recorded.