Build a GenAI Chatbot with AWS Serverless Architecture


If you are interested to build a GenAI Chatbot with AWS Serverless architecture. Here you go – I have created a sample project to demonstrate that.

Let’s take a look at the architecture:

The frontend is written in React and deployed to CloudFront with Cognito authentication.

The backend has 3 options:

  • Lambda function URL (with streaming support)
  • API Gateway (Rest API) + Lambda
  • API Gateway (Websocket API) + Lambda (with streaming support)

Lambda uses Converse API to interact with LLM models in Bedrock.

Ready to get your hands dirty? The repository can be found here: https://github.com/jc1518/simple-chatbot

Leave a comment