AI agent (beta)
Starting from version 2.4.2, the AI plugin brings the new AI agent functionality.
The AI inline agent is a contextual assistant integrated into ONLYOFFICE editors. It is accessed via a floating panel and is currently available as a beta feature of the AI plugin.
The AI agent:
- Provides natural language interaction for executing common editing tasks without navigating menus.
- Includes a collection of simple predefined functions adapted to common tasks for each editor.
- Maintains conversation history to support iterative refinement and multi-step requests.
What the AI agent can do
- Text generation and rewriting. Create new text or enhance existing content directly in the editor. Generate summaries, expand ideas, rephrase sentences, or adjust tone and style with natural language commands.
- Smart formatting. Apply formatting without searching through menus. Request formatting changes, and the editor updates the document automatically.
- Data analysis and visualization. Aggregate, sort, and filter data in spreadsheets, and generate visual representations from selected ranges or entire sheets. Create diagrams and slide images based on simple text descriptions.
How to install the AI agent
To install the AI agent, follow the steps below:
-
Go to the Plugins tab and open Plugin Manager. Find the AI plugin and click Install or Update if the plugin is already installed.
-
Click the Background Plugins button and activate the AI switch.
-
Find a new AI tab in the top toolbar of ONLYOFFICE editors.
-
Click Settings to open the configuration window.
-
Select Edit AI models and click
.
-
Choose an AI provider from the list or add new AI models by entering your API keys.
-
In the row of icons, select what the model is used for: Text, Images, Embeddings, Audio Processing, Content Moderation, Realtime Tasks, Coding Help, Visual Analysis.
-
Click OK to save your settings and complete the connection process.
-
Go back to the Settings and set the model for the Chatbot.
The AI agent is now installed and ready to start.
How to use the AI agent
To invoke the AI agent:
- Press
Ctrl + /
in any editor to open the AI agent input. - Type your request and press
Enter
to receive an immediate response.
The editor supports request history, so you can continue the conversation, giving instructions step by step.
To reset the history, press Ctrl + Alt + /
.
To disable the agent, use Esc
.