> For the complete documentation index, see [llms.txt](https://docs.opsmx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opsmx.com/getting-started/release-notes/configuration-changes/config-changes-for-v2026.06.00/config-changes-to-add-opsmx-assistant-nli-in-ssd.md). Agents can also search and read this documentation through its [MCP server](https://docs.opsmx.com/~gitbook/mcp).

# Config Changes to Add OpsMx Assistant (NLI) in SSD

OpsMx Assistant is the Natural Language Interface (NLI) for SSD. Once enabled, an **OpsMx Assistant** button appears at the top-right corner of the SSD homepage, so users can query SSD in plain language and view their chat history.

This page covers:

1. Deploying the `opsmx-assistant` service
2. Integrating SSD with AI Guardian (AIG)
3. Updating the SSD UI configuration

### Deploying the OpsMx Assistant Service

Add `opsmx-assistant` as a service in the namespace where NLI is deployed.

### Integrating SSD with AI Guardian (AIG)&#x20;

To enable integration between SSD and AI Guardian (AIG), follow the steps below:

### 1. Install AIG Services

Install AIG in the target cluster using the official Helm chart:

<https://github.com/OpsMx/AI-Guardian-HelmChart>

### 2. Integrate SSD with AI Guardian (AIG)

**a. Add Secret in SSD**

Create the following Kubernetes secret in the SSD namespace to store the AIG API key:

{% code overflow="wrap" %}

```
apiVersion: v1
kind: Secret
metadata:
  name: aig-api-key
  namespace: april-dev
type: Opaque
data:
  TenantApiKey: XXXXXXXXXXXXXX
```

{% endcode %}

\
**b. Mount the Secret into supplychain api deployment**

Edit the `supplychain-api` deployment and add the following under `spec.template.spec.containers[].env`:

{% code overflow="wrap" %}

```
- name: TenantApiKey
          valueFrom:
            secretKeyRef:
              key: TenantApiKey
              name: aig-api-key
```

{% endcode %}

\
**c. Update Supply Chain API Configuration**

Modify the existing `supplychain-api` secret and add the AIG service endpoint:

{% code overflow="wrap" %}

```
aigAddress: http://ai-guardian-api.<AIG-NAMESPACE NAME>.svc.cluster.local:8080
```

{% endcode %}

### Update the SSD UI Configuration Changes:

1. Add these lines in the **ssd-ui-nginxconf** before /ui

{% code overflow="wrap" %}

```
# Opsmx-assistant — MUST be before /ui
        location ^~ /ui/assistant/ {
          proxy_pass http://opsmx-assistant:8080/;
          proxy_http_version 1.1;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          add_header Access-Control-Allow-Origin $http_origin always;
          add_header Access-Control-Allow-Credentials true always;
          add_header Access-Control-Allow-Methods 'GET, OPTIONS' always;
          add_header Access-Control-Allow-Headers 'Content-Type' always;
        }
```

{% endcode %}

2. Add these lines in **app-config**

{% code overflow="wrap" %}

```
"enableNLI": true,
    "CHAT_NATURAL_LANGUAGE": "ssdservice/v1/nli",
    "GET_NLI_CHAT_HISTORY": "ssdservice/v1/nli/chats/user",
    "GET_NLI_CHAT_MESSAGES": "ssdservice/v1/nli/chat/",
    "chatMfeUrl": "/ui/assistant",
    "showChatHistory": "true"
```

{% endcode %}

This setup enables secure communication between SSD and AI Guardian services within the cluster.
