← API reference
Mutation / aiml

sendChatMessage

Send a message to a chat session and receive an AI response. Requires chatsession:write permission.

Arguments

Message to send

Returns ChatMessageResponse!

Explore in a view

AI and ML
View exact SDL
"""
Send a message to a chat session and receive an AI response. Requires chatsession:write permission.
"""
sendChatMessage(
  """Message to send"""
  input: SendChatMessageInput!
): ChatMessageResponse! @topic(names: ["aiml"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.