- Retrieve information from a Bedrock Knowledge Base using Retrieval-Augmented Generation (RAG).
- Ask follow-up questions to gather missing inputs.
- Request additional input from the user (generate frontend callbacks) when a tool requires more information than is available.
- Decide when to respond directly versus when to take action by calling a tool.
- Chain multiple steps together to complete multi-step workflows.
- Honor explicit instructions that control behavior, tone, and permitted data sources.

- The user sends a request to your application.
- Your application invokes the agent runtime (for example, via an “invoke agent” API) hosted in Bedrock.
- The agent evaluates the request using its configured instructions, model choice, and action groups and selects one or more actions:
- Answer immediately using available context.
- Ask clarifying questions to the user.
- Retrieve documents from a knowledge base (RAG).
- Call external tools or APIs defined in action groups (for example, order APIs, calendar APIs, or internal microservices).
- Combine and synthesize results from multiple sources into a single, coherent response.
- The agent returns a single response that may include model-generated text, retrieved documents, API results, and any follow-up questions for the user.


- Check the user’s calendar for conflicts.
- Check John’s availability via a directory or calendar API.
- Call a scheduling API to create the event.
- Send confirmations or follow-ups (email, calendar invites).

- Query the sales database to find top-selling products.
- Query the inventory system to check stock levels.
- Use the model to combine, compute percentages, rank items, and flag low-stock thresholds.
- Return a consolidated answer that contains both sales insight and inventory warnings.

- Less orchestration code: Agents embed decision logic and sequencing, reducing custom glue code.
- Faster API integration: Define capabilities and action groups once; agents reuse them across requests.
- Easier development of intelligent assistants: Focus on intent and instructions rather than low-level orchestration.
- More consistent tool-use patterns: Standardized action groups and agent configs yield predictable behavior.

When designing agents, explicitly specify which data sources the agent may use (for example, the knowledge base or tool results) and whether it should avoid relying on the model’s inherent pre-trained knowledge. This helps reduce hallucinations and ensures answers are grounded in your authoritative sources.
- Try the hands-on lab that walks through building an app that uses the SWAPI example end-to-end.
- Learn more about integrating serverless actions with agents, e.g., using
AWS Lambdafor protected API calls and business workflows: https://learn.kodekloud.com/user/courses/aws-lambda
- Amazon Bedrock documentation — foundational concepts and agent runtime
- Retrieval-Augmented Generation (RAG) patterns for grounding model responses
- Design patterns for agent action groups and tool integration