"# Lab 5: Building a Customer-Facing Frontend Application\n",
"\n",
"## Overview\n",
"\n",
"In the previous labs, we've built a comprehensive Customer Support Agent with memory, shared tools, and production-grade deployment. With them we show cased the capabilities of AgentCore services to move an agentic use case from prototype to production. You can now invoke your agent runtime from any application. On real world applications, customers expect an user interface to be available. Now it's time to create a user-friendly frontend that customers can actually use to interact with our agent.\n",
"\n",
"**Workshop Journey:**\n",
"- **Lab 1 (Done)**: Create Agent Prototype - Built a functional customer support agent\n",
"- **Lab 2 (Done)**: Enhance with Memory - Added conversation context and personalization\n",
"- **Lab 3 (Done)**: Scale with Gateway & Identity - Shared tools across agents securely\n",
"- **Lab 4 (Done)**: Deploy to Production - Used AgentCore Runtime with observability\n",
"- **Lab 5 (Current)**: Build User Interface - Create a customer-facing application\n",
"\n",
"In this lab, we'll create a **Streamlit-based web application** that provides customers with an intuitive chat interface to interact with our deployed Customer Support Agent. The frontend will include:\n",
"\n",
"- **Secure Authentication** - User login via Amazon Cognito\n",
"- **Streaming Responses** - Live response streaming for better user experience\n",
"- **Session Management** - Persistent conversations with memory\n",
"- **Response Timing** - Performance metrics for transparency\n",
"\n",
"### Architecture for Lab 5\n",
"\n",
"Our frontend application connects to the AgentCore Runtime endpoint we deployed in Lab 4, providing a complete end-to-end customer support solution:\n",
"- **Tool integration** - Agent uses appropriate tools for different queries\n",
"- **Professional UI** - Clean, intuitive customer support interface\n",
"- **Error handling** - Graceful handling of any issues"
]
},
{
"cell_type": "markdown",
"id": "007df2c7",
"metadata": {},
"source": [
"## 🎉 Lab 5 Complete!\n",
"\n",
"Congratulations! You've successfully built and deployed a complete customer-facing frontend application for your AI-powered Customer Support Agent. Here's what you accomplished:\n",
"\n",
"### What You Built\n",
"\n",
"- **Web Interface** - Streamlit-based customer support application\n",
"- **Secure Authentication** - Amazon Cognito integration for user management\n",
"- **Real-time Streaming** - Live response streaming for better user experience\n",
"- **Session Management** - Persistent conversations with memory across interactions\n",
"- **Complete Integration** - Frontend connected to your AgentCore Runtime\n",
"\n",
"### End-to-End Customer Support Solution\n",
"\n",
"You now have a **complete, customer support system** that includes:\n",
"\n",
"1. **Intelligent Agent** (Lab 1) - AI-powered support with custom tools\n",
"2. **Persistent Memory** (Lab 2) - Conversation context and personalization\n",
"5. **Customer Frontend** (Lab 5) - web interface for end users\n",
"\n",
"### Key Capabilities Demonstrated\n",
"\n",
"- **Multi-turn Conversations** - Agent maintains context across interactions\n",
"- **Tool Integration** - Seamless use of product info, return policy, and web search\n",
"- **Memory Persistence** - Customer preferences and history maintained\n",
"- **Real-time Performance** - Streaming responses with performance metrics\n",
"- **Security & Identity** - Proper authentication and authorization\n",
"- **Observability** - Full tracing and monitoring of agent behavior\n",
"\n",
"### Next Steps\n",
"\n",
"To further enhance your customer support solution, consider:\n",
"\n",
"- **Custom Styling** - Brand the frontend with your company's design system\n",
"- **Additional Tools** - Integrate with your existing CRM, ticketing, or knowledge base systems\n",
"- **Multi-language Support** - Add internationalization for global customers\n",
"- **Advanced Analytics** - Implement custom dashboards for support team insights\n",
"- **Mobile Optimization** - Ensure the interface works well on mobile devices\n",
"\n",
"### Cleanup\n",
"\n",
"When you're ready to clean up the resources created in this workshop:\n",
"\n",
"**Ready to clean up?** [Proceed to Lab 6: Cleanup →](lab-06-cleanup.ipynb)\n",
"\n",
"---\n",
"\n",
"**🎊 Congratulations on completing the Amazon Bedrock AgentCore End-to-End Workshop!**\n",
"\n",
"You've successfully built a complete, production-ready AI agent solution from prototype to customer-facing application using Amazon Bedrock AgentCore capabilities."