Skip to main content
POST
AI Instruction

Overview

API endpoint for sending specific instructions to your AI. This endpoint allows you to interact with different AI models and execute specific commands.

Authorization

x-api-key
string
required
Your Personal AI API key

Headers

Content-Type
string
required
Must be set to application/json

Query Parameters

cmd
string
required
  • chatgpt
  • search
Example
Example

Body

Text
string
required
Text instruction to send to your AI
Example
Context
string
Additional context for the instruction
Example
DomainName
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName
Example
UserName
string
Name of the user sending the request
Example
SessionId
string
Session identifier for maintaining conversation context
Example
SourceName
string
Source application name
Example
is_message
boolean
Flag to indicate if the instruction should be treated as a message
Example

Example Request

Example

Example Response

ai_message
string
The AI’s response to the instruction
ai_score
number
Confidence score of the AI’s response
ai_name
string
The name given to the AI persona
SessionId
string
The Id of the conversation that was passed or automatically generated
source_app
string
The source from which the request was initiated from as specified in the original API request
Example Success Response

Example cURL

cURL

Error Codes

Example Error Response