This article applies to Salesforce Voice (formerly Service Cloud Voice) with Amazon Connect, and Salesforce Voice with Partner Telephony from Amazon Connect.
When using Salesforce Voice with Amazon Connect, the transcription happens on the Amazon side and the transcripts are pushed to Salesforce so that users can see the transcripts on the conversation page of the voice call record.
If you are seeing duplicate entries of the transcript in the conversation, that probably implies that Salesforce is receiving the duplicate transcripts from Amazon side.
This generally happens if you are using both Amazon transcribe and Contact Lens for transcription in your contact flows on the Amazon Connect.
To confirm if you are using Contact Lens, open a flow on Amazon side and check if there is an element called 'Set recording and analytics behavior'. Under this element, check if 'Enable speech analytics on agent and customer voice recordings' is enabled under 'Contact Lens speech analytics'. If this is enabled, then it means that you are using Contact Lens for transcription
If your flow doesn't have the above 'Enable speech analytics on agent and customer voice recordings' enabled or if it doesn't have a 'Set recording and analytics behavior' element, check if there is an Invoke AWS Lambda element function where 'kvsConsumerTrigger' function is used. If this function is used, that implies that you are using Amazon transcribe
Here are the steps to identify if you are using Amazon transcribe and Contact Lens together:
NOTE : You can check contact flow logs on CloudWatch to see all the different flows which are executed for a specific voice call. This will help you to identify the flows which are actually being used
004695740

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.