Amazon Web Services
AWS-AI5 advanced
Build an AI agent with Bedrock Agents, a Lambda tool and a knowledge base
Create an order-support agent that decides when to call your Lambda function (looking up orders in DynamoDB), asks for missing details, answers policy questions from a knowledge base, and explains every step in its trace.
What you'll do
- Write agent instructions
- Define an action group with function details
- Implement the tool in Lambda against DynamoDB
- Fix permissions and read agent traces
- Combine tools with a knowledge base and publish an alias
Lab tasks
- 1 Enable Claude 3.5 Haiku
-
2
Create agent
order-support-agent - 3 Write the instructions and save
- 4 Add an action group with a function
- 5 Implement the tool in Lambda
- 6 Let the tool read the Orders table
- 7 Prepare and test the agent
- 8 See the agent ask for missing information
- 9 Give the agent a knowledge base
- 10 Ask a policy question
-
11
Publish alias
prod