Edit online

Integrating Web Author with AI Positron Assistant Enterprise

The Oxygen XML Web Author server can include an Oxygen AI Positron Assistant Enterprise for Web Author plugin that provides the ability to use a specific AI engine (OpenAI, Microsoft Azure OpenAI, or Anthropic Claude) for chat purposes or to run useful predefined actions.

You can download the plugin from here: Web Author AI Positron Assistant Plugin Download. Then you can install the plugin in the Web Author or Content Fusion server.

Important:
  • If you are an integrator using the Web Author Component in your own solution, you need to contact us to discuss the plugin's availability and licensing.
  • The AI Positron Assistant Enterprise side view appears in the UI only if it is properly licensed and configured by an administrator.

The connection details to the AI engine can be configured by following the steps below.

Configuring the Oxygen AI Positron Assistant Enterprise for Web Author Plugin

  1. Go to your Administration Page.
  2. Select Plugins.
  3. Click the Configure icon next to the Oxygen AI Positron Assistant Enterprise for Web Author plugin to open the Plugin configuration dialog box.

  4. In the AI Service tab, specify the connector and configure the necessary details:

    AI Connector
    Specifies the connector type: OpenAI, Microsoft Azure OpenAI or Anthropic Claude.

    OpenAI:

    If OpenAI is chosen as the connector type, the following settings are available:

    Address
    The web address of the OpenAI service. By default: https://api.openai.com.
    API key
    The OpenAI API key necessary to work with the connector.
    Organization ID
    For users who belong to multiple organizations, they can specify which organization is used for an API request. Usage from these API requests will count as usage for the specified organization.
    Default model
    The default model is used for the chat view and for actions that do not explicitly specify a model.
    Enable text moderation
    This setting applies moderation (checks whether content complies with OpenAI's usage policies) to both the input text sent to the AI service and the response received from the AI service. It is enabled by default.
    Tip:

    By default, when executing an action using the OpenAI connector, three requests are made:

    MS Azure OpenAI:

    If Microsoft Azure OpenAI is chosen as the connector type, the following settings are available:

    Endpoint
    The web address where the connector service is located. This value can be found in the Keys & Endpoint section when examining your resource from the Azure portal. For example: https://your-company-name.openai.azure.com/.
    Deployment
    The deployment name that was chosen when the model was deployed in Microsoft Azure.
    API key
    The Microsoft Azure OpenAI Service key necessary to work with the connector.

    If you do not specify an API key, the plugin will try to use system properties to authenticate using Microsoft Entra ID.

    To use this method, you must create a service principal and assign a role to it that allows access to the Azure OpenAI service (e.g. the Cognitive Services OpenAI User role).

    The connector supports these authentication methods:
    Service principal authentication using a client secret

    For this type of authentication, create a client secret and set these system properties:

    Variable name Value
    AZURE_CLIENT_ID ID of a Microsoft Entra application.
    AZURE_TENANT_ID ID of the application's Microsoft Entra tenant.
    AZURE_CLIENT_SECRET One of the application's client secrets.
    Service principal authentication using a client certificate

    For this type of authentication, set up a certificate and set these system properties:

    Variable name Value
    AZURE_CLIENT_ID ID of a Microsoft Entra application.
    AZURE_TENANT_ID ID of the application's Microsoft Entra tenant.
    AZURE_CLIENT_CERTIFICATE_PATH

    Path of a PFX/PEM certificate file

    AZURE_CLIENT_CERTIFICATE_PASSWORD Password for a PFX/PEM certificate
    Username and password authentication

    For username and password authentication, set these system properties:

    Variable name Value
    AZURE_CLIENT_ID ID of a Microsoft Entra application.
    AZURE_TENANT_ID ID of the application's Microsoft Entra tenant.
    AZURE_USERNAME A username (usually an email address).
    AZURE_PASSWORD The associated password for the given username.
    Note: Oxygen XML Web Author should be restarted after each system property change for the changes to take effect.
    Vision-specific Settings
    Vision-specific settings are only used when images are attached in the Chat panel or sent to the AI engine with specific actions (e.g. Generate Documentation Draft).
    Vision - Endpoint
    Optional Azure AI deployment endpoint that can analyze images using Vision. This setting specifies the web address where the connector service is located. This value can be found in the Keys & Endpoint section when examining your resource from the Azure portal. For example: https://your-company-name.openai.azure.com/.
    Vision - Deployment
    Optional deployment name that was chosen when the Vision model was deployed in Microsoft Azure.
    Vision - API key
    Optional Microsoft Azure OpenAI Service for the endpoint that can analyze images using Vision.

    Anthropic Claude:

    If Anthropic Claude is chosen as the connector type, the following settings are available:

    Endpoint
    The web address where the connector service is located. By default, it is https://api.anthropic.com/.
    API key
    The Anthropic Claude API key necessary to work with the connector.
    Model
    The Anthropic Claude model to use. By default, it is claude-3-opus-20240229.
  5. Optionally, you can configure a context and additional actions in the Preferences tab:
    Context
    The context provides useful information about the user to the AI and is used in each action and chat request to create more relevant and personalized responses.
    Actions
    Load default actions
    Specifies if default actions are loaded.
    Additional actions
    You can use this option to specify a zip file that contains the additional actions configured in JSON files. Use the Upload actions button to upload the specified zip file. If a file has already been uploaded, it will be replaced with the new one. You can use the Remove actions button to remove the currently uploaded additional actions.
    Actions filter
    You can deselect any of the actions that you do not want presented in the list of available actions. Then, click the Apply button to save your changes.
  6. Click Apply.

Function Calls

Within the definition of custom actions, you can reference existing functions that are called by the AI engine to interact with the application. This gives actions more context information and generates more accurate responses from the AI.

The current available function reference values are:

  • get_current_document_plain_text_content - Retrieves all plain text (e.g. without markup) from the current document open in the editor.
  • get_current_document_marked_up_content - Retrieves all text with markup from the current document open in the editor.
  • get_content_around_caret - Retrieves size-limited content around the current cursor location within the document open in the editor.

Also, in new chat sessions, the AI has access to content around the cursor location within the document open in the editor.