# Enabling Orin

Before users can use Apteco's AI tool Orin on-premises, a system administrator must complete the following installation and configuration steps:

1. [Installing Chat API](<#installing-chat-api>)
2. [Migrating the Orbit API configuration](<#migrating-the-orbit-api-configuration>)
3. [Configuring Chat API](<#configuring-chat-api>)
4. [Enabling web sockets in the API](<#enabling-web-sockets-in-the-api>)
5. [Repairing the Orbit UI](<#repairing-the-orbit-ui>)
6. [Turning on Orin](<#turning-on-orin>)

Once Orin is running, you can also [add policy links to the Orin options menu](<#adding-policy-links-to-the-orin-options-menu>).

## Installing Chat API

Before you can access Orin, you must use the Orbit Updater to download the Chat API functionality.

To install the Chat API:

1. Run `OrbitUpdaterConfigurator.exe` as Administrator from:

   ```text
   C:\Program Files (x86)\Apteco\FastStats Orbit Updater\
   ```
2. Select the **Chat API** tab.

   [![Chat API tab in Orbit Updater Configurator](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Enabling_orin.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Enabling_orin.png>)
3. Copy the **Base URL** from the **API** tab and paste it into the **Base URL** field on the **Chat API** tab.
4. Change the **Base URL** in the **Chat API** tab to refer to `ChatAPI` instead of `OrbitAPI`.

   [![Base URL field updated on Chat API tab](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Base_URL.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Base_URL.png>)

   > **Note**
   >
   > For a multi-API system, you also need to:
   >
   > - Change the virtual path to `{your_system_folder}/ChatApi`
   > - Change the application pool name from `AspNetCoreChat` to `AspNetCore{your_system_name}Chat` (no spaces)
5. Restart the **FastStats Orbit Updater** service.

You can monitor the updater progress in **Applications and Services Logs** \> **FastStatsOrbitUpdaterLog** in Windows Event Viewer.

## Migrating the Orbit API configuration

### Before you begin

You need:

- Access to your FastStats configuration database
- A connection string for a user with table creation rights (only if the `OrbitConfigurations` table doesn't exist)

### Migrate the configuration

To migrate your Orbit API configuration:

1. In the Orbit Updater, select the **API** tab.
2. Select **Open API Configurator**.
3. In the **FastStats config database** tab, enter your connection string in the **Connection string** field. Your configuration database is typically named `FS_Config`, but may have a different name.
4. Select **Test** to verify the connection.

   [![Test connection button in FastStats config database tab](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/test-connection.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/test-connection.png>)
5. Select **Store Orbit Configuration in Database**. This enables the **Configuration Name** field (default value: `Orbit`) and displays Chat API options.

   [![Store Orbit Configuration in Database option selected](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/store-orbit-configuration.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/store-orbit-configuration.png>)

   > **Note**
   >
   > Only change the **Configuration Name** value if you have multiple Orbit installations using the same configuration database.
6. Select **File** \> **Save**.

   If the `OrbitConfigurations` table doesn't exist, the tool attempts to create it automatically. If your user lacks the required permissions, enter a connection string for a user with table creation rights when prompted. Select **Edit** to modify connection string values.

   [![Connection string editor dialog](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/connection-string.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/connection-string.png>)
7. Close the API configuration tool.

## Configuring Chat API

[![Chat API Configurator window](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/chat-api-configurator.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/chat-api-configurator.png>)

To configure the Chat API:

1. In the Orbit Updater, select the **Chat API** tab.
2. Select **Open Chat API Configurator**.
3. In the **FastStats config database** tab, enter the same connection string you used in the Orbit API configuration tool.
4. Select **Test** to verify the connection.
5. Confirm you've selected **Store Orbit Configuration in Database**, and that **Configuration Name** matches the value from the Orbit API configuration tool.
6. Select **File** \> **Save**. The settings save immediately because the database is already configured.
7. Close the tool.

For future configuration changes, use the Orbit API Configuration tool unless you are moving the FastStats configuration database.

### Update Chat API options

To configure the Chat API URL:

1. Open the **Orbit API Configuration** tool.
2. In **Chat API options**, verify the **URL** field contains the correct Orbit API URL. This is typically the same URL configured in the **API** tab of the Orbit Updater (for example: `https://[your-server]/OrbitAPI`).
3. Select **File** \> **Save**.
4. Restart the Chat API process to apply the changes: in IIS Manager, stop and start the App Pool associated with the Chat API.

## Enabling web sockets in the API

In the **Orbit API Configurator**, confirm you've ticked the **Enable Web Sockets** box under **Orbit options**.

[![Enable Web Sockets checkbox in Orbit API Configurator](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Enable_web_sockets.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Enable_web_sockets.png>)

If it's not ticked, tick it, then save and close the API Configurator.

## Repairing the Orbit UI

You must repair the Orbit UI so that the `config.json` file within the assets folders has the correct `chatApiURL` defined.

In the following example, the file at `C:\inetpub\wwwroot\Orbit\en\assets\config.json` is still referring to `localhost`:

[![config.json file showing chatApiURL referencing localhost](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Configjson.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Configjson.png>)

Completing a **Repair** on the UI populates `chatApiURL` with the required value.

To repair the Orbit UI:

1. Run `UpdaterConfigurator.exe` from within:

   ```text
   C:\Program Files (x86)\Apteco\FastStats Orbit Updater\
   ```
2. Select the **Summary** tab.
3. Select **Repair** next to the **Orbit UI** entry.

   [![Summary tab showing Repair button for Orbit UI](<https://help.apteco.com/assets/images/admin/Repair.png>)](<https://help.apteco.com/assets/images/admin/Repair.png>)
4. Select **Yes** when prompted.

   [![Confirmation dialog for repair](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Yes.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Yes.png>)
5. The **Repair** button changes to **Repairing...**
6. Select **OK** when the process has finished.

   [![Completion dialog after repair](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/OK.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/OK.png>)

## Turning on Orin

To make Orin available in Orbit, turn on its feature switch.

1. Log into Orbit as an **Administrator**.
2. Select the **User** icon at the top right of your screen, then select **Application Settings**.
3. In **Features**, toggle on **Orin AI Assistant**.
4. Log out and log back into Orbit. Orin now appears in the bottom left-hand corner of the Orbit UI.

   [![Orin icon in the bottom left of the Orbit UI](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Orin_icon.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/Orin_icon.png>)

## Adding policy links to the Orin options menu

You can add links, such as your organisation's AI use policy, to the Orin options menu: the three dots next to the minimise button at the top right of the Orin panel. Each link opens in a new tab. This step is optional. If you don't add any links, the menu shows only **New Chat**, **Chat History**, and **Help**.

To add policy links:

1. In the Orbit Updater, select the **API** tab, then select **Open API Configurator**. For more about the configurator, see [Orbit API Configurator](<https://help.apteco.com/en/admin/installation/orbit-installation-guide/orbit-api-configurator/index.md>).
2. Select **Orbit options**.
3. Under **Orin Policy Links**, enter a **Label** and a **Url** for each link, one link per row.

   [![The Orin Policy Links table in Orbit options, with Label and Url columns](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/orin-policy-links.png>)](<https://help.apteco.com/assets/images/admin/configuration/enabling-orin/orin-policy-links.png>)

   > **Note**
   >
   > The configurator only keeps what you type in a box once you move to another box. Select another box before you save.
4. Select **File** \> **Save**.
5. Restart the Orbit API to apply the change.

Your links appear below a divider in the Orin options menu, after **New Chat**, **Chat History**, and **Help**.

[![The Orin options menu, with two policy links below New Chat, Chat History, and Help](<https://help.apteco.com/assets/images/release-notes/orbit/2026/orin-options-menu.png>)](<https://help.apteco.com/assets/images/release-notes/orbit/2026/orin-options-menu.png>)
