OBJECT

ChatConversationEntity

Conversation of a user with the AI assistant, either general or about a specific record.

link GraphQL Schema definition

  • type ChatConversationEntity {
  • # True when the record is protected against deletion because it must always exist
  • # in the space. Deleting a record that is not protected can still fail on other
  • # checks. Read-only.
  • isDeleteProtected: Boolean!
  • # Unique identifier of entity.
  • id: ID!
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: DateTime
  • # Creation time.
  • created: DateTime
  • # User the conversation belongs to.
  • owner: ClientEntity
  • # Record context the conversation was started in (entity type, entity id and the
  • # AI screen view). Empty for conversations not bound to a record.
  • context: AiContext
  • # Id of the owning user.
  • ownerId: ID!
  • # Kind of AI chat: a general conversation with the AI assistant, or one about a
  • # specific record identified by context.
  • type: ChatConversationTypeEnum
  • # Messages exchanged in the conversation, in chronological order.
  • #
  • # Arguments
  • # filter: Filter TextMessage relations by target TextMessage
  • # attributes.
  • # orderBy: Order TextMessage relations by target TextMessage
  • # attributes.
  • # includeDeleted: Returns deleted target records as well. Default
  • # is true.
  • # before: Cursor until which to take entities to result set.
  • # after: Cursor after which to start taking entities to result
  • # set.
  • # first: Number of entities to return from beginning of the
  • # result set.
  • # last: Return only the "last" number of entities from result
  • # set.
  • messages(
  • filter: TextMessageFilterInput,
  • orderBy: [TextMessageOrderByInput!],
  • includeDeleted: Boolean,
  • before: String,
  • after: String,
  • first: Int,
  • last: Int
  • ): TextMessageEntityConnection
  • # Permissions the current user has on this record, out of the requested ones.
  • #
  • # Arguments
  • # permissions: Permissions to check; the result lists those the
  • # current user has.
  • instancePermissions(permissions: [EntityPermsEnum!]!): [EntityPermsEnum!]!
  • }