Skip to content

The open alternative to Salesforce, designed for AI.

813 B
Raw Blame
import { gql } from '@apollo/client';

export const SEND_CHAT_MESSAGE = gql`
  mutation SendChatMessage(
    $threadId: UUID!
    $text: String!
    $messageId: UUID!
    $browsingContext: JSON
    $modelId: String
    $fileAttachments: [FileAttachmentInput!]
    $mentionedWorkspaceMemberIds: [UUID!]
    $channelId: UUID
    $shouldAssistantReply: Boolean
  ) {
    sendChatMessage(
      threadId: $threadId
      text: $text
      messageId: $messageId
      browsingContext: $browsingContext
      modelId: $modelId
      fileAttachments: $fileAttachments
      mentionedWorkspaceMemberIds: $mentionedWorkspaceMemberIds
      channelId: $channelId
      shouldAssistantReply: $shouldAssistantReply
    ) {
      messageId
      queued
      streamId
      mentionedParticipantWorkspaceMemberIds
    }
  }
`;