Using the AI Agent in ONLYOFFICE Desktop

The AI agent is a contextual assistant available within ONLYOFFICE Desktop through a tab.

  • The AI agent allows users to perform common tasks such as:
  • Generate and rewrite the text. Create content from scratch or enhance existing text, all without switching between apps — everything is done directly within the Desktop app. Generate summaries, expand ideas, rephrase sentences, or adapt tone and style simply by describing what you need in natural language.
  • Format your documents smarter. Apply formatting without searching through menus with an AI agent. You do not need to search for where a certain button or function is located. Just type in your request, and the editor will instantly update the content.
  • Analyze and visualize data. Aggregate, sort, and filter information within your spreadsheets, and generate visual representations from selected ranges or entire sheets. Create data-driven diagrams and images for your slides based on simple descriptions, all integrated into your workflow.

The AI agent keeps your conversation history, allowing you to refine results step by step or continue complex requests.

Accessing the AI agent tab

  1. Launch ONLYOFFICE Desktop.
  2. In the left panel, click the AI agent tab. The first time you open the tab, you will see a message “Connect an AI Model to Get Started”, click the Connect an AI Model button to choose the AI Provider. The AI Agent settings panel opens.
AI Agent tabAI Agent tab

Configuring the AI Agent

The AI agent settings panel consists of three tabs:

  • Connection - allows to connect your own AI sources,
  • MCP Servers - allows to add and to configure MCP servers and to enable tools that can be invoked by language models,
  • Web Search – allows to connect an external web search engine and to leverage a combination of AI chats and real-time access to the Internet for improved outcomes.
Connection tab

Use this tab to link your own AI provider using the provider’s API key or the locally hosted model for full control over the data privacy.

  1. Click the Add provider button.
    Add AI providerAdd AI provider

    In the AI Provider dialog that appears:

    Choosee AI providerChoosee AI provider
  2. Choose a provider from the Provider drop-down list. The AI providers available so far are Anthropic, Ollama, OpenAI, TogetherAi, and OpenRouter.
  3. Type in the Name of the AI source to recognize this provider in the list.
  4. In the URL field, leave the default endpoint or specify the one required by your provider.
  5. Enter the API key obtained from your provider account.
  6. Click the Add provider button when the setup is complete.

The provider appears in the Connection tab. You can manage it later: Edit the settings or Delete the provider.

Edit AI providerEdit AI provider
MCP Servers tab

Use this tab to add and to configure MCP servers and to enable its tools that extend the AI capabilities beyond your local environment. You can add up to 100 tools. Enable or disable the available tools to meet your needs, or use the More icon action menu to enable or disable all tools at once.

MCP ServersMCP Servers

ONLYOFFICE Desktop is supplied with the desktop-editor MCP tools enabled by default. Click the desktop-editor in the Available tools field to expand the list of tools. The default tools include:

MCP Server ToolsMCP Servers Tools
  • file_content_reader – returns the content of a file in a specific format (txt, html).
  • file_opener - opens a file.
  • folder_content_reader - lists the contents of a folder.
  • form_field_analyser - analyzes a document or a form.
  • form_field_filler - fills out a document or form.
  • generate_docx - generates a text document (report, article, letter, etc.) based on a description.
  • generate_form - generates a form or document template (contract, any document for filling) based on a description.
  • generate_pptx - generates a complete presentation with a custom theme, fonts, and content.
  • recent_file_reader - lists recently used files

You can add a third-party MCP server and tools.

ONLYOFFICE assumes no responsibility for the content, privacy policies, or practices of any third-party MCP services.

In the Edit configuration dialog, enter the JSON configuration obtained from the MCP server provider and click Save.

Edit MCP ConfigurationEdit MCP Configuration
Web Search tab

Use this tab to connect an external web search engine and to expand the AI capabilities, giving it access to real-time data.

  • Use the Web Search Engine drop-down to choose a search engine. Exa is the only search engine available so far.
  • Go to Exa website to get an API key. Paste the key into the API key field and click Save.
  • Use the Reset setting button to edit the web search settings.
    Web SearchWeb Search

Using the AI chat

To be able to use the AI Agent for file and content generation to its full potential, the AI plugin needs to be installed and configured accordingly within the editors. For more information, please refer to our Artificial Intelligence guide.

Once at least one model has been added, you can start chatting. The AI agent top toolbar includes three action buttons: New chat, Settings, and Chat history.

  • To start a new chat, click the Plus icon icon at the top toolbar of the AI Agent tab. The Ask AI prompt field with action buttons appears. Use these buttons to fine-tune your prompts.
    New AI ChatNew AI Chat
  • You can attach local or recent files to your conversation. The AI response will be based on the attached file.
    AI Chat AttachmentsAI Chat Attachments
  • Enable or disable Web Search and MCP tools.
    AI Chat ToolsAI Chat Tools
    • When you use web search, the chat displays the list of retrieved sources for you to review the links.
      AI Chat ResultsAI Chat Results
    • When you use the MCP Server tools, a notice appears asking you to check the tools invoked for privacy compliance since ONLYOFFICE assumes no responsibility for data privacy compliance of the third-party tools and integrations. Check the option Always allow this tool to perform this action without asking again if you don’t want this notice to show up for this tool again.
      AI Chat NoticeAI Chat Notice
  • Choose a model to be used in this conversation.
    AI Chat ModelsAI Chat Models
  • Click the arrow icon to submit the prompt.

The output appears in chat, you can see the MCP tools used, if any, and the AI chat suggestions. You can copy the conversation results to the clipboard or save it to your computer as a docx file.

AI Chat OutputAI Chat Output

Chat history

The AI agent keeps the history of your AI conversations so you can review, save, or remove them.

  • Click the Chat history icon Chat history icon in the upper left corner of the AI Chat.
    AI Chat HistoryAI Chat History
  • Use the Search field to find previous conversations by name.
  • Click More icon to open the context menu with the following options:
    • Save – to save the conversation as a docx file to your computer.
    • Rename – to change the conversation title,
    • Delete – to remove the chat from history permanently.

When you select a conversation, the full content appears on the right, and you can continue interacting with the AI from where you left off.

Use the arrow Arrow icon to close the Chat history panel.

Download free desktop apps for Windows, Linux, macOS

Article with the tag:
Browse all tags