AI Agents
AI agents can interact with Tiptap documents on the server to accomplish complex tasks. The Server AI Toolkit contains built-in tools that allow your AI to read and edit documents server-side.
With the Server AI Toolkit, you can build agents with server-side document editing capabilities:
AI agent chatbot
More →Build a conversational AI agent that can read and edit documents through chat using the Server AI Toolkit API.
Schema awareness
More →Allow your AI model to understand custom nodes, marks, and attributes in your Tiptap documents.
Comments
More →Give your AI agents the ability to read, write and edit comments in your document, fully server-side.
Available tools
The Server AI Toolkit provides tool definitions that your AI agent can call to interact with documents on the server. These tools enable reading content and making edits efficiently.
When you call the Server AI Toolkit API endpoints, the AI model can generate tool calls that are then executed using the /v3/ai/toolkit/execute-tool endpoint. This allows the AI to read, edit, and manipulate documents based on user requests.
AI Agents vs. Workflows
In AI agents, the AI model can choose from a set of tools to perform a task. Workflows, on the other hand, only allow the AI model to perform a single action like, for example, generating edits or re-writing the document.
In general, workflows are simpler and faster to implement than AI agent tools. However, AI agents are more flexible and can be used to perform more complex tasks.