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

# Microsoft

## Tool Integration Setup Guide for MS Outlook, Sharepoint & Teams

The Microsoft Outlook connector enables Axoma to securely access emails, calendars, and mailbox data using OAuth 2.0 through Microsoft Entra. Users must create and configure an app in the Entra portal to generate OAuth credentials and assign the necessary Microsoft Graph permissions. Once authenticated, Axoma can read and process emails, manage calendar events, and automate communication workflows, ensuring secure, consent-based access to Outlook data.
To enable MS Teams functionality inside AXOMA, users must first register an application in Microsoft Entra Admin Centre and configure permissions.

### 🔹 Step 1 : Create/Register an App in Microsoft Entra

In this step, you register a new application in the Microsoft Entra portal to generate essential OAuth credentials such as the Client ID, Tenant ID, and Client Secret. This app acts as a secure identity for Axoma to request authorized access to Microsoft services like Teams, Outlook, or OneDrive.

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth1.png" alt="oauth" />

1. Go to: [https://entra.microsoft.com](https://entra.microsoft.com)
2. From the left panel, navigate to App registrations

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth2.png" alt="oauth" />

3. Click on <b>New registration</b>
4. Enter the Application Name (example: Axoma  Teams  Integration)

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth3.png" alt="oauth" />

5. Under Supported account types, select: Public client native (mobile & Desktop)
6. In the Redirect URI (optional) section: Place the callback URL available in AXOMA > agent studio > agent creation STEP 2

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth4.png" alt="oauth" />

7. Paste Axoma’s Callback URL ([https://platform.axoma.ai/callback](https://platform.axoma.ai/callback)) (Found in Axoma ➜ Agent Studio ➜ Step  2 Tool Configuration popup)
8. Click <b>Register</b>

### 🔹Step 2: Collect Required Credentials

After successful registration, go to the API permissions tab.

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth5.png" alt="oauth" />

These two IDs must be entered later in Axoma ➜ Agent Studio ➜ Step  2 Tool Configuration.

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth6.png" alt="oauth" />

### 🔹Step 3: Add Microsoft Graph Permissions

1. Go to API Permissions
2. Click + Add a permission

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth7.png" alt="oauth" />

3. Select Microsoft Graph

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth8.png" alt="oauth" />

4. Choose Delegated permissions

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth9.png" alt="oauth" />

5. Add the required deligated permissions from below:

<AccordionGroup>
  <Accordion title="Permissions for Outlook">
    * "Mail.Read"
    * "Mail.Read.Shared"
    * "Mail.ReadBasic"
    * "Mail.ReadBasic.Shared"
    * "Mail.ReadWrite"
    * "Mail.ReadWrite.Shared"
    * "Mail.Send"
    * "openid"
    * "profile"
    * "User.Read"
    * "offline\_access"
  </Accordion>
</AccordionGroup>

<AccordionGroup>
  <Accordion title="Permissions for Sharepoint">
    * "Sites.ReadWrite.All",
    * "Sites.Manage.All",
    * "openid",
    * "profile",
    * "User.Read",
    * "offline\_access"
  </Accordion>
</AccordionGroup>

<AccordionGroup>
  <Accordion title="Permissions for Teams">
    * "Team.ReadBasic.All",
    * "Channel.ReadBasic.All",
    * "ChannelMessage.Send",
    * "Chat.Read",
    * "Chat.ReadWrite",
    * "openid",
    * "profile",
    * "User.Read",
    * "offline\_access"
  </Accordion>
</AccordionGroup>

<img className="block mx-auto" src="https://mintlify.s3.us-west-1.amazonaws.com/insightgenai-2e40fba8/images/msoauth10.png" alt="oauth" />

<Note> ⚠ Important: Some Graph permissions require Admin Consent.
If you do not have permission to grant them, contact the IT/Cloud Admin / Azure Admin team to approve the permissions. </Note>

### 🔹Step 4  Configure in Axoma Agent Studio

1. Navigate to Step  2 ➜ Tool Configuration
2. Select MS Teams/Outlook/Sharepoint (according to usecase)
3. Enter:
   •	Application (Client) ID
   •	Tenant ID
4. Proceed to Step  3 and enable the required toggles/features
5. Go to Step  4 ➜ Try & Publish
6. Provide a valid Functional API Key (optional)
7. Test with example prompts

Example Prompts to Test in Axoma Playground

| **Use Case**             | **Example Prompt**                                                                                 |
| ------------------------ | -------------------------------------------------------------------------------------------------- |
| **Fetch last messages**  | Fetch the last 5 messages from *Michael*                                                           |
| **Notify a group**       | Send a message to the group *UI Team* informing that I will be on leave tomorrow.                  |
| **Group summary**        | Analyze the last 10 messages on the group *UI Team* and give me a summary.                         |
| **Check mention**        | Analyze the last 10 messages on *UI Team* and tell me whether anyone has mentioned *Michael*       |
| **Extract action items** | Analyze the last 10 messages on *UI Team* and list pending tasks/action items for each team member |

<b> Outcome </b>

Once the setup is completed:

* Users can send & receive Teams messages directly from Axoma
* No need to open Microsoft Teams separately
* Enables seamless collaboration inside the Axoma platform

<Note> Note: Example prompts may vary depending on the use case and can be tested in the Agent Studio Playground, as well as in the Workflow and Personal Assistant chat screens, with the appropriate configurations enabled.</Note>
