Expedite your Genesys Cloud Amazon Lex bot design with the Amazon Lex automated chatbot designer

The rise of artificial intelligence (AI) has created opportunities to improve the customer experience in the contact center space. Machine learning (ML) technologies continually improve and power the contact center customer experience by providing solutions for capabilities like self-service bots, live call analytics, and post-call analytics. Self-service bots integrated with your call center can help you achieve decreased wait times, intelligent routing, decreased time to resolution through self-service functions or data collection, and improved net promoter scores (NPS). Some examples include a customer calling to check on the status of an order and receiving an update from a bot, or a customer needing to submit a renewal for a license and the chatbot collecting the necessary information, which it hands over to an agent for processing. With Amazon Lex bots, you can use conversational AI capabilities to enable these capabilities within your call center. Amazon Lex uses automatic speech recognition (ASR) and natural language understanding (NLU) to understand the customer’s needs and assist them on their journey. Genesys Cloud (an omni-channel orchestration and customer relationship platform) provides a contact center platform in a public cloud model that enables quick and simple integration of AWS Contact Center Intelligence (AWS CCI) to transform the modern contact center from a cost center into a profit center. As part of AWS CCI, Genesys Cloud integrates with Amazon Lex, which enables self-service, intelligent routing, and data collection capabilities. When exploring AWS CCI capabilities with Amazon Lex and Genesys Cloud, you may be unsure of where to start on your bot design journey. To assist those who may be starting with a blank canvas, Amazon Lex provides the Amazon Lex automated chatbot designer. The automated chatbot designer uses ML to provide an initial bot design that you can then refine and launch conversational experiences faster based on your current call transcripts. With the automated chatbot designer, Amazon Lex customers and partners have a straightforward and intuitive way of designing chatbots and can reduce bot design time from weeks to hours. However, the automated chatbot designer requires transcripts to be in a certain format that is not aligned to Genesys Cloud transcript exports. In this post, we show how you can implement an architecture using Amazon EventBridge, Amazon Simple Storage Service (Amazon S3), and AWS Lambda to automatically collect, transform, and load your Genesys call transcripts in the required format for the Amazon Lex automated chatbot designer. You can then run the automated chatbot designer on your transcripts, be given recommendations for bot design, and streamline your bot design journey. Solution overview The following diagram illustrates the solution architecture. The solution workflow consists of the following steps: Genesys Cloud sends iterative transcripts events to your EventBridge event bus. Lambda receives the iterative transcripts from EventBridge, determines when a conversation is complete, and invokes the Transcript API within Genesys Cloud and drops the full transcript in an S3 bucket. When a new full transcript is uploaded to Amazon S3, Lambda converts the Genesys Cloud formatted transcript into the required format for the Amazon Lex automated chatbot designer and copies it to an S3 bucket. The Amazon Lex automated chatbot designer uses ML to build an initial bot design based on the provided Genesys Cloud transcripts. Prerequisites Before you deploy the solution, you must complete the following prerequisites: Set up your Genesys Cloud CX account and make sure that you are able to log in. For more information on setting up your account, refer to the Genesys documentation. Make sure that the right permissions are set for enabling and publishing transcripts from Genesys. For more information on setting up the required permissions, refer to Roles and permissions overview. If PCI and PII encryption is required for transcription, make sure it is set up in Genesys. For more information on setting up the required permissions, refer to Are interaction transcripts encrypted when stored in the cloud. Set up an AWS account with the appropriate permissions. Deploy the Genesys EventBridge integration To enable the EventBridge integration with Genesys Cloud, complete the following steps: Log in to the Genesys Cloud environment. Choose Admin, Integrations, Add Integrations, and Amazon EventBridge Source. On the Configuration tab, provide the following information: For AWS Account ID, enter your AWS account ID. For AWS Account Region, enter the Region where you want EventBridge to be set up. For Event Source Suffix, enter a suffix (for example, genesys-eb-poc-demo). Save your configuration. On the EventBridge console, choose Integration in the navigation pane, then choose Partner event sources. There should be an event source listed with a name like aws.partner/genesys.com/…/genesys-eb-poc-demo. Select the partner event source and choose Associate with event bus. The status changes from Pending to Active. This sets up the EventBridge configuration for Genesys. Next, you set up OAuth2 credentials in Genesys Cloud for authorizing the API call to get the final transcript. Navigate to the Genesys Cloud instance. Choose Admin, Integrations, and OAuth. Choose Add Client. On the Client Details tab, provide the following information: For App Name, enter a name (for example, TranscriptInvoke-creds). For Grant Types, select Client Credentials. Make sure you’re using the right role that has access to invoke the Transcribe APIs. Choose Save. This generates new values for Client ID and Client Secret. Copy these values to use in the next section, where you configure the template for the solution. Deploy the solution After you have set up the Genesys EventBridge integration, you can deploy an AWS Serverless Application Model (AWS SAM) template, which deploys the remainder of the architecture. To deploy the solution in your account, complete the following steps: Install AWS SAM if not installed already. For instructions, refer to Installing the AWS SAM CLI. Download the GitHub repo and unzip to your directory. Navigate to the genesys-to-lex-automated-chatbot-designer folder and run the following commands: sam build –use-container sam deploy –guided The first command builds the source of your application. The second command packages and deploys your application to AWS, with a series of prompts: Stack Name – Enter the name of the stack to deploy to AWS CloudFormation. This should be unique to your account and Region; a good starting point is something matching your project name. AWS Region – Enter the Region you want to deploy your app to. Make sure it is deployed in the same Region as the EventBridge event bus. Parameter GenesysBusname – Enter the bus name created when you configured the Genesys integration. The pattern of the bus name should look like aws.partner/genesys.com/*. Parameter ClientId – Enter the client ID you copied earlier. Parameter ClientSecret – Enter the client secret you copied earlier. Parameter FileNamePrefix – Change the default file name prefix for the target transcript file in the raw S3 bucket or keep the default. Parameter GenCloudEnv – Enter is the cloud environment for the specific Genesys organization. Genesys is available in more than 15 Regions worldwide as of this writing, so this value is mandatory and should point to the environment where your organization is created in Genesys (for example, usw2.pure.cloud). Confirm changes before deploy – If set to yes, any change sets will be shown to you before deployment for manual review. If set to no, the AWS SAM CLI will automatically deploy application changes. Allow SAM CLI IAM role creation – Many AWS SAM templates, including this example, create AWS Identity and Access Management (IAM) roles required for the Lambda functions included to access AWS services. By default, these are scoped down to the minimum required permissions. To deploy a CloudFormation stack that creates or modifies IAM roles, you must provide the CAPABILITY_IAM value for capabilities. If permission isn’t provided through this prompt, to deploy this example, you must explicitly pass –capabilities CAPABILITY_IAM to the sam deploy command. Save arguments to samconfig.toml – If set to yes, your choices will be saved to a configuration file inside the project, so that in the future you can rerun sam deploy without parameters to deploy changes to your application. After you deploy your AWS SAM application in your account, you can test that Genesys transcripts are being sent to your account and being transformed into the required format for the Amazon Lex automated chatbot designer. Make a test call to validate the solution After you have set up the Genesys EventBridge integration and deployed the preceding AWS SAM template, you can make test calls and validate that files are ending up in the S3…

Leave a Reply

Your email address will not be published. Required fields are marked *

Leap Day and the Supply Chain

Leap Day and the Supply Chain

Happy birthday to everyone born on 29 February and who only get to officially

Nikon Statistics 2024 By Revenue, Sales And Facts

Nikon Statistics 2024 By Revenue, Sales And Facts

WHAT WE HAVE ON THIS PAGE Introduction Nikon Statistics: Let’s dive into Nikon

You May Also Like