Dynamic Prompt Templates for AI Assistant via External API

Feature Request: Dynamic Prompt Templates for AI Assistant via External API

Hello OnlyOffice Team,

I’m a frequent user of the AI Assistant, and I’m very impressed with its capabilities. The current implementation is powerful, but for enterprise users, there’s a significant opportunity to make it even more effective by addressing a key workflow challenge.


The Problem

In many organizations, we need to standardize the tone and content of documents. This requires employees to use specific, well-defined prompts for the AI Assistant. Currently, the most common solution is to store these “prompt templates” in an external document or a shared location (like an Alfresco document library). Users then have to manually copy and paste these prompts into the AI Assistant’s chat window.

This process is inefficient, prone to user error, and does not scale well for large teams. It acts as a friction point that hinders the widespread adoption of the AI assistant for critical business functions.


The Proposed Solution

I propose a new feature for the AI Assistant plugin: the ability to dynamically load and present a menu of pre-defined prompt templates.

This could be implemented as a new configuration option in the AI assistant settings. The administrator would simply specify an API endpoint. When a user opens the AI assistant, the plugin would make a quick API call to that endpoint to retrieve a list of available templates.

The UI would then present these templates in a simple menu or a list, perhaps with a clear title and a brief description. Clicking on a template would automatically inject the full prompt into the chat window, ready for the user to execute.


The Business Case

This feature would provide immense value for OnlyOffice users, especially in corporate and institutional environments:

  • Enhanced Consistency and Professionalism: It guarantees that all documents, emails, or reports generated with the AI assistant adhere to company standards and guidelines.
  • Increased Productivity: It drastically reduces the time and effort required for users to get started with common tasks, eliminating the need to navigate between applications to find the correct prompt.
  • Seamless Integration: It positions OnlyOffice as a solution that integrates deeply with existing enterprise systems and workflows, not just as a standalone tool. This is a critical factor for companies using platforms like Alfresco, SharePoint, or others.
  • Competitive Advantage: This functionality would set OnlyOffice apart from competitors, demonstrating a commitment to solving real-world business challenges.

This small but powerful addition would transform the AI Assistant from a simple productivity tool into a foundational component of enterprise document production.

Thank you for your time and for considering this request.

Hello @Luciomagini

In this community something similar was suggested in this topic:

Please review it for the information about prompts and let me know if it is what you are looking for.

Hi Constantine;
I took a look at the topic you suggested, and yes, the general concept is similar (customizing the prompt), but in my opinion, this should be possible (even with a “local” or “remote” configuration) by accessing an external service.
This is important in an enterprise environment, where it’s important to maintain control over the system prompt to avoid the use of inappropriate terms, maintain consistent communication for company documents, and generally exercise “governance.”

Thank you for the reply. I have forwarded your provision on custom prompts and possibility to load them from an external source. I’ll let you know if any news comes up in this regard.

Your interest is much appreciated.