Get Conversation Log
get
/api/v1/bots/sessions/{channelId}/{userId}/{sessionId}/log
Returns the conversation log for the given session ID.
Request
Path Parameters
-
channelId: string
The channel ID for the conversation.
-
sessionId: string
The channel session ID for the conversation. From custom component code, you can get the session ID by calling
conversation.sessionId()
. -
userId: string
The channel user ID for the conversation.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Success.
Nested Schema : InsightsConversation
Type:
Show Source
object
-
channel(optional):
string
-
componentPath(optional):
string
-
endState(optional):
string
-
errorCategory(optional):
string
-
errorMessage(optional):
string
-
errorType(optional):
string
-
intent(optional):
string
-
language(optional):
string
-
locale(optional):
string
-
phrase(optional):
string
-
speech(optional):
boolean
-
speechStart(optional):
boolean
-
stateCount(optional):
integer(int32)
-
statePath(optional):
string
-
switched(optional):
boolean
-
winMargin(optional):
number
Nested Schema : transcript
Type:
Show Source
array
-
Array of:
object SessionInteraction
An interaction in the conversation.
Nested Schema : SessionInteraction
Type:
object
An interaction in the conversation.
Show Source
-
createdOn(optional):
integer(int64)
UNIX Epoch timestamp.
-
id(optional):
string
Message ID.
-
payload(optional):
string
Message payload.
-
source(optional):
string
Allowed Values:
[ "USER", "BOT", "AGENT", "INTENT" ]
Message source.
404 Response
The given session ID, user ID, and channel ID combination is invalid or Enable Insights is switched to Off in the skill.