M42 Neo Writing Assistance Admin Manual
M42 Neo Writing Assistance Admin Manual
Introduction
Neo Writing Assistance helps support agents communicate more efficiently with end users. It is a generative AI feature in Matrix42 Pro Service Management, powered by large language models, that writes and improves email text. Agents can:
- Generate contextual responses easily, such as first responses or concluding emails for communicating resolution
- Auto-correct typing errors from selected text
Administrators can define prompt instructions for each of these use cases, allowing them to be used in specific contexts, keeping the audience and business needs in mind.
This article describes how administrators set up and configure Neo Writing Assistance in Matrix42 Pro Service Management 26.2, which uses M42 AI Core as its default AI provider. The provider sections also cover the provider options of earlier versions.
Please find instructions for older ESM versions in the Neo AI archive.
Prerequisites
Users can try Neo Writing Assistance during a 90-day trial. To keep using the feature after the trial ends, a Matrix42 Neo license is required. The usage section of the settings shows how many responses were generated this month.
The default maximum length of a single response depends on the provider. With M42 AI Core, it is 4096 tokens (ai.provider.m42genai.generation.response.size). With OpenAI, Azure OpenAI and the legacy Matrix42 GenAI provider, it is 1000 tokens. The AI model processes text in chunks of words, parts of words or characters, called tokens. For example, "The quick brown fox" is 4 tokens.
To activate the trial use of the feature, please go to ESM administration, go to Maintenance → System settings → Neo → Writing Assistance, and press the Start trial option. The option appears only when no license is installed and the trial has not started. In the trial dialog, select Accept.
The 90-day trial comes with out-of-the-box readiness for the M42-provided large language model that powers Neo capabilities, so users can start using the feature immediately. Supported options for the generative AI are listed below.
Supported Generative AI providers
To start configuring Neo Writing Assistance, you will need access to a large language model hosted by supported Generative AI providers. Please choose from the options below.

Technical requirements for using Neo Writing Assistance
HTTPS traffic in port 443 must be allowed for ESM using Neo Writing Assistance to connect to different Generative AI providers.
Neo Writing Assistance settings
This is an introduction to the Neo Writing Assistance settings, which you can utilize to customize the behavior of Neo Writing Assistance.
To find Neo Writing Assistance settings, go to ESM administration → Neo AI Settings → Email assistance
To find Neo Writing Assistance platform settings, go to ESM administration → Maintenance → System settings → Edit Platform settings.
Step 1 - Overview
In the settings, you will first see the following information:
Status:
The Status section shows whether Matrix42 GenAI (legacy) is available, with a status light and a status text. The status light and text are shown only for Matrix42 GenAI (legacy).
Usage:
The usage section tells you additional information about the usage of the feature
- You can see whether you are using the trial version or a license for Neo Writing Assistance
- Days remaining on the trial period.
- Number of generated responses with Writing assistance this month

Step 2 - Generative AI provider configuration
In order to make Neo Writing Assistance available to users, a connection to the generative AI provider that powers the feature needs to be configured. In 26.2, administrators set up the provider connection in AI Core. In Matrix42 Pro Service Management, administrators can view and copy the provider settings and switch the provider. To check the connection with M42 AI Core, select Test your M42 AI Core connection. With the other providers, select Test Connection.

After selecting your Generative AI provider, please follow the provider-specific instructions below.
Provider connection configuration with Matrix42 GenAI (legacy)
Matrix42 manages the setup of the Matrix42 GenAI (legacy) service and Neo Writing Assistance for you so that you can focus on using the feature.
Provider connection configuration with OpenAI (bring your own)
You can connect your existing OpenAI account to be used with Neo Writing Assistance.
Please note that when connecting your existing OpenAI account to Neo Writing Assistance, you are responsible for managing your account and related costs in the OpenAI service. Please check the current pricing and details directly from OpenAI: https://openai.com/api/
You are also responsible for securely storing your API key after placing it in the settings of Neo Writing Assistance. After it has been set, the API key cannot be seen in the ESM platform. If you lose your API key and need to re-enter it in ESM for any reason, you need to generate a new API key in the OpenAI platform.
For full guidance on generating the API key in your OpenAI account, please refer to the OpenAI documentation: https://platform.openai.com/docs/quickstart / https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key You will not need anything else from the OpenAI platform, except the API key unless you want to use other than default models (listed below)
Before you are able to configure Neo Writing Assistance with Azure OpenAI, you will need to the following:
- OpenAI account
- OpenAI API password
| Setting | Default value | Additional information |
|---|---|---|
| AI provider completion API URL: | https://api.openai.com/v1/completions | Used for Correct and Complete features |
| AI provider generation API URL: | https://api.openai.com/v1/chat/completions | Used for Generate feature |
| AI provider health check API: | Not supported | Used for showing the status of Matrix42 GenAI, not supported with OpenAI |
| AI provider API password: | Create in OpenAI platform | API key to allow access, track usage and manage costs. |
| Allow language selection for AI features | Enabled | With Matrix42 GenAI (legacy), the languages are limited to the list in efecteGenAi.availableLanguages (default: en, fi, sv, de). |
Note: The default generation model for OpenAI is gpt-4o-mini. With M42 AI Core, the model is maintained in AI Core. With the earlier OpenAI option, the model is set in the provider settings of that earlier version.
Provider connection configuration with Azure OpenAI
To start using Neo Writing Assistance with Azure OpenAI, you will need to set up the Azure OpenAI services following the Azure OpenAI guide: https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
Before you can configure Neo Writing Assistance with Azure OpenAI, you will need to have the following:
- Access to Azure OpenAI services
- Azure OpenAI service running on your selected region
- Azure OpenAI deployments for Text generation and Text completion using your preferred GPT model or a custom model
- API URLs for Completion and Chat Completion API pointing to your deployed models (see Constructing API URLs below)
- API keys to gain access to your deployed models
| Setting | Example | Additional information |
|---|---|---|
| AI provider completion API URL: | https://yourtestenv.openai.azure.com/openai/deployments/gpt-instruct/completions?api-version=2023-07-01-preview | Used for Correct and Complete features |
| AI provider generation API URL: | https://yourtestenv.openai.azure.com/openai/deployments/gpt-instruct/chat/completions?api-version=2023-07-01-preview | Used for Generate feature |
| AI provider health check API: | Not supported | Used for showing the status of Matrix42 GenAI, not supported with Azure OpenAI |
| AI provider API password: | Create in OpenAI platform | API key to allow access, track usage and manage costs. |
| Allow language selection for AI features | With Matrix42 GenAI (legacy), the languages are limited to the list in efecteGenAi.availableLanguages (default: en, fi, sv, de). |
Note: The default generation model for Azure OpenAI is gpt-4o-mini. With the earlier Azure OpenAI option, the model names are set in the provider settings of that earlier version.
Constructing API URLs
After deploying your OpenAI service and model, you can construct API links as follows:
Text completion API:
https://<OPENAI_DEPLOYMENT_NAME>.openai.azure.com/openai/deployments/<COMPLETION_MODEL_DEPLOYMENT_NAME>/completions?api-version=<API_VERSION_NAME>
Text generation API:
https://<OPENAI_DEPLOYMENT_NAME>.openai.azure.com/openai/deployments/<GENERATION_MODEL_DEPLOYMENT_NAME>/chat/completions?api-version=<API_VERSION_NAME>
Additional steps such as budget alerts, enhanced network security, and identity management might be necessary for a production setup. Please refer to the Microsoft Azure documentation for best practices for managing Azure deployments. Please note that you are responsible for any Azure OpenAI costs incurred using Neo Writing Assistance. Neo Writing Assistance contacts the Azure OpenAI service only when the agent uses the feature to generate, correct, or complete messages.
We recommend frequently consulting the official Microsoft Azure documentation, as it is the most reliable and up-to-date source of information on how Azure OpenAI services work.
You can read more about API versioning here: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference
To modify the size of the context window in tokens, use the Platform setting:
- Matrix42 GenAI:
efecteGenAi.model.context.size - OpenAI and Azure OpenAI:
ai.provider.openai.model.context.size(default 16385). M42 AI Core:ai.provider.m42genai.model.context.size(default 128000).
To modify the size of the response window in tokens, use the Platform setting:
- Matrix42 GenAI:
ai.provider.genai.generation.response.size - OpenAI:
ai.provider.openai.generation.response.size - Azure:
ai.provider.azure.generation.response.size
How writing actions use prompts and context
Administrators tailor each writing action with an action prompt and up to 15 context attributes. Each writing action has one of two modes. Text creation generates new text for the data card. Text improvement works on text that the agent has selected, and it is available only when the agent has selected text.
Pro ESM includes the values of the selected context attributes when it asks the AI model to write the text.
The context setting decides whether the action also uses predefined data sources. Writing actions can use the data card context. With M42 AI Core, they can also use predefined data sources. The AI agent context is not available for writing actions, so Pro ESM does not save a writing action that uses it.
A writing action combines the action prompt with two background instructions: the writing assistant prompt (ai.writingAssistant.prompt) and the global AI system prompt (ai.system.prompt). With the data card context, Pro ESM sends both background instructions in a system message, followed by the user context and the output language. The action prompt and the context values go in a user message.
With the data card and predefined data sources context, Pro ESM sends the action prompt and the context values in one user message, and the global AI system prompt is not sent.
For text improvement with the data card context, Pro ESM adds the selected text after the action prompt. To start the selected text on a new line, end the action prompt with a blank line.
Action prompts can contain up to 4,000 characters. The limit is set by ai.max.prompt.length and is checked in the action configuration dialog.
Setting names and availability can change between versions, so check them in your version before you change a value.
Step 3 - Customizing the Behavior
Table of Contents