Skip to main content

Log sessions content

Access the content of a specific session by executing:

query SessionContentV2($sessionId: String) {
rows: log_session_content_v2(args: { session_id: $sessionId }) {
messages
brain_id
brain_parent_id
avg_confidence
brain_version
channel
channel_user_id
desk_id
end_time
expired_time
external_user_id
integration_id
is_contained
is_covered
is_test
min_confidence
participated_brains
participated_collections
participated_agents
rating
feedback
session_id
start_time
tags
rule_ids
total_user_messages
user_id
user_name
user_email
}
}

SessionContentV2 is called by passing a session_id. Example:

{
"sessionId": "58be4fe7-96af-409b-8ae2-cf6b1c4b51a5"
}

Example Result

{
"data": {
"rows": [
{
"messages": [
{
"time": "2022-04-14T09:22:08.284",
"event": "message:received",
"context": null,
"message": {
"text": "The atm near my house is broken and I could't use it today 😢"
},
"agent_id": null,
"request_id": "99792580374dc364535ac3f38a80aae0",
"first_message": true,
"response_time": null
},
{
"time": "2022-04-14T09:22:09.635",
"event": "message:brain_send",
"context": null,
"message": {
"debug": {
"logs": [
"Found intents",
"0) Name: broken_atm Confidence: 0.77",
"1) Name: nearest_atm Confidence: 0.19",
"2) Name: hours Confidence: 0.15",
"3) Name: negative Confidence: 0.12",
"4) Name: contact_details Confidence: 0.10",
"Attempting to find a new dialog match for intent broken_atm"
],
"nodes_stack": [
{
"name": "Broken ATM",
"type": "intent",
"node_id": "21b15143-5692-4cdb-9539-79f4b4a8af57"
}
]
},
"intents": [
{
"intent": "broken_atm",
"confidence": 0.7724142
},
{
"intent": "nearest_atm",
"confidence": 0.18713668
},
{
"intent": "hours",
"confidence": 0.15467386
},
{
"intent": "negative",
"confidence": 0.11730872
},
{
"intent": "contact_details",
"confidence": 0.09575937
}
],
"entities": [],
"responses": [
{
"text": "Do you happen to know the address of the broken atm?",
"type": "text",
"action_id": "eb4fb849-544e-4eda-af7d-949ee88799fb"
}
],
"processed_text": ""
},
"agent_id": null,
"request_id": "44792580374dc364535ac3f38a80bde0",
"first_message": true,
"response_time": 0.022516666
},
{
"time": "2022-04-14T09:23:24.701",
"event": "message:received",
"context": null,
"message": {
"text": "214 Cambridge Street, Boston MA 13564"
},
"agent_id": null,
"request_id": "07792580374dc364535ac3f38a80bde0",
"first_message": false,
"response_time": null
},
{
"time": "2022-04-14T09:23:25.951",
"event": "message:brain_send",
"context": {
"atm_loc": "Street",
"client_url": "https://web-client.moveo.ai/preview?host=https://channels-ws.dev.moveo.ai&integrationId=1388a63d-2275-4446-9f20-dfec9203d940",
"atm_loc_value": "street"
},
"message": {
"debug": {
"logs": [
"Found intents",
"0) Name: negative Confidence: 0.54",
"1) Name: greetings Confidence: 0.33",
"2) Name: goodbye Confidence: 0.22",
"3) Name: broken_atm Confidence: 0.17",
"4) Name: location Confidence: 0.16",
"Found entities",
"0) Entity: atm_loc",
"Filled in requisite atm_loc with value Street",
"Created additional context variable atm_loc_value with entity value street"
],
"nodes_stack": [
{
"name": "Broken ATM",
"type": "intent",
"node_id": "21b15143-5692-4cdb-9539-79f4b4a8af57"
}
]
},
"intents": [
{
"intent": "negative",
"confidence": 0.54442894
},
{
"intent": "greetings",
"confidence": 0.32697886
},
{
"intent": "goodbye",
"confidence": 0.22444303
},
{
"intent": "broken_atm",
"confidence": 0.17175901
},
{
"intent": "location",
"confidence": 0.16154821
}
],
"entities": [
{
"end": 20,
"type": "string",
"start": 14,
"value": "street",
"entity": "atm_loc",
"confidence": 1
}
],
"responses": [
{
"text": "I'm so sorry to hear that! 😢",
"type": "text",
"action_id": "d5416a0f-fae0-40f9-918d-2519931eafaf"
},
{
"text": "Would you like to receive updates as to when it's fixed? ",
"type": "text",
"action_id": "db4ff9d4-2c8c-4d58-831f-efff4f8622b1"
}
],
"processed_text": ""
},
"agent_id": null,
"request_id": "07792580374dc364535ac3f38a80bde0",
"first_message": false,
"response_time": 0.020833334
},
{
"time": "2022-04-14T09:24:32",
"event": "message:send",
"context": null,
"message": {
"text": "Hello, this is a human"
},
"agent_id": "4v57b8ba-c1de-42ac-94ad-564e0c6858c9",
"request_id": "e91a1441418f64de58009d463087ea29",
"first_message": true,
"response_time": 0.56035
},
],
"brain_id": "44f3ec0f-c7eb-42dd-8aef-23d8037ff418",
"brain_parent_id": "99v153b5-de5e-41f8-aa4b-769369ee6a3f",
"avg_confidence": 0.75770354,
"brain_version": 8,
"channel": "web",
"channel_user_id": null,
"desk_id": "d4vbac4f-0edf-4aa4-98ab-527d3769ba0e",
"end_time": "2022-04-14T09:24:06.322",
"external_user_id": null,
"integration_id": "0031a63d-2275-4446-9f20-dfec9203d940",
"is_contained": true,
"is_covered": true,
"is_test": true,
"min_confidence": 0.54442894,
"participated_agents": [
{
"agent_id": "4v57b8ba-c1de-42ac-94ad-564e0c6858c9",
"agent_name": "George Johnson"
}
],
"rating": null,
"session_id": "4451f945-b196-433e-9cc9-6fe940ae31e1",
"start_time": "2022-04-14T09:22:08.284",
"tags": null,
"total_user_messages": 3,
"user_id": "P3S9pVPx_S6osRaOndjJl",
"user_name": "Visitor 442"
}
]