Chat Sessions
A ChatSession represents one conversation with the Files.com AI Assistant.
List Chat Sessions
SDK Method
chatsession.List()
Return Object
[]*ChatSession
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Additional Arguments
Show Chat Session
SDK Method
chatsession.Find()
Return Object
ChatSession
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
ChatSessionFindParams Fields
| Field | Description |
|---|---|
| Id string Required | Chat Session ID. |
The ChatSession Object
Some of the methods above return a ChatSession object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id string | Chat Session ID. |
| Title string | Short AI-generated chat title. |
| UserId int64 | User ID. |
| AiTaskId int64 | AI Task ID. Present when the conversation was started by an AI Task. |
| WorkspaceId int64 | Workspace ID. 0 means the default workspace. |
| LastActiveAt date-time | Most recent chat activity date/time. |
| CreatedAt date-time | Chat session creation date/time. |
| Messages array(object) | Visible conversation messages in this chat session. For performance reasons, this is not provided when listing chat sessions. |