Elevating Customer Support With a Whatsapp Assistant.
This app uses RAG to query Amazon Kendra and DynamoDB to responses while managing conversation memory and session time to self-service through natural language.
How The Whatsapp Travel Assistant Work?
1. Message Input and Initial Processing:
2. Message Processing Based on Format:
3. LLM Processing and Response:
Let's Build The Travel Assistant
Step 0: Activate WhatsApp account Facebook Developers
Step 1: Previous Configuration
Step 2: Deploy The App With CDK.
Step 3: Activate WhatsApp Messaging In The App
🚀 Keep testing, play with the prompt in the agent Amazon Lambda function and adjust it to your need.
✅ The Whatsapp Assistant Application is ready to deploy using AWS Cloud Development Kit. Find the code in Elevating Customer Support With Rag Langchain Agent Bedrock Dynamodb And Kendra github repo.
✅ Notice that the IdentifyLanguage parameter is configured to True. Amazon Transcribe can determine the primary language in the audio.
The transcribe_done Lambda Function is triggered once the Transcribe Job is complete. It extracts the transcript from the Output S3 bucket and sends it to the agent.
📚 Kenton Blacutt, an AWS Associate Cloud App Developer, collaborated with Langchain, creating the Amazon Dynamodb based memory class that allows us to store the history of a langchain agent in an Amazon DynamoDB.
session_tabble
Amazon DynamoDB table, also have control session management in the session_active_tabble
Amazon DynamoDB table, and sets the time here in this line:CustomerSupportBotStack
:You can start asking for customer service information as if it were an airline customer service line.
Passenger_ID
with the sample passenger dataset from Kaggle. Select one and request information regarding it. Amazon Transcribe can detect spoken languages in your media without requiring a language code. 🌎
🚀 Keep testing, play with the prompt in the agent Amazon Lambda function and adjust it to your need.
- - Understand conversations in any language, both written and spoken, and response in the same language.
- Query a knowledge database in Amazon Kendra and an Amazon DynamoDB Table using RAG.
- Deliver sophisticated answers according to the query using RAG, querying knowledge databases in Amazon Kendra, and tables in Amazon DynamoDB.
- Manage conversation memory and store it in an Amazon DynamoDB table.
- Managing session time through a Amazon Dynamodb Table.
We invite you to build this application, play with it, improve it and tell us how it went for you.
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.