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

# Configure the Microsoft Graph API for the KYC Agent

> Register an Azure application and configure the Microsoft Graph API connection in IBM watsonx Orchestrate so the KYC Agent can send email notifications and workflow updates.

Configure Microsoft Graph API access so the KYC Agent can send automated approval, rejection, and status-update email notifications.

## Configure the Microsoft Graph connection

<Steps>
  <Step title="Register an Azure application">
    Register an application in Microsoft Azure Active Directory.
  </Step>

  <Step title="Grant Microsoft Graph API permissions">
    Grant the required Microsoft Graph API permissions, such as `Mail.Send`.
  </Step>

  <Step title="Configure the connection credentials">
    In the IBM watsonx Orchestrate connection `microsoft_abbyy_e073d849`, configure the following credentials and store them securely:

    * `GRAPH_CLIENT_ID`
    * `GRAPH_CLIENT_SECRET`
    * `GRAPH_TOKEN_URL`
    * **Scope**: `offline_access openid profile User.Read`
    * **Authorization URL**
    * **Server URL**
  </Step>

  <Step title="Create the connection and copy the callback URL">
    In IBM watsonx Orchestrate, create and save the Microsoft Graph API connection. Copy and save the generated **Callback URL** from the connection settings.

    <Frame>
      <img src="https://mintcdn.com/abbyy/y2xLIbIIxf-9gINl/images/vantage/developer/connectors/ibm-watsonx-orchestrate/watsonx-microsoft-connection.png?fit=max&auto=format&n=y2xLIbIIxf-9gINl&q=85&s=f76fbe2dc2553758eb2025d5219e6afa" alt="Screenshot of the Microsoft Graph connection in IBM watsonx Orchestrate, showing the OAuth2 Authorization Code fields and the generated Callback URL." width="1301" height="696" data-path="images/vantage/developer/connectors/ibm-watsonx-orchestrate/watsonx-microsoft-connection.png" />
    </Frame>
  </Step>

  <Step title="Add the callback URL to Azure">
    Add the **Callback URL** to the **Redirect URI configuration** of the Azure application.

    <Frame>
      <img src="https://mintcdn.com/abbyy/y2xLIbIIxf-9gINl/images/vantage/developer/connectors/ibm-watsonx-orchestrate/azure-redirect-uri.png?fit=max&auto=format&n=y2xLIbIIxf-9gINl&q=85&s=3040ab72fbea612665392ba4c6b7e6a4" alt="Screenshot of the Microsoft Azure app registration Authentication page with the Redirect URI configuration tab and the Add Redirect URI button highlighted." width="1371" height="513" data-path="images/vantage/developer/connectors/ibm-watsonx-orchestrate/azure-redirect-uri.png" />
    </Frame>
  </Step>

  <Step title="Save and validate the connection">
    Save and validate the connection in IBM watsonx Orchestrate.
  </Step>

  <Step title="Point the KYC Agent at the connection">
    Configure the KYC Agent to use the Microsoft Graph API connection for sending email notifications and workflow updates.
  </Step>
</Steps>

The KYC Agent is now configured to run on IBM watsonx Orchestrate.

## Next steps

For the columns the ABBYY Timeline project must use, see [Timeline event log schema](/vantage/connectors/ibm-watsonx-orchestrate/timeline-event-log-schema).
