Get Chat By ID
Retrieves the chat history between Glean Assistant and the user for a given Chat.
Note, this action belongs to Glean Chat API
, therefore requires using either the Global Client Token
or the User Client Token
connection methods.
External Documentation
To learn more, visit the Glean documentation.
Parameters
Parameter | Description |
---|---|
Chat ID | The ID of the Chat to be retrieved. Can be obtained by using the List Chats action. |
Timezone Offset | The offset of the client's timezone in minutes from UTC. For example, PTD is -420 because it's 7 hours behind UTC . |
Example Output
{
"chatResult": {
"chat": {
"messages": [
{
"agentConfig": {
"agent": "DEFAULT",
"mode": "DEFAULT"
},
"author": "USER",
"citations": [
{
"trackingToken": "string",
"sourceDocument": {
"id": "string",
"datasource": "string",
"docType": "string",
"title": "string",
"url": "string",
"metadata": {
"container": "container",
"parentId": "JIRA_EN-1337",
"createTime": "2000-01-23T04:56:07.000Z",
"author": {
"name": "name"
},
"documentId": "documentId",
"status": [
"Done"
]
}
},
"sourcePerson": {
"name": "George Clooney",
"obfuscatedId": "abc123"
}
}
],
"fragments": [
{
"structuredResults": [
{
"document": {
"title": null,
"url": null,
"metadata": null
},
"person": {
"name": "George Clooney",
"obfuscatedId": "abc123"
},
"code": {
"repoName": "scio",
"fileName": "README.md",
"matches": [
{
"lineNumber": 1,
"content": "Welcome to the beginning"
},
{
"lineNumber": 2,
"content": "Second line of the file"
}
]
}
}
]
}
],
"trackingToken": "string",
"text": "string"
}
],
"id": "string",
"createTime": 0,
"createdBy": {
"name": "George Clooney",
"obfuscatedId": "abc123"
},
"updateTime": 0,
"name": "string"
}
}
}
Workflow Library Example
Get Chat by Id with Glean and Send Results Via Email
Preview this Workflow on desktop