Configurable AI - Configuration
Configurable AI - Configuration
Each AI action requires an AI Service Provider and the actual AI Action definition (includes the AI model used and prompt). Both required configurations are explained within this section.
Generic settings can be changed using the global AI Services settings.
AI Service Provider
The AI Service Provider dialog features two sections:
- Configuration
Provide a name, description, and specify a type, which defines the AI service you are using. Based on the selected type, different fields will be displayed. - Models
Lists the available models of the configured provider. Models are loaded once the 'Fetch Available Models' button is clicked.
To add or modify an AI Service Provider, navigate to:
- Administration
- Configurable AI
- Service Providers
- Clicking 'Add AI Service Provider' to create a new one will open the following dialog:
AI Data Provider Generic Settings Item Setting Description 1 Name Sets the name of your AI Service Provider 2 Type Type of AI Service Provider allowing to add specific configuration. Supported types are:
- Azure AI
- OpenAI Compatible
- OpenAI
3 Description Detailed description of your AI Service Provider
Azure AI
To set up an AI Service Provider using Azure AI you need to provide below configuration from your Azure resource:
Item | Setting | Description |
---|---|---|
1 | API Version | Version of the API you want to use |
2 | Resource Name | Name of the Azure resource |
3 | Deployment ID | Deployment Name |
4 | API Key | One of the two generated keys for authentication |
Details on above mentioned attributes can be found at the Azure OpenAI documentation - Quickstarts, Tutorials, API Reference | Microsoft Learn.
OpenAI Compatible
To set up an AI Service Provider using an OpenAI-compatible provider, you need to provide below configuration:
Item | Setting | Description |
---|---|---|
1 | Service Address | URL of the endpoint providing the AI Service/communication |
2 | API Key | API Secret for authentication |
OpenAI
To set up an AI Service Provider using OpenAI you only need to provide the API Key (1).
AI Actions
AI Actions are used to generate a defined outcome like a summary of a ticket, or proposals for ticket classification (Incident, Service Request).
Two types of AI Actions are available
- Interactive AI Action - Will be represented as a dedicated action in the AI Action Panel
- AI Action - Allow integration with Layout Designer, e.g., in Previews, or Wizards.
Interactive AI Action
Interactive AI Actions, represented as dedicated actions in the AI Action Panel, are created at Administration - Configurable AI - AI Actions, by clicking the 'Add Interactive AI Action' button. The dialog features 3 views:
- General
- Prompt
- Executions
General - View
The General view includes 3 sections,
- General,
- Configuration and
- Action Visibility and datamodel.
Section | Item | Setting | Description |
---|---|---|---|
General | 1 | Name | Enter a meaningful, descriptive name. |
2 | Description | Optional. Provide a helpful description. | |
Configuration | 3 | Service Provider | Select an existing AI service provider. |
4 | Model | Choose from Service Provider-specific models to process the prompt (e.g., GPT-4). | |
5 | Maximum Tokens | Set the maximum number of tokens for the model’s output. | |
6 | Temperature | Controls response creativity. Higher values produce more creative output; lower values yield more deterministic responses. Range is from 0.0 - 2.0 with a default of 1.0 (in case no value is provided). |
|
Action Visibility and datamodel | 7 | Select base datadefinition | The required common datadefinition of all configuration items, that are eligible for executing this action. Dynamically loaded data inside the prompt will be executed for this datadefinition. |
8 | Select eligible types | Set the configuration items, for which this action can be executed. |
If an AI Action should be executable for Changes and Incidents, select SPSActivityClassBase as the base datadefinition, and select SPSActivityTypeIncident, SPSActivityTypeChangeRequest as eligible types.
Prompt - View
Within the prompt section make sure to describe the intended function as clearly as possible.
Dynamic Data
Object-related data is loaded during execution and can be directly pulled from the base data definition or from any given data definition.
To retrieve a single field using a base data definition:
{{ColumnExpression}}
To load general data without a base data definition, use:
{{ClassName, "ColumnExpression1 as columnName1, ColumnExpression2 as columnName2", "FilterExpression"}}
Column names are mandatory and are used as headers in the prompt.
Executions - View
The Executions view becomes visible once the Interactive AI Action is saved for the first time.
It shows:
- Execution history
- Details of the execution, such as
- Execution context
- Output tokens
- Any encountered error messages
AI Action
AI Actions, used in e.g. Previews or Wizards, are created at Administration - Configurable AI - AI Actions, by clicking the 'Add AI Action' button. The dialog features 3 views:
- General
- Prompt
- Executions
Creating them follows the same principle as for Interactive AI actions, therefore only specific settings are mentioned.
General - View
Instead of the Visibility of AI Action and datamodel section, there is a datamodel section, in which only a base datadefinition for queries can be selected.
Filtering for types is not necessary, as the action will not be displayed in the UI.
Prompt - View
Within the prompt section make sure to describe the intended function as clearly as possible.
If the option 'Structured Response' (2) is selected, the use of variables is enabled. Specified variables (3) will show up at the web service as input/output parameters.
Input parameters (1) can be used with the syntax
@VariableName
The 'Description' option (1) of output parameters allows you to further specify which exact part of the overall output is added.
Executions - View
The Executions provides the same data as for Interactive AI Actions.
AI Services
Access to the general configuration is available using the 'Configure AI Services' action in the Administration global system settings.
We do not recommend changing the settings without consulting Matrix42.