ChatGPT is an AI chatbot developed by OpenAI. It interacts in a conversational way and is capable of answering questions, admitting its mistakes, challenging incorrect premises and rejecting inappropriate requests. ChatGPT is trained to follow an instruction and provide a detailed response, making it possible to generate human-like texts, translate into different languages, write code snippets, check pieces of writing for grammar mistakes and more.
Apart from using ChatGPT as a separate service, it’s also possible to install the corresponding plugin in ONLYOFFICE Docs and get access to the full functionality of the AI chatbot within the interface of this office suite.
ONLYOFFICE Docs is an open-source office package that comes with a free community edition and enterprise versions for commercial use. The suite consists of web-based collaborative editors and viewers for text documents, spreadsheets, presentations, fillable forms and PDF/DjVu files. ONLYOFFICE Docs is fully compatible with Word, Excel and PowerPoint files due to its native support for OOXML formats (DOCX, XLSX and PPTS).
ONLYOFFICE Docs easily integrates with various file storage platforms, LMS environments and DMS solutions, including Seafile, Nextcloud, Nuxeo, Drupal, ownCloud, WordPress, Confluence, SharePoint, Alfresco, Redmine, Moodle, Chamilo, etc. Integrations work through connectors developed by the ONLYOFFICER team or its technology partners.
In this guide, we will tell you how to install and enable the ChatGPT plugin in ONLYOFFICE Docs on Ubuntu.
What you’ll learn
This guide describes how to install and configure the ChatGPT plugin in ONLYOFFICE Docs on Ubuntu using the built-in plugin manager.
What you’ll need
ONLYOFFICE Docs instance (you can install either the free Community Edition or the paid Enterprise Edition);
ChatGPT API key (you can get one on a paid basis from OpenAI).
2. Installing ONLYOFFICE Docs
To install ONLYOFFICE Docs on Ubuntu (ONLYOFFICE Document Server), you can refer to this guide and choose the most suitable installation way for you.
3. Installing the ChatGPT plugin through the built-in plugin manager
If ONLYOFFICE Docs is successfully installed on your Ubuntu machine, you can now install the ChatGPT plugin with a few clicks. To do so, you need to open a text document, a spreadsheet or a presentation and access the Plugin manager located on the top toolbar.
For this purpose, go to the Plugins tab, click Plugin Manager, browse for ChatGPT and hit the Install button. The ChatGPT icon will instantly appear on the Plugins tab.
4. Enabling the ChatGPT plugin
To start using the ChatGPT service in ONLYOFFICE Docs, you need to activate the plugin first. Click the ChatGPT icon on the Plugins tab to access its interface on the left panel. You will see a special field where you will have to insert an API key. To get access to the ChatGPT API, you need to create an account and get a key from OpenAI.
If you have an API key, you should insert it into the corresponding field and click Save. Now you are allowed to use the service without limitations.
5. Using the ChatGPT plugin in ONLYOFFICE Docs
To start interacting with the chatbot, you need to write a text inquiry in the text field and click the Submit button. The service will process your request and send you an answer. To get more precise answers from ChatGPT, you can configure the following parameters in the plugin window:
Model to choose which GPT-3 model will be used to process your requests;
Maximum length to establish the maximum number of tokens used in the chatbot’s answers;
Temperature to control the “creativity” of the text generated by the chatbot, with higher values leading to more unexpected results;
Top P to establish the proportion of the most likely tokens to consider when generating text;
Stop sequences to make the chatbot stop at a desired point.
After configuring these parameters, you can use ChatGPT in ONLYOFFICE Docs to perform different tasks, such as text generation, correcting grammar mistakes in your writing, rewriting texts, analysing statistics, finding errors in code samples, and so on.
For example, this is what you get from the chatbot if you ask it about the history of open-source software: