Skip to content

aws-samples/sample-agentic-chatbot-accelerator

Agentic Chatbot Accelerator

The Agentic Chatbot Accelerator is a full-stack solution for building, deploying, and iterating on agentic chatbots. It implements an iterative agent development lifecycle:

Agent Development Lifecycle

  1. Define Goals & Tasks – What your agent should accomplish and the tasks it needs to perform
  2. Design & Configure Agent – Foundation model selection, agentic pattern choice, and agent system prompts
  3. Connect Tools & MCP Servers – Tools and MCP (Model Context Protocol) servers that extend agent capabilities with external resources
  4. Deploy Agent – Managed runtime environment for your agents
  5. Experiment & Gather Feedback – Agent behavior testing, human feedback collection, and iterative refinement

The accelerator provides a web-based interface, agent factory, knowledge base management, and observability tooling to support this full cycle. The current implementation deploys on AWS using CDK or Terraform, leveraging Amazon Bedrock AgentCore.

How to Get Started

The following steps use CDK (the default deployment method). For Terraform, see Terraform Deployment.

  1. Install required packages: Run cd iac-cdk && npm install
  2. Configure features (optional): Create iac-cdk/bin/config.yaml to customize deployment (see How to Deploy)
  3. Deploy Infrastructure: Run either make deploy or make deploy-finch to deploy the CDK stack with Docker or Finch, respectively
  4. Create User: Add a user to the Cognito User Pool (-aca-userPool) via AWS Console
  5. Access Application: Open the web application using the URL from CDK deployment outputs
  6. Configure Agent: Use the Agent Factory to create and configure your first AgentCore runtime
  7. Test & Chat: Interact with your agent through the chatbot interface
  8. Iterate: Refine agent settings, add tools, and redeploy as needed

See It in Action

The Agent Manager lets you configure and deploy agents through the full lifecycle — select models, craft instructions, attach tools and MCP servers, deploy, and iterate:

Agent Manager

Choose between single agent or multi-agent patterns to match your use case:

Agent Design Choices

Use the Agent Factory to create agents with any of these patterns:

  • Single Agent – One agent with direct access to tools, knowledge bases, and MCP servers
  • Agents as Tools – Orchestrate specialized sub-agents as callable tools
  • Swarm – Coordinate a swarm of collaborative agents
  • Graph – Define agent workflows as directed graphs

Register and manage MCP servers to extend your agents with external capabilities. The MCP Server Registry lets you connect agents to tools like AWS documentation search, biomedical literature APIs, and custom services. See Expanding AI Tools for details on adding MCP servers and custom tools.

MCP Server Registry

Test your agents through the built-in chatbot interface — interact in real-time, review responses, and provide feedback. Users get real-time visibility as the agent makes calls to tools, and can provide feedback on each response via thumbs up/down or free-text comments.

Chatbot Experience — real-time tool call visibility with thumbs up/down and free-text feedback

For systematic validation, run evaluations powered by the Strands Agents Evals SDK to assess output quality, tool usage, trajectory efficiency, and multi-agent interactions. See Agent Evaluation for details.

AWS Platform Details

Optional Features

The accelerator supports flexible deployment configurations:

  • Knowledge Base & Document Processing — RAG capabilities with document upload, chunking, and retrieval. Disable by omitting knowledgeBaseParameters and dataProcessingParameters. See Knowledge Base Management.

  • Pre-configured Agent Runtime — Automatically deploy an agent runtime via CDK instead of creating one manually through the Agent Factory UI. Enable by adding agentRuntimeConfig to your configuration.

  • Observability — X-Ray distributed tracing for agent invocations. Enable by adding agentCoreObservability to your configuration. See Observability & Insights.

See How to Deploy for full configuration details.

How to Contribute

See CONTRIBUTING.md for detailed contribution guidelines.

  • Bug Reports & Feature Requests: Create issues in GitHub for bugs or new feature proposals
  • Security Scan: Run ASH (Automated Security Helper) scan before opening a pull request for review
  • Major Changes: Propose a design document before implementing significant features or architectural changes

Security

Note: this asset represents a proof-of-value for the services included and is not intended as a production-ready solution. You must determine how the AWS Shared Responsibility applies to their specific use case and implement the needed controls to achieve their desired security outcomes. AWS offers a broad set of security tools and configurations to enable our customers.

Ultimately it is your responsibility as the developer of a full stack application to ensure all of its aspects are secure. We provide security best practices in repository documentation and provide a secure baseline but Amazon holds no responsibility for the security of applications built from this tool.

License

This project is licensed under the MIT-0 License. See the LICENSE file.

About

The Agentic Chatbot Accelerator is a web application deployment solution that utilizes Infrastructure as Code to enable customers to create agentic chatbots. Built on AWS Strands and Amazon Bedrock AgentCore, this solution streamlines the development of agentic-powered chatbot.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors