Skip to content
VirtualLP Virtual Learning Platform
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. 1 Enable Claude 3.5 Haiku
  2. 2 Create agent order-support-agent
  3. 3 Write the instructions and save
  4. 4 Add an action group with a function
  5. 5 Implement the tool in Lambda
  6. 6 Let the tool read the Orders table
  7. 7 Prepare and test the agent
  8. 8 See the agent ask for missing information
  9. 9 Give the agent a knowledge base
  10. 10 Ask a policy question
  11. 11 Publish alias prod