TinyMCE AI Conversations
Conversations allow you to exchange multiple messages with AI that maintains them in its context. Conversations can be extended by external context sources like websites or files, and have the ability to refer to editor content and suggest modifications.
Key Features
Upload PDFs, Word docs, and images for the AI to read and understand. Ask questions about specific sections and get intelligent answers. The AI extracts text while preserving structure from PDFs, maintains formatting context from Word documents, parses web content from HTML files, and processes images with OCR and object recognition.
Each conversation builds on previous messages, so the AI keeps track of your entire discussion and any files you have shared. You can mix documents, images, web links, and text in one conversation, and the AI connects information across all formats. Enable web search for real-time research while keeping your conversation context.
Example: Product Launch Workflow
-
Upload product spec → "What are the key features for marketing?"
-
Add competitor analysis → "How do we compare to competitors?"
-
Reference blog post → "Write a press release using this blog post and our competitive advantages"
-
Include brand guidelines → "Match our brand voice and key messaging"
The AI remembers everything you have shared and builds on it throughout your conversation.
Advanced Features
Web Search
Enable real-time web search to access current information during conversations. The AI searches the web for relevant content, processes and analyzes the results, and integrates findings into responses while maintaining conversation context. Configure via the webSearch capability in API requests.
API Reference
For complete API documentation including endpoints, parameters, and response schemas, see the REST API documentation.
API Examples
Create a Conversation
POST /v1/conversations
Content-Type: application/json
Authorization: Bearer <your-token>
{
"id": "my-conversation-123",
"title": "Document Analysis Session",
"group": "research"
}
Upload a Document
Before you can reference documents in conversations, you need to upload them first:
POST /v1/conversations/my-conversation-123/documents
Content-Type: multipart/form-data
Authorization: Bearer <your-token>
file: [your-document.pdf]
Response:
{
"id": "doc-123"
}
You can see how to upload other resources, including web resources and files using REST API documentation.
Send a Message with Context
POST /v1/conversations/my-conversation-123/messages
Content-Type: application/json
Authorization: Bearer <your-token>
{
"prompt": "Analyze the attached document and provide a summary of the key points",
"model": "agent-1",
"content": [
{
"type": "document",
"id": "doc-123"
}
],
"capabilities": {
"webSearch": {},
"reasoning": {}
}
}
Send a Message with Multiple Context Types
POST /v1/conversations/my-conversation-123/messages
Content-Type: application/json
Authorization: Bearer <your-token>
{
"prompt": "Compare the attached document with the information from the web resource",
"model": "agent-1",
"content": [
{
"type": "document",
"id": "doc-123"
},
{
"type": "web-resource",
"id": "web-123"
}
],
"capabilities": {
"webSearch": {}
}
}
Streaming Responses
Conversations use Server-Sent Events (SSE) for real-time streaming responses. See the Streaming Responses guide for detailed implementation information and code examples.
Related Features
-
AI Chat Plugin – For plugin integration and UI configuration.
-
Reviews API – Content quality analysis and improvement suggestions.
-
Actions API – Content transformation and batch processing.
-
AI Models – Choosing the right AI model for your conversations.
-
Streaming Responses – Implementing real-time conversation features.
-
API Overview – Overview of all API features.