AI Message
Send a message to your AI and receive a response
Overview
API endpoint for interacting with your AI through messages. This endpoint allows you to have conversations with your AI and receive responses based on your AI’s training.
Headers
Must be set to application/json
Your Personal AI API key
Body
Message to send to your AI for a response
Message to add additional context to the AI for a response (Similar to Reply function)
The domain part of the AI profile url
Name of the user sending the request
Use the same sessionId to continue conversation on that session
Name of the document you want to refer to in your AI’s Upload Library. This functions in the same way as the colon function does in the Personal AI platform.
Name of the source app of the inbound message, required if using with triggers
Flag to also add the user message (Text) to memory. Defaults to false if nothing is entered.
Flag to create a copilot message for the AI. Defaults to false if nothing is entered.
Example Responses
The AI’s response message
Confidence score of the AI’s response
Session identifier for the conversation
Examlpe cURL
Error Codes
Code | Description |
---|---|
503 | Authorization Failure - API key is invalid |
503 | Threshold Failure - Generated AI message is below user threshold |