In this post, we demonstrate how to create an automated email response solution using Amazon Comprehend.
Organizations spend lots of resources, effort, and money on running their customer care operations to answer customer questions and provide solutions. Your customers may ask questions via various channels, such as email, chat, or phone, and deploying a workforce to answer those queries can be resource intensive, time-consuming, and even unproductive if the answers to those questions are repetitive.
During the COVID-19 pandemic, many organizations couldn’t adequately support their customers due to the shutdown of customer care and agent facilities, and customer queries were piling up. Some organizations struggled to reply to queries promptly, which can cause a poor customer experience. This in turn can result in customer dissatisfaction, and can impact an organization’s reputation and revenue in the long term.
Although your organization might have the data assets for customer queries and answers, you may still struggle to implement an automated process to reply to your customers. Challenges might include unstructured data, different languages, and a lack of expertise in artificial intelligence (AI) and machine learning (ML) technologies.
You can overcome such challenges by using Amazon Comprehend to automate email responses to customer queries. With our solution, you can identify the intent of customer emails send an automated response if the intent matches your existing knowledge base. If the intent doesn’t have a match, the email goes to the support team for a manual response. The following are some common customer intents when contacting customer care:
- Transaction status (for example, status of a money transfer)
- Schimbati-va parola
- Promo code or discount
- Ore de funcționare
- Find an agent location
- Report fraud
- Unlock account
- Închideți contul
Amazon Comprehend can help you perform classification and entity detection on emails for any of the intents above. For this solution, we show how to classify customer emails for the first three intents. You can also use Amazon Comprehend to detect key information from emails, so you can automate your business processes. For example you can use Amazon Comprehend to automate the reply to a customer request with specific information related to that query.
Prezentare generală a soluțiilor
To build our customer email response flow, we use the following services:
- Amazon Comprehend
- AWS Lambdas
- Serviciul de e-mail simplu Amazon (Amazon SES)
- Serviciul de notificare simplă Amazon (Amazon SNS)
- Amazon WorkMail
The following architecture diagram highlights the end-to-end solution:
Fluxul de lucru al soluției include următorii pași:
- A customer sends an email to the customer support email created in WorkMail.
- WorkMail invokes a Lambda function upon receiving the email.
- The function sends the email content to a custom classification model endpoint.
- The custom classification endpoint returns with a classified value and confidence level (over 80%, but you can configure this as needed).
- If the classification value is
MONEYTRANSFER
, the Lambda function calls the entity detection endpoint to find the money transfer ID. - If the money transfer ID is returned, the function returns the money transfer status randomly (in real-world scenario, you can call the database via API to fetch the actual transfer status).
- Based on the classified value returned, a predefined email template in Amazon SES is chosen, and a reply email is sent to the customer.
- If the confidence level is less than 80%, a classified value is not returned, or entity detection doesn’t find the money transfer ID, the customer email is pushed to an SNS topic. You can subscribe to Amazon SNS to push the message to your ticketing system.
Cerințe preliminare
Consultați README.md de fișier în GitHub repo to make sure you meet the prerequisites to deploy this solution.
Implementați soluția
Solution deployment consists of the following high-level steps:
- Complete manual configurations using the Consola de administrare AWS.
- Run scripts in an Amazon SageMaker notebook instance using the provided notebook file.
- Deploy the solution using the Kit AWS Cloud Development (AWS CDK).
For full instructions, refer to the README.md de fișier în GitHub repo.
Testați soluția
To test the solution, send an email from your personal email to the support email created as part of the AWS CDK deployment (for this post, we use support@mydomain.com). We use the following three intents in our sample data for custom classification training:
- MONEYTRANSFER – The customer wants to know the status of a money transfer
- PASSRESET – The customer has a login, account locked, or password request
- PROMOCODE – The customer wants to know about a discount or promo code available for a money transfer
The following screenshot shows a sample customer email:
If the customer email is not classified or confidence levels are below 80%, the content of the email is forwarded to an SNS topic. Whoever is subscribed to the topic receives the email content as a message. We subscribed to this SNS topic with the email that we passed with the human_workflow_email
parameter during the deployment.
A curăța
To avoid incurring ongoing costs, delete the resources you created as part of this solution when you’re done.
Concluzie
In this post, you learned how to configure an automated email response system using Amazon Comprehend customer classification and entity detection and other AWS services. This solution can provide the following benefits:
- Improved email response time
- Îmbunătățirea satisfacției clienților
- Cost savings regarding time and resources
- Ability to focus on key customer issues
You can also expand this solution to other areas in your business and to other industries.
With the current architecture, the emails that are classified with a low confidence score are routed to a human loop for manual verification and response. You can use the inputs from the manual review process to further improve the Amazon Comprehend model and increase the automated classification rate. AI augmentată Amazon (Amazon A2I) provides built-in human review workflows for common ML use cases, such as NLP-based entity recognition in documents. This allows you to easily review predictions from Amazon Comprehend.
As we get more data for every intent, we will retrain and deploy the custom classification model and update the email response flow accordingly in the GitHub repo.
Despre autor
Godwin Sahayaraj Vincent este arhitect de soluții de întreprindere la AWS, pasionat de Machine Learning și care oferă îndrumări clienților pentru a proiecta, implementa și gestiona sarcinile de lucru și arhitecturile lor AWS. În timpul liber, îi place să joace cricket cu prietenii săi și tenis cu cei trei copii ai săi.
Shamika Ariyawansa is an AI/ML Specialist Solutions Architect on the Global Healthcare and Life Sciences team at Amazon Web Services. He works with customers to advance their ML journey with a combination of AWS ML offerings and his ML domain knowledge. He is based out of Denver, Colorado. In his spare time, he enjoys off-roading adventures in the Colorado mountains and competing in machine learning competitions.
- Coinsmart. Cel mai bun schimb de Bitcoin și Crypto din Europa.
- Platoblockchain. Web3 Metaverse Intelligence. Cunoștințe amplificate. ACCES LIBER.
- CryptoHawk. Radar Altcoin. Încercare gratuită.
- Source: https://aws.amazon.com/blogs/machine-learning/automate-email-responses-using-amazon-comprehend-custom-classification-and-entity-detection/
- "
- 100
- Despre Noi
- Cont
- AI
- Amazon
- Amazon Web Services
- api
- arhitectură
- artificial
- inteligență artificială
- Inteligența artificială (AI)
- Bunuri
- augmented
- Automata
- disponibil
- AWS
- Beneficiile
- frontieră
- construi
- construit-in
- afaceri
- apel
- pasă
- cazuri
- Provoca
- provocări
- canale
- clasificare
- Cloud
- cod
- Colorado
- combinaţie
- Comun
- încredere
- conţinut
- Cheltuieli
- Covid-19
- Pandemie COVID-19
- crichet
- Curent
- experienta clientului
- Relații Clienți
- clienţii care
- de date
- Baza de date
- Denver
- implementa
- Implementarea
- desfășurarea
- Amenajări
- Detectare
- Dezvoltare
- diferit
- Reducere
- documente
- Nu
- domeniu
- cu ușurință
- Punct final
- Afacere
- exemplu
- Extinde
- experienţă
- expertiză
- First
- debit
- Concentra
- următor
- Complet
- funcţie
- Caritate
- de asistență medicală
- ajutor
- Cum
- Cum Pentru a
- HTTPS
- identifica
- Impactul
- punerea în aplicare a
- îmbunătăţi
- include
- Crește
- industrii
- informații
- Inteligență
- scop
- Cheie
- copii
- cunoştinţe
- Limbă
- învățat
- învăţare
- Nivel
- Life Sciences
- blocat
- Lung
- maşină
- masina de învățare
- administrare
- manual
- Meci
- ML
- model
- bani
- caiet
- notificare
- ofertele
- Operațiuni
- organizație
- organizații
- Altele
- pandemie
- Parolă
- personal
- Joaca
- sărac
- Predictii
- proces
- procese
- furniza
- furnizează
- resursă
- Resurse
- răspuns
- Returnează
- venituri
- revizuiască
- funcţionare
- ȘTIINȚE
- Servicii
- închidere
- simplu
- So
- soluţii
- petrece
- Stare
- subscrie
- a sustine
- sistem
- echipă
- Tehnologii
- test
- timp
- consumă timp
- Pregătire
- Actualizează
- utilizare
- valoare
- Verificare
- web
- servicii web
- OMS
- Forta de munca
- fabrică