Elevate buyer expertise by means of an clever e mail automation resolution utilizing Amazon Bedrock

0
8
Elevate customer experience through an intelligent email automation solution using Amazon Bedrock


Organizations spend quite a lot of sources, effort, and cash on operating their buyer care operations to reply buyer questions and supply options. Your clients might ask questions by means of numerous channels, similar to e mail, chat, or cellphone, and deploying a workforce to reply these queries might be useful resource intensive, time-consuming, and unproductive if the solutions to these questions are repetitive.

Though your group might need the information belongings for buyer queries and solutions, you should still battle to implement an automatic course of to answer to your clients. Challenges may embrace unstructured knowledge, completely different languages, and a lack of know-how in synthetic intelligence (AI) and machine studying (ML) applied sciences.

On this put up, we present you find out how to overcome such challenges by utilizing Amazon Bedrock to automate e mail responses to buyer queries. With our resolution, you possibly can determine the intent of buyer emails and ship an automatic response if the intent matches your current data base or knowledge sources. If the intent doesn’t have a match, the e-mail goes to the help workforce for a handbook response.

Amazon Bedrock is a totally managed service that makes basis fashions (FMs) from main AI startups and Amazon accessible by means of an API, so you possibly can select from a variety of FMs to search out the mannequin that’s finest suited in your use case. Amazon Bedrock provides a serverless expertise so you will get began shortly, privately customise FMs with your individual knowledge, and combine and deploy them into your purposes utilizing AWS instruments with out having to handle infrastructure.

The next are some frequent buyer intents when contacting buyer care:

  • Transaction standing (for instance, standing of a cash switch)
  • Password reset
  • Promo code or low cost
  • Hours of operation
  • Discover an agent location
  • Report fraud
  • Unlock account
  • Shut account

Brokers for Amazon Bedrock may help you carry out classification and entity detection on emails for these intents. For this resolution, we present find out how to classify buyer emails for the primary three intents. You can even use Brokers for Amazon Bedrock to detect key info from emails, so you possibly can automate your small business processes with some actions. For instance, you need to use Brokers for Amazon Bedrock to automate the reply to a buyer request with particular info associated to that question.

Furthermore, Brokers for Amazon Bedrock can function an clever conversational interface, facilitating seamless interactions with each inner workforce members and exterior purchasers, effectively addressing inquiries and implementing desired actions. Presently, Brokers for Amazon Bedrock helps Anthropic Claude fashions and the Amazon Titan Textual content G1 – Premier mannequin on Amazon Bedrock.

Answer overview

To construct our buyer e mail response movement, we use the next providers:

Though we illustrate this use case utilizing WorkMail, you need to use one other e mail instrument that enables integration with serverless capabilities or webhooks to perform related e mail automation workflows. Brokers for Amazon Bedrock lets you construct and configure autonomous brokers in your software. An agent helps your end-users full actions primarily based on group knowledge and consumer enter. Brokers orchestrate interactions between FMs, knowledge sources, software program purposes, and consumer conversations. As well as, brokers robotically name APIs to take actions and invoke data bases to complement info for these actions. Builders can save weeks of growth effort by integrating brokers to speed up the supply of generative AI purposes. For this use case, we use the Anthropic Claude 3 Sonnet mannequin.

Whenever you create your agent, you enter particulars to inform the agent what it ought to do and the way it ought to work together with customers. The directions exchange the $directions$ placeholder within the orchestration immediate template.

The next is an instance of directions we used for our use circumstances:

“You're a classification and entity recognition agent. 

Job 1: Classify the given textual content into one of many following classes: "Switch Standing", "Password Reset", or "Promo Code". Return solely the class with out further textual content.

Job 2: If the categorised class is "Switch Standing", discover the 10-digit entity "money_transfer_id" (instance: "MTN1234567") within the textual content. Name the "GetTransferStatus" motion, passing the money_transfer_id as an argument, to retrieve the switch standing.

Job 3: Write an e mail reply for the client primarily based on the acquired textual content, the categorised class, and the switch standing (if relevant). Embrace the money_transfer_id within the reply if the class is "Switch Standing".

Job 4: Use the e-mail signature "Finest regards, Clever Corp" on the finish of the e-mail reply.”

An motion group defines actions that the agent may help the consumer carry out. For instance, you may outline an motion group referred to as GetTransferStatus with an OpenAPI schema and Lambda operate hooked up to it. Brokers for Amazon Bedrock takes care of setting up the API primarily based on the OpenAPI schema and fulfills actions utilizing the Lambda operate to get the standing from the DynamoDB money_transfer_status desk.

The next structure diagram highlights the end-to-end resolution.

auto email architecture 1

The answer workflow contains the next steps:

  1. A buyer initiates the method by sending an e mail to the devoted buyer help e mail tackle created inside WorkMail.
  2. Upon receiving the e-mail, WorkMail invokes a Lambda operate, setting the next workflow in movement.
  3. The Lambda operate seamlessly relays the e-mail content material to Brokers for Amazon Bedrock for additional processing.
  4. The agent employs the pure language processing capabilities of Anthropic Claude 3 Sonnet to grasp the e-mail’s content material classification primarily based on the predefined agent instruction configuration. If related entities are detected throughout the e mail, similar to a cash switch ID, the agent invokes a Lambda operate to retrieve the corresponding fee standing.
  5. If the e-mail classification doesn’t pertain to a cash switch inquiry, the agent generates an applicable e mail response (for instance, password reset directions) and calls a Lambda operate to facilitate the response supply.
  6. For inquiries associated to cash switch standing, the agent motion group Lambda operate queries the DynamoDB desk to fetch the related standing info primarily based on the supplied switch ID and relays the response again to the agent.
  7. With the retrieved info, the agent crafts a tailor-made e mail response for the client and invokes a Lambda operate to provoke the supply course of.
  8. The Lambda operate makes use of Amazon SES to ship the e-mail response, offering the e-mail physique, topic, and buyer’s e mail tackle.
  9. Amazon SES delivers the e-mail message to the client’s inbox, offering seamless communication.
  10. In situations the place the agent can’t discern the client’s intent precisely, it escalates the problem by pushing the message to an SNS subject. This mechanism permits subscribed ticketing system to obtain the notification and create a help ticket for additional investigation and backbone.

Conditions

Seek advice from the README.md file within the GitHub repo to be sure to meet the stipulations to deploy this resolution.

Deploy the answer

The answer is comprised of three AWS Cloud Deployment Package (AWS CDK) stacks:

  • WorkmailOrgUserStack – Creates the WorkMail account with area, consumer, and inbox entry
  • BedrockAgentCreation – Creates the Amazon Bedrock agent, agent motion group, OpenAPI schema, S3 bucket, DynamoDB desk, and agent group Lambda operate for getting the switch standing from DynamoDB
  • EmailAutomationWorkflowStack – Creates the classification Lambda operate that interacts with the agent and integration Lambda operate, which is built-in with WorkMail

To deploy the answer, you additionally carry out some handbook configurations utilizing the AWS Administration Console.

For full directions, consult with the README.md file within the GitHub repo.

Take a look at the answer

To check the answer, ship an e mail out of your private e mail to the help e mail created as a part of the AWS CDK deployment (for this put up, we use help@vgs-workmail-org.awsapps.com). We use the next three intents in our pattern knowledge for customized classification coaching:

  • MONEYTRANSFER – The shopper needs to know the standing of a cash switch
  • PASSRESET – The shopper has a login, account locked, or password request
  • PROMOCODE – The shopper needs to find out about a reduction or promo code accessible for a cash switch

The next screenshot exhibits a pattern buyer e mail requesting the standing of a cash switch.
money tranfer status cust email
The next screenshot exhibits the e-mail acquired in a WorkMail inbox.
customer email workmail
The next screenshot exhibits a response from the agent concerning the client question.
email auto reponse
If the client e mail isn’t categorised, the content material of the e-mail is forwarded to an SNS subject. The next screenshot exhibits an instance buyer e mail.
email not classified 1 1
The next screenshot exhibits the agent response.
email response unclassifed response
Whoever is subscribed to the subject receives the e-mail content material as a message. We subscribed to this SNS subject with the e-mail that we handed with the human_workflow_email parameter in the course of the deployment.

Clear up

To keep away from incurring ongoing prices, delete the sources you created as a part of this resolution once you’re accomplished. For directions, consult with the README.md file.

Conclusion

On this put up, you discovered find out how to configure an clever e mail automation resolution utilizing Brokers for Amazon Bedrock, WorkMail, Lambda, DynamoDB, Amazon SNS, and Amazon SES. This resolution can present the next advantages:

  • Improved e mail response time
  • Improved buyer satisfaction
  • Value financial savings concerning time and sources
  • Capacity to deal with key buyer subject

You possibly can increase this resolution to different areas in your small business and to different industries. Additionally, you need to use this resolution to construct a self-service chatbot by deploying the BedrockAgentCreation stack to reply buyer or inner consumer queries utilizing Brokers for Amazon Bedrock.

As subsequent steps, try Brokers for Amazon Bedrock to start out utilizing its options. Comply with Amazon Bedrock on the AWS Machine Studying Weblog to maintain updated with new capabilities and use circumstances for Amazon Bedrock.


In regards to the Creator

godwnGodwin Sahayaraj Vincent is an Enterprise Options Architect at AWS who’s enthusiastic about Machine Studying and offering steering to clients to design, deploy and handle their AWS workloads and architectures. In his spare time, he likes to play cricket together with his buddies and tennis together with his three youngsters.

RameshreachrkRamesh Kumar Venkatraman is a Senior Options Architect at AWS who’s enthusiastic about Generative AI, Containers and Databases. He works with AWS clients to design, deploy and handle their AWS workloads and architectures. In his spare time, he likes to play together with his two youngsters and follows cricket.



Supply hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here