Skip to main content
POST
AI Message

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.

Authorization

string
required
Your Personal AI API key

Headers

string
required
Must be set to application/json

Body

string
required
Message to send to your AI for a response
Example
string
Message to add additional context to the AI for a response (Similar to Reply function)
Example
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName
Example
string
Name of the user sending the request
Example
string
Use the same sessionId to continue conversation on that session
Example
string
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.
Example
string
Name of the source app of the inbound message, required if using with triggers
Example
boolean
Flag to also add the user message (Text) to memory. Defaults to false if nothing is entered.
Example
boolean
Flag to create a copilot message for the AI. Defaults to false if nothing is entered.
Example
Example

Example Responses

string
The AI’s response message
number
Confidence score of the AI’s response
string
Session identifier for the conversation
Example Success Response
Example Error Response

Examlpe cURL

cURL

Error Codes