- Newest
- Most votes
- Most comments
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:
- 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
- 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.
answered 3 months ago
Relevant content
asked 3 years ago
asked 9 months ago
