Building a serverless AI assistant at Pelago: concept to care in two weeks
The Pelago engineering team built a serverless AI assistant in two weeks using AWS services such as Amazon Bedrock and AWS Lambda, enabling contextually aware suggested considerations for the care team. The event-driven architecture separates concerns, allowing the AI assistant to process messages asynchronously without blocking the user experience. The system generates pre-generated suggestions, stored in a database, and retrieves them instantly when a care team member opens a conversation. The team used Amazon SNS for message fan-out and decoupled processing, adding the AI Chat Assistant feature without modifying existing message-handling code. This architecture also enabled organic scaling with each Lambda function scaling horizontally based on current traffic.