Skip to main content

AiChatQueries

No description

type AiChatQueries {
listChats(
processId: Long
subjectKind: String
subjectId: Long
): [WorkflowChat!]
getChat(
chatId: Long!
beforeSeq: Long
limit: Int
): ChatDataGql
}

Fields

AiChatQueries.listChats ● [WorkflowChat!] list object

List the AI copilot chats of a process, newest first

AiChatQueries.listChats.processId ● Long scalar
AiChatQueries.listChats.subjectKind ● String scalar

Chat subject kind: workflow | agent | home

AiChatQueries.listChats.subjectId ● Long scalar

AiChatQueries.getChat ● ChatDataGql object

Get a chat with one page of its transcript, newest page first (cursor by seq)

AiChatQueries.getChat.chatId ● Long! non-null scalar
AiChatQueries.getChat.beforeSeq ● Long scalar
AiChatQueries.getChat.limit ● Int scalar

Returned By

aiChat query