Retrieve a single AI log by its ID, together with a snapshot of the context the AI used to answer it: the generated assets (charts, dashboards, ...), the datasets and columns with their AI context as they were at that moment, the dashboard AI context, the custom context, and the Embed token filters and security filters that were applied.
The detailStatus property indicates whether this snapshot is available:
ready : the snapshot is returned in detail .
pending : the snapshot is still being stored. This can take up to a minute after the AI log was created, so try again later.
unavailable : no snapshot was stored for this AI log. detail is null .
The value of a chart or dashboard asset is null when it can no longer be safely shown, e.g. because you no longer have access to one of its datasets.
The same access rules and retention period as for Search AILog apply. An unknown ID, or the ID of an AI log outside your organization or the retention period, returns a 404 error.
npm install @luzmo/nodejs-sdk{
"id": "5d1c2b3a-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
"suborganization_id": "acme-corp",
"user_id": "fde42af0-57f8-40e3-880c-3464d9a525ce",
"authorization_id": "8c9d0e1f-2a3b-4c5d-8e6f-7a8b9c0d1e2f",
"authorization_type": "embed",
"authorization_name": "Customer portal",
"agent": "analyst",
"routed_to": [],
"auto_routed": false,
"task": "",
"conversation_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"message_id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"parent_message_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"prompt": "What was our revenue per region last quarter?",
"response_text": "Revenue last quarter was highest in Europe (1.2M), followed by North America (0.9M) and APAC (0.4M).",
"response_summary": "chart",
"result_types": [
"text",
"chart"
],
"result_count": 1,
"dataset_ids": [
"24aa02fe-d54d-4217-bd9d-dcdba45c83b3"
],
"asset_ids": [
"6e7f8a9b-0c1d-4e2f-8a3b-4c5d6e7f8a9b"
],
"latency_ms": 6420,
"success": true,
"out_of_scope": false,
"cancelled": false,
"failure_reason": null,
"trace_id": "6f1d2c3b4a5e4f6a8b7c9d0e1f2a3b4c",
"request_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"locale_id": "en",
"origin_domain": "app.example.com",
"started_at": "2026-10-12T09:41:21.104Z",
"ended_at": "2026-10-12T09:41:27.524Z",
"created_at": "2026-10-12T09:41:27.530Z",
"source": "embedded",
"feature": "chat_component",
"feedback_rating": 1,
"flagged": false,
"user": {
"id": "fde42af0-57f8-40e3-880c-3464d9a525ce",
"name": "Jane Doe",
"email": "jane.doe@example.com",
"thumbnails": []
},
"datasets": [
{
"id": "24aa02fe-d54d-4217-bd9d-dcdba45c83b3",
"name": {
"en": "Orders"
},
"type": "dataset",
"subtype": "postgresql",
"account": {
"id": "7e0899a5-acd5-4235-8017-ff7ae208c88a",
"provider": "postgresql"
}
}
],
"detailStatus": "ready",
"detail": {
"assets": [
{
"id": "6e7f8a9b-0c1d-4e2f-8a3b-4c5d6e7f8a9b",
"type": "item",
"value": {
"type": "bar-chart",
"slots": [],
"options": {}
}
}
],
"datasets": [
{
"id": "24aa02fe-d54d-4217-bd9d-dcdba45c83b3",
"name": "Orders",
"nameI18n": {
"en": "Orders"
},
"aiContext": "One row per order line. Amounts are in EUR, net of returns.",
"columns": [
{
"id": "0f1e2d3c-4b5a-4968-8776-655443322110",
"name": "Amount",
"nameI18n": {
"en": "Amount"
},
"type": "numeric",
"subtype": null,
"aiContext": "Order line amount in EUR.",
"isFormula": false,
"usedBy": [
"analyst"
]
},
{
"id": "1e2d3c4b-5a69-4877-8665-544332211009",
"name": "Region",
"nameI18n": {
"en": "Region"
},
"type": "hierarchy",
"subtype": null,
"aiContext": null,
"isFormula": false,
"usedBy": [
"analyst"
]
}
]
}
],
"dashboardAiContext": null,
"customContext": "Answer in EUR.",
"tokenFilters": [],
"securityFilters": {
"24aa02fe-d54d-4217-bd9d-dcdba45c83b3": []
},
"truncated": false,
"filtersTruncated": false,
"schemaVersion": 3
}
}