> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-migrated-bigcommerce-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ImmyBot - How do I link my account?

# Overview

To authenticate with ImmyBot, you need:

1. **Microsoft Entra Tenant ID** - The Azure tenant ID that owns your ImmyBot app registration
2. **ImmyBot Instance Subdomain** - The first segment of your ImmyBot instance URL
3. **Client ID** - The Application client ID from your Microsoft Entra app registration
4. **Client Secret** - A client secret value from your Microsoft Entra app registration

### Prerequisites:

* Access to your ImmyBot tenant as an administrator.
* Permission to create or manage Microsoft Entra app registrations.
* Permission to add a Person and User in ImmyBot.

### Instructions:

#### Step 1: Create or find your Microsoft Entra app registration

1. In Microsoft Entra, go to **App registrations**.
2. Click **New registration**, or open an existing app registration for ImmyBot API access.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/01-azure-app-registrations-new-registration.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=125003170dada8d66010a9908690e603" width="1354" height="366" data-path="api-integrations/immybot/01-azure-app-registrations-new-registration.png" />

3. From the app registration overview, copy the **Directory (tenant) ID** and **Application (client) ID**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/02-azure-app-registration-overview.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=4b3c50f936113a7deaa0c1b2e6bc9032" width="2514" height="696" data-path="api-integrations/immybot/02-azure-app-registration-overview.png" />

#### Step 2: Create a client secret

1. In the app registration, open **Certificates & secrets**.
2. Create a new client secret.
3. Copy the secret **Value**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/03-azure-client-secret.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=1892cb0278d6b85c018be7353a59d072" width="1720" height="360" data-path="api-integrations/immybot/03-azure-client-secret.png" />

<Note>
  Store the Client Secret securely. Azure only shows the client secret value once.
</Note>

#### Step 3: Copy the Enterprise Application Object ID

1. From the app registration overview, click the **Managed application in local directory** link.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/04-azure-managed-application-link.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=99a4b05dad159344dd4768ca6c1737de" width="596" height="248" data-path="api-integrations/immybot/04-azure-managed-application-link.png" />

2. On the Enterprise Application properties page, copy the **Object ID**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/05-azure-enterprise-application-object-id.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=5aa523462dc2fdbdab70d6b37481b544" width="752" height="352" data-path="api-integrations/immybot/05-azure-enterprise-application-object-id.png" />

<Warning>
  Use the Enterprise Application Object ID for the ImmyBot Azure Object ID field, not the App Registration Object ID.
</Warning>

#### Step 4: Add the Azure service principal as a Person in ImmyBot

1. In ImmyBot, expand **Show more** in the sidebar and open **People**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/06-immybot-show-more-people.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=89b9330335807a6891449a7537d42ba8" width="444" height="1736" data-path="api-integrations/immybot/06-immybot-show-more-people.png" />

2. Click **New**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/07-immybot-people-new.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=3cf10eaa3481af73d2a812b5278db8c3" width="1198" height="612" data-path="api-integrations/immybot/07-immybot-people-new.png" />

3. Create a Person for the integration. Select the owner tenant, enter a recognizable name and email, and paste the Enterprise Application Object ID into **Azure Object ID**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/08-immybot-new-person-form.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=68301cd0c29970c0dd66078fc8144540" width="1408" height="716" data-path="api-integrations/immybot/08-immybot-new-person-form.png" />

#### Step 5: Create a User and assign an API access role in ImmyBot

1. In ImmyBot, expand **Show more** and open **Users & Roles**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/09-immybot-show-more-users-roles.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=99f47da24094361c98de0e93a439e1c0" width="438" height="1738" data-path="api-integrations/immybot/09-immybot-show-more-users-roles.png" />

2. Click **Add New User**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/10-immybot-users-roles-add-new-user.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=87a5548ad37e15794454c847130d8eac" width="1398" height="448" data-path="api-integrations/immybot/10-immybot-users-roles-add-new-user.png" />

3. Select the Person you created, then click **Create Users**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/11-immybot-create-users-from-existing-people.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=29ce9a8fa2fc977711c01a8eecad6067" width="422" height="1726" data-path="api-integrations/immybot/11-immybot-create-users-from-existing-people.png" />

4. Assign an administrator role that can access the ImmyBot API, such as **System Administrator (Legacy)** or the applicable administrator role for your tenant.
5. Set the assignment to **Allow**, then click **Assign**.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/12-immybot-direct-role-assignment.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=840537bcca96a8af267bb981179e7171" width="1400" height="1236" data-path="api-integrations/immybot/12-immybot-direct-role-assignment.png" />

#### Step 6: Find your ImmyBot instance subdomain

1. Open your ImmyBot instance URL.
2. Copy the first segment before `.immy.bot`.

For example, if your ImmyBot URL is `https://acme.immy.bot`, enter `acme`.

#### Step 7: Enter credentials in the Connect UI

Once you have your ImmyBot credentials:

1. Open the form where you need to authenticate with ImmyBot.
2. Enter your **Microsoft Entra Tenant ID**, **ImmyBot Instance Subdomain**, **Client ID**, and **Client Secret** in their respective fields.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/0e1fmpkak1P9I_Ew/api-integrations/immybot/13-nango-immybot-connection-form.png?fit=max&auto=format&n=0e1fmpkak1P9I_Ew&q=85&s=e37c437928bd503fbe5b59798ea9cdb2" style={{maxWidth: "450px" }} width="498" height="699" data-path="api-integrations/immybot/13-nango-immybot-connection-form.png" />

You are now connected to ImmyBot.
