faisyou | 2023-05-01 16:22:53 UTC | #1
Hi, We would like to extract web messaging transcript using the Transcript URL API
We are confused what is the communicationId we have to use for this API
I thought the sessionId of the customer session extracted from conversation analytic API is the communicationId But I have 2 web messaging conversations For conversation : 3262befa-423d-46e0-9984-e4fb04c7f363 the communication id is the sessionId of the customer session But for conversation : f0361843-18b6-43de-8ab7-49e211ac6d2f the communication is the peerId of the customer session. I am confused which id I have to use as communicationId for the transcriptURL API and how I can extract the communication ID. I will share the conversationDetails in a seperate message in this thread - would appreciate if someone who has extracted the transcript can assist.
faisyou | 2023-05-01 16:31:07 UTC | #2
[conversationdetailpeerIdconversation.json | attachment](upload://66DND37kWAhin4lVSQQyJvK97P4.json) (11.8 KB) |
[conversationdetailsessionIdconversation.json | attachment](upload://a2w4gEVelC8WRuDa0Lq7HZwMIlt.json) (69.1 KB) |
ConversationId:f0361843-18b6-43de-8ab7-49e211ac6d2f the For this conversationId I have to use the peerId of the customer session to get the transcript PeerId:d40b94f7-72f1-49e0-b2a6-56d041a9a020 /api/v2/speechandtextanalytics/conversations/f0361843-18b6-43de-8ab7-49e211ac6d2f/communications/d40b94f7-72f1-49e0-b2a6-56d041a9a020/transcripturl
ConversationId:3262befa-423d-46e0-9984-e4fb04c7f363 For this conversation I have to use the sessionId:6f43ae5b-3437-410a-b93c-5bc406b6c625 of the customer session - invoking transcriptURL API with peerId fails conversationdetailsessionIdconversation.json | attachment (69.1 KB)
Both are web messaging conversations - one is a bit long then the other but other then that I am not sure what is the difference - why in one case peerId has to be used as communicationId and the other we have to use sessionID
Eos_Rios | 2023-05-04 17:20:34 UTC | #3
peerId is the sessionId of another participant.
If Bob and Alice are talking and Bob has a sessionid (simplified) of 4 and Alice has a sessionid of 6 then bob will have a peerid of 6 and Alice a peerid of 4. It's a circular reference.
So if you wanted both sides of that conversation you'd need use both 4 and 6.
system | 2023-06-04 17:20:01 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19700