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

# Configuring the Microsoft Graph Action

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

Connect Microsoft Graph to create, view, and update events and to-do lists, and send emails. See [Microsoft Graph](https://azure.microsoft.com/en-us/get-started/azure-portal) for more information.

***

## Authorizations Supported

The Platform supports basic authentication for Microsoft Graph. See [App Authorization Overview](https://koreai.mintlify.site/ai-for-service/app-settings.md#authorization-profiles) for details.

> [!NOTE]
>
> Microsoft Graph integration can only be authorized for Developer and Enterprise editions — not Trial. See [Microsoft Graph documentation](https://developer.microsoft.com/en-us/graph/graph-explorer) for account types.

| Authorization Type | Basic OAuth |
| - | - |
| Pre-authorize the Integration | Yes |
| Allow Users to Authorize the Integration | Yes |

***

## Step 1: Enable the Microsoft Graph Action

**Prerequisites:**

* Create a developer account in Microsoft Graph. See [Microsoft Graph Documentation](https://developer.microsoft.com/en-us/graph/graph-explorer).
* Copy the Client ID, Client Secret Key, Authorization URL, and Callback URL.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. In the **Available** region, select **Microsoft Graph**.

### Pre-authorize the Integration

**System Authorization**

1. Go to **App Settings** > **Integrations** > **Actions** and select **Microsoft Graph**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **OAuth**.

   ![Authorization type-OAuth](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img2.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=30140386fc61f0a632a4830b954663c2)

4. Select the **System** card and click **Authorize**.

   ![Enable the Kore.ai's preconfigured Microsoft Graph app](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img3.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=5e17c1c4b3197e0de818c907a88a3117)

5. You are redirected to `https://login.microsoftonline.com/`. Enter your credentials and click **Allow Access**.

**Custom Authorization**

1. Select **Custom** and click **Select Authorization** > **Create New**.

   ![Create new authorization](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img4.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=c326f74dcbcf0ca16211af8e3a21e775)

2. Select **OAuth v2**. See [Setting Up Authorization Using OAuth v2](https://koreai.mintlify.site/ai-for-service/app-settings/dev-tools/bot-authorization/setting-up-authorization-using-oauth-v2).

   ![Auth mechanism type](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img5.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=b813907433ebe32e6105ac57b639331e)

3. Enter the OAuth v2 credentials:

   | Field | Description |
   | - | - |
   | Call back URL | Platform callback URL |
   | Identity Provider Name | Name of your custom auth profile |
   | Client ID | Client ID from Azure Portal |
   | Client Secret Key | Client secret value from Azure portal |
   | Authorization URL | Microsoft Azure Portal authorization URL |
   | Token Request URL | Microsoft Azure Portal token request URL |
   | Scope | `email Mail.ReadWrite Mail.Send offline_access openid profile User.Read Tasks.ReadWrite Calendars.ReadWrite MailboxSettings.Read` |
   | Refresh Token URL | Microsoft Azure Portal refresh token URL |

   To register an Azure App, see [Adding the Microsoft Teams Channel](https://koreai.mintlify.site/ai-for-service/channels/add-microsoft-teams-channel).

   ![Auth credentials](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img6.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=b52ee463c00f4efaa014717d3a3d29e2)

4. Click **Save Auth**, then select the new profile.

   ![Select auth profile to enable integration](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img7.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=907628f006fa8c1d04465652a9090881)

5. Click **Authorize**, enter credentials at `https://login.microsoftonline.com/`, and click **Allow Access**.

6. Click **Enable**.

   ![Integration enabled](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img8.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=7f00c9039e1868ee1aa1cebf4399b85b)

> [!NOTE]
>
> The Microsoft Graph action moves from **Available** to **Configured** after enabling.

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **Microsoft Graph**.
2. In **Configurations**, select the **Authorization** tab.
3. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **OAuth**.

   ![Auth type - OAuth](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img9.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=a2972d3f6f09a6049b69703793195153)

**System Authorization**

1. Select the **System** card.

   ![Enable the Kore.ai's preconfigured Microsoft Graph](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/ms-graph-action-img10.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=f4bad3bf67749d74ad9f0bb3e9acac89)

2. Click **Enable**. A link is sent to the end user to authorize.

**Custom Authorization**

1. Select **Custom** and click **Select Authorization** > **Create New**, following the Custom Authorization steps above.

2. You can also select an existing profile:

   ![Existing auth profile](https://mintcdn.com/koreai/YXxlo8yJ3uYP2xuC/ai-for-service/integrations/actions/images/ms-graph-action-img11.png?fit=max\&auto=format\&n=YXxlo8yJ3uYP2xuC\&q=85\&s=b4fc71b762f453c96d0b3d4c52b16f01)

3. Click **Enable**.

***

## Step 2: Install the Microsoft Graph Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   ![Explore templates](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img12.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=e89b68e89db755a725005ad366612ae2)

2. Click **Install** to begin installation.

   ![Begin installation](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img13.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=174c9f893f45daf676d54a9bbf8a2263)

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

   ![Dialog task for each template](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img14.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=96d628f4dd68cb6a29966d54a5534de0)

4. Select the desired dialog task and click **Proceed**.

   ![Select desired dialog task](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img15.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=9d2d35088472a0e5d73e83d350a39732)

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.

   ![Canvas](https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/ms-graph-action-img16.png?fit=max\&auto=format\&n=NuCnGNJCXSVC7wUP\&q=85\&s=f18295b4652fd76f7450e67ae1ea77cf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.