Skip to content

Chat Transcripts in Salesforce

1

We have setup a complete integration of Amazon connect and salesforce using AC CTI adaptor in Salesforce. We have enabled chat contacts, and the chats are coming through. Upon accepting the chat, we have created CTI flows to created LiveChatTranscript in Salesforce. How do we get the entire chat transcript to be populated into the body field of liveChatTranscript object.

We could not find any details in the documentation anywhere.

1 Answer
0

You're right that there's no out-of-the-box setting for this — the Amazon Connect CTI Adapter doesn't natively map the chat transcript into the Body field of LiveChatTranscript. You have to populate it programmatically. Here's the supported approach:

  1. Retrieve the transcript from Amazon Connect Use the GetTranscript API (Amazon Connect Participant Service). It returns every message and event with Content, ContentType, DisplayName, ParticipantRole, and AbsoluteTime. It's paginated (MaxResults up to 100 + NextToken), so loop until NextToken is empty to assemble the full conversation. For chats that have already ended, persistent chat must be enabled to access the transcript.

Docs: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-participant_GetTranscript.html

  1. Populate the Body field

Store the Connect contactId on your LiveChatTranscript record when the chat is accepted. On chat end (e.g., the application/vnd.amazonaws.connect.event.chat.ended event or an on-end CTI flow), trigger a Lambda/Apex process. Call GetTranscript for that contactId, paginate through all messages, and format them into a readable string (e.g., [timestamp] DisplayName (Role): Content), filtering out system event content types. Write the assembled text into the Body field via the Salesforce API or Apex. Note Body is a Long Text Area — mind its size limit for long chats.

Bottom line: there's no config flag — retrieve the transcript with GetTranscript and write the formatted result into Body using your own Lambda/Apex logic triggered on chat end.

AWS

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.