Conversations Overview
Overview of the Conversations API endpoints
The Conversations API allows you to create and manage AI conversations. You can create general or persona conversations, continue existing conversations, and manage conversation metadata.
Available Endpoints
Creating Conversations
Create a General Conversation
Create a new general conversation with a specified AI system and model.
Basic Request Format:
Create a Persona Conversation
Create a new conversation with a specific persona, which has predefined characteristics and behavior.
Basic Request Format:
When creating a conversation, store the conversationId
from the response.
You’ll need this ID for continuing the conversation and managing its metadata
in subsequent API calls.
Continuing Conversations
Continue Chat (Non-streaming)
Continue an existing conversation and get the complete response in a single API call.
Continue Chat (HTTP/2 Streaming)
Continue an existing conversation and stream the response using HTTP/2 protocol.
Basic Request Format:
Continue Chat (SSE Streaming)
Continue an existing conversation and stream the response using Server-Sent Events (SSE) protocol.
Basic Request Format:
Retrieving Conversations
Get All Conversations
Retrieve all conversations for the organization.
Get User Conversations
Retrieve all conversations for the current user.
Get All Conversations with a Persona
Retrieve all conversations with a specific persona.
Get Specific Conversation
Retrieve a specific conversation by ID.
Managing Conversations
Set Conversation as Active
Mark a conversation as active.
Set Conversation’s Metadata
Update the metadata for a conversation.
Set Conversation’s Name
Update the name of a conversation.
Set Conversation’s Status
Update the status of a conversation.