> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/integrations/agent-365-connector.md).

# Agent 365 Connector

## Overview

IFS Loops supports the Microsoft Agent 365 connector as a collaboration capability. This capability allows users to access IFS Loops Digital Workers directly from supported Microsoft applications without switching to the IFS Loops application.&#x20;

The Agent 365 connector provides a connection between Microsoft Agent 365 Agent Instances and IFS Loops Digital Workers. Each Agent Instance can be mapped to an IFS Loops Digital Worker so that business requests received through Microsoft applications are routed to the appropriate Digital Worker.&#x20;

Currently, the Agent 365 connector supports collaboration scenarios through:&#x20;

* **Microsoft Teams** — users can add Agent Instances to a team and invoke them from channels.&#x20;
* **Microsoft OneDrive** — users can grant access to documents for an Agent Instance and mention the agent in a document comment.&#x20;

The connector also supports Microsoft Agent 365 observability, providing administrators with visibility into agent sessions, users, executions, tool usage, and failures.&#x20;

### How the Agent 365 connector works&#x20;

{% stepper %}
{% step %}
An administrator installs and publishes the IFS Loops Agent 365 Agent Blueprint in Microsoft 365.
{% endstep %}

{% step %}
An administrator or authorized user creates one or more Agent Instances from the blueprint.

{% endstep %}

{% step %}
Each Agent Instance is mapped to an IFS Loops Digital Worker.
{% endstep %}

{% step %}
The Agent Instance is made available in the required Microsoft application.
{% endstep %}

{% step %}
A user invokes the Agent Instance by explicitly mentioning it.
{% endstep %}

{% step %}
Microsoft sends the agent event to IFS Loops.
{% endstep %}

{% step %}
IFS Loops identifies Agent Instance and its mapped Digital Worker.
{% endstep %}

{% step %}
The Digital Worker processes the request and executes the configured business workflow.
{% endstep %}

{% step %}
The response is returned to the Microsoft application through the Agent Instance.
{% endstep %}

{% step %}
Agent activity can be monitored through Microsoft Agent 365 observability.
{% endstep %}
{% endstepper %}

### Agent Instance to Digital Worker mapping&#x20;

Each Agent Instance has a 1:1 mapping with an IFS Loops Digital Worker.&#x20;

This allows organizations to create different Agent Instances for different business purposes while keeping Digital Worker configuration controlled in IFS Loops.&#x20;

## Prerequisites&#x20;

Before configuring the Agent 365 connector, ensure the following prerequisites are available.&#x20;

Microsoft 365 prerequisites&#x20;

* The Microsoft 365 tenant must be enrolled in the required Microsoft Agent 365 Frontier Preview program.&#x20;
* The user installing and publishing the Agent Blueprint must have the required administrator permissions. A Global Administrator is required for the blueprint installation and permission-granting steps described in this document.&#x20;
* The user responsible for installing and configuring the Agent Blueprint and creating/configuring Agent Instances must have a Microsoft Copilot license assigned to their account.&#x20;

> <mark style="color:violet;">**Note**</mark>
>
> *<mark style="color:violet;">Contact the IFS Loops support team to obtain the IFS Loops Agent 365 Agent Blueprint build package and any required configuration information.</mark>*

### Required permissions&#x20;

The following permissions are required for the Agent 365 connector and the IFS Loops Agent Blueprint to operate correctly across identity, collaboration, document access, and observability scenarios.&#x20;

#### Agent 365 connector permissions&#x20;

These Microsoft Graph permissions are required when adding Agent 365 integration in IFS Loops.&#x20;

| Permission      | Purpose                                                                                                                                                                                                         |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| User.Read       | Allow the connector to read the signed-in user's basic profile information when adding Agent 365 integration in IFS Loops.                                                                                      |
| User.Read.All   | Allows the connector to read basic profile information of users interacting with the agent, such as user ID, name, and email, as well as Agent Instance details, including ID, name, email, and application ID. |
| offline\_access | Allows the connector to securely maintain refresh tokens, eliminating the need for interactive sign-in for every request.                                                                                       |

&#x20;

#### IFS Loops Agent Blueprint permissions&#x20;

These delegated permissions are requested when installing and publishing the IFS Loops Agent 365 Agent Blueprint in Microsoft 365.&#x20;

| Permission                       | Purpose                                                                                                                                       |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| AgentData.ReadWrite              | Allows the Agent 365 agent to read and update the data needed to process conversations and maintain conversation context.                     |
| Connectivity.Connections.Read    | Allows the agent to view the connections configured for the agent.                                                                            |
| Agent365.Observability.OtelWrite | Allows the Agent 365 agent to send monitoring and telemetry information to Microsoft Agent 365 Observability.                                 |
| Sites.Read.All                   | Allows the agent to read documents and list items from SharePoint sites and content that Agent Instance has access to.                        |
| Files.Read.All                   | Allows the agent to read files that Agent Instance has access to, so attachments and document content can be processed by the Digital Worker. |

&#x20;

#### 1. Configure the Agent 365 connector&#x20;

The Agent 365 connector is used to connect Microsoft Agent 365 capabilities with IFS Loops Digital Workers.&#x20;

**Step 1 – Open IFS Loops**&#x20;

1. Sign in to IFS Loops.&#x20;
2. From the menu bar, select Connectors.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FtD9LtbZaCADJpqkaEN0i%2FPicture1.png?alt=media&amp;token=92c675b0-71ac-41b6-9d2f-eb207a79a64e" alt=""><figcaption></figcaption></figure>

3. Click Add Integration

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F8KnqMe1w6mQPLvPnoi0Z%2FPicture2.png?alt=media&amp;token=a5960ec7-b83c-4d61-ab84-98af8f2b46c2" alt=""><figcaption></figcaption></figure>

4. In the integration catalog, search for Agent365.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2Fd7CjuJGXDhAkk7B2YdG4%2FPicture3.png?alt=media&amp;token=216e6a4a-a69a-4e39-9d2d-1bcce2afd754" alt=""><figcaption></figcaption></figure>

5. Select Agent 365 from the search results.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FuMlv3UEKCuy4rTHYqQ4e%2FPicture4.png?alt=media&amp;token=2d5f3836-0dea-4c82-b5cf-7966f264534c" alt=""><figcaption></figcaption></figure>

6. Enter a unique name for your integration and click Next.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FbRxNwaIzUthArOTxoxkh%2FPicture5.png?alt=media&amp;token=e2842a99-6316-4d6d-a316-a4e983ab4bdd" alt=""><figcaption></figcaption></figure>

7. Click Connect

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F9xMmVdILW5qXK6XMdD0T%2FPicture6.png?alt=media&amp;token=5d9fd52b-d017-4d30-a247-db528f7d87c7" alt=""><figcaption></figcaption></figure>

8. An authorization window will open to grant the required permissions. Enter your credentials and authorize the requested permissions to continue.&#x20;
9. If the details are correct, a confirmation message will appear indicating that the integration has been configured successfully.&#x20;

#### Step 2 – Verify the Digital Worker&#x20;

Before creating the mapping, verify that the required IFS Loops Digital Worker:&#x20;

* Exists in the IFS Loops tenant.&#x20;
* Is enabled and available for execution.&#x20;
* Has the required business workflow and tools configured.&#x20;

**2. Install the IFS Loops Agent 365 Agent Blueprint**&#x20;

**Step 1 – Open Microsoft 365 Admin Center**&#x20;

10. Sign in to the Microsoft 365 admin center using a user with the required administrator permissions.&#x20;
11. Navigate to Agents → All Agents.&#x20;

#### 2. Install the IFS Loops Agent 365 Agent Blueprint&#x20;

**Step 1 – Open Microsoft 365 Admin Center**&#x20;

10. Sign in to the Microsoft 365 admin center using a user with the required administrator permissions.&#x20;
11. Navigate to Agents → All Agents.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FgS6AJdhibrBOwVuDP5kk%2FPicture7.png?alt=media&amp;token=d4c6680d-75f8-4aa6-ada3-dd2d800ca45d" alt=""><figcaption></figcaption></figure>

**Step 2 – Add the Agent Blueprint**

12. Select Add agent.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FdqHlpiB87zb7KOzZgjgR%2FPicture8.png?alt=media&amp;token=ffc54424-8006-47d7-8319-b4df9156fb20" alt=""><figcaption></figcaption></figure>

13. Select the IFS Loops Agent 365 Agent Blueprint build ZIP package provided by IFS Loops.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FEbSCTtFCff0fmzVmeMAN%2FPicture9.png?alt=media&amp;token=aa25f69e-b849-4d50-b125-e774e56d6981" alt=""><figcaption></figcaption></figure>

14. Select Next.&#x20;

#### Step 3 – Select users or groups&#x20;

15. Select the users or groups who should be allowed to create Agent Instances from the IFS Loops blueprint.&#x20;
16. Select Next.&#x20;

Only authorized users should be granted permission to create Agent Instances.&#x20;

#### Step 4 – Select the template&#x20;

17. Select the required template to which the Agent 365 Frontier Preview license should be assigned.&#x20;
18. Select Next.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FjJmpynfCzeyf6FD4ASgr%2FPicture10.png?alt=media&amp;token=b2bebfb1-20d0-4bde-a868-9444cf1b0c0e" alt=""><figcaption></figcaption></figure>

#### Step 5 – Review permissions&#x20;

Review the permissions requested by the IFS Loops Agent 365 Agent Blueprint. These permissions allow the agent to operate with the required Microsoft 365 resources and collaboration scenarios. Refer to the Required permissions section earlier in this guide.&#x20;

19. Select Next.&#x20;

#### Step 6 – Review and publish&#x20;

Review:&#x20;

* Agent Blueprint information&#x20;
* Users and groups&#x20;
* License/template configuration&#x20;
* Requested permissions&#x20;
* Tenant configuration&#x20;

20.Select Publish.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F5AM5MWlIrqGhi6ybJm6y%2FPicture11.png?alt=media&amp;token=93ac16eb-bf8d-4b4a-a4ab-d6effa1fb48b" alt=""><figcaption></figcaption></figure>

After publishing completes successfully, the IFS Loops Agent 365 Agent Blueprint becomes available in the Microsoft 365 environment and can be viewed from the Agent Registry.&#x20;

### 3. Create an Agent Instance&#x20;

An Agent Instance is the actual agent identity that users interact with in supported Microsoft applications. An organization can create multiple Agent Instances from the same IFS Loops Agent 365 Agent Blueprint.&#x20;

> <mark style="color:violet;">**Important — licensing limit**</mark>&#x20;
>
> [*<mark style="color:violet;">According to the current Microsoft licensing limitation, an organization can create up to 25 Agent Instances in total. This limit applies at the organization level and is not per Agent Blueprint.</mark>* ](#user-content-fn-1)[^1]

&#x20;

#### Create an Agent Instance&#x20;

21. Open the IFS Loops Agent 365 blueprint from the Agent Registry.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F5AM5MWlIrqGhi6ybJm6y%2FPicture11.png?alt=media&amp;token=93ac16eb-bf8d-4b4a-a4ab-d6effa1fb48b" alt=""><figcaption></figcaption></figure>

22. Select Add instance.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F3sUgzKbXk6Ewlo2CKfYu%2FPicture13.png?alt=media&amp;token=b173d6c2-9601-4b82-a717-5ebf5dd9d7f8" alt=""><figcaption></figcaption></figure>

23. Enter Agent Instance Name, Agent Instance Alias, and Owner.&#x20;
24. Microsoft 365 may take some time to provision the Agent Instance because tenant-level policies and configuration are applied during creation. Wait until the Agent Instance shows as successfully created before continuing with IFS Loops configuration.&#x20;

### 4. View Agent Instances&#x20;

25. Open the Microsoft 365 admin center.&#x20;
26. Navigate to Agent Registry.&#x20;
27. Search for IFS Loops.&#x20;
28. Open the IFS Loops Agent 365 blueprint.&#x20;
29. Select the Instances tab.&#x20;

Use this view to verify that the required Agent Instance has been provisioned before mapping it to a Digital Worker.

<div align="left"><figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FRXcxTJc18031A82QuTdY%2FPicture14.png?alt=media&amp;token=b773b340-d943-47e8-9de9-df54d062cdae" alt=""><figcaption></figcaption></figure></div>

### 5. Map an Agent Instance to an IFS Loops Digital Worker&#x20;

After creating the Agent Instance, configure its mapping in IFS Loops using the Agent 365 connector. Each Agent Instance must be mapped to the Digital Worker that will process its requests.&#x20;

#### Step 1 – Open Agent 365 configuration&#x20;

30. Sign in to IFS Loops.&#x20;
31. Open the Agent 365 connector.&#x20;

#### Step 2 – Open Agent configuration&#x20;

32. Navigate to the Agents configuration tab.&#x20;
33. Select Add mapping &#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FJOZYdCm0Rz7oEzU2RpME%2FPicture15.png?alt=media&amp;token=6b00e1c1-e9f9-4df7-900d-69d821385409" alt=""><figcaption></figcaption></figure>

#### Step 3 – Select the Agent Instance and Digital Worker&#x20;

34. Select the Agent Instance created in Microsoft 365.&#x20;
35. Select the IFS Loops Digital Worker that should handle requests for this Agent Instance.&#x20;
36. Save the mapping.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FSBGZnqArd049a7bm5zVe%2FPicture16.png?alt=media&amp;token=6008ca38-2a92-4479-9db6-dd2d4e81fd5a" alt=""><figcaption></figcaption></figure>

> <mark style="color:violet;">**Mapping rule**</mark>
>
> *<mark style="color:violet;">One Agent Instance can be mapped to only one Agent 365 integration, even if multiple Agent 365 integrations are configured in IFS Loops. The same Agent Instance cannot be mapped or used across multiple Agent 365 integrations</mark>*

### 6. Use an Agent Instance with Microsoft Teams&#x20;

If you want to use the created Agent Instance with Microsoft Teams, follow the steps in this section. Agent Instances can be made available to users in Microsoft Teams in a similar way to adding a normal user to a team.&#x20;

#### Step 1 – Open the team&#x20;

37. Open Microsoft Teams.&#x20;
38. Navigate to the required team.&#x20;
39. Open the team's Members section.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FQFidaJFerlLSZy1Hvakm%2FPicture17.png?alt=media&amp;token=f8117957-12e8-47f7-a6c4-6aedf8fbc265" alt=""><figcaption></figcaption></figure>

#### Step 2 – Add the Agent Instance&#x20;

40. Select Add members.&#x20;
41. Search for Agent Instance using its name or alias.&#x20;
42. Select the required Agent Instance.&#x20;
43. Select Add.&#x20;

Agent Instance is now available as a member of the team.&#x20;

#### Step 3 – Use the Agent Instance in a channel&#x20;

44. Open the required channel.&#x20;
45. Create a new message&#x20;
46. Explicitly mention the Agent Instance.&#x20;
47. Enter the business request. Eg.&#x20;

<mark style="background-color:$primary;">@Support Agent Please check the status of this customer order.</mark>&#x20;

> <mark style="color:violet;">**Important: Agent mention is required**</mark>
>
> *<mark style="color:violet;">The Agent Instance is invoked only when it is explicitly mentioned. This applies to new channel messages, replies to existing messages, and messages containing attachments. Simply replying to a thread without mentioning the agent does not invoke the Agent Instance.</mark>*

### 7. Upload and process attachments from Microsoft Teams&#x20;

Users can provide attachments to an Agent Instance through Microsoft Teams. The attachment can then be processed by the mapped IFS Loops Digital Worker.&#x20;

**Supported attachment flow**&#x20;

48. Open the required team and channel.&#x20;
49. Ensure the Agent Instance is available in the team.&#x20;
50. Create a new message or reply to an existing thread.&#x20;
51. Mention the Agent Instance.&#x20;
52. Attach the required file.&#x20;
53. Submit the message. Eg. &#x20;

<mark style="background-color:$primary;">@Support Agent Please review the attached document and summarize the key issues.</mark>&#x20;

**Attachment access requirements**&#x20;

* The agent must have the required access to read an attachment before the attachment can be processed.&#x20;
* Attachments may originate from Microsoft 365 resources or from the user's collaboration context.&#x20;
* Access and permission requirements can vary depending on where the attachment is stored.&#x20;
* If the required Microsoft 365 permissions have not been granted, the Digital Worker not be able to read the attachment.&#x20;

### 8. Use Agent Instance with OneDrive documents&#x20;

If you want to use the created Agent Instance with Microsoft OneDrive documents, follow the steps in this section. A user can mention an Agent Instance in a document comment and request the Digital Worker to process the document content.&#x20;

> <mark style="color:violet;">**Important: Grant document access first**</mark>&#x20;
>
> *<mark style="color:violet;">Before mentioning the Agent Instance in a OneDrive document comment, the specific document must be accessible to the Agent Instance. Do not proceed with the agent mentions until the required document access has been granted.</mark>*&#x20;

**Step 1 – Provide access to the document**&#x20;

54. Open the required document in OneDrive.&#x20;
55. If the agent does not have access to the document, click Share, search for the agent instance, and share the access (similar to how we share access with other users).&#x20;

**Step 2 – Add a comment**&#x20;

56. Open the document.&#x20;
57. Add a comment in the document.&#x20;
58. Mention the Agent Instance in the comment.&#x20;
59. Add the business request. e.g.&#x20;

<mark style="background-color:$primary;">@Support Agent Please review this document and identify the outstanding action items.</mark>&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2Ff3kqu1J51OzUc9h7srof%2FPicture18.png?alt=media&amp;token=26972cd3-c563-4da5-b613-c51b2d4a9a25" alt=""><figcaption></figcaption></figure>

**Step 3 – Wait for the Agent 365 event**

After the comment is submitted, Microsoft processes the event before sending it to the agent. The event is not delivered immediately. A delay of approximately 2–3 minutes may occur before the event reaches IFS Loops.

Do not assume that the agent failed immediately after posting the comment.

Allow time for Microsoft to deliver the event.

> *Currently, IFS Loops supports only Excel files for working with OneDrive file comments.*

### 9. Event invocation rules&#x20;

Agent 365 events are processed when the Agent Instance is explicitly invoked.&#x20;

Users must mention the Agent Instance whenever they want to trigger an agent operation. This applies even when:&#x20;

* Replying to an existing thread&#x20;
* Continuing a previous conversation&#x20;
* Adding request to a document comment&#x20;
* Sending a request with an attachment&#x20;

| Scenario                | Example                                                          |
| ----------------------- | ---------------------------------------------------------------- |
| New message             | @Support Agent Check the status of order 12345.                  |
| Reply in a thread       | @Support Agent Please also check the customer's previous orders. |
| Message with attachment | @Support Agent Please analyze the attached spreadsheet.          |

A reply without the Agent Instance mention is treated as a normal collaboration message and does not invoke the agent.&#x20;

> &#x20;**Event delivery delay**&#x20;
>
> *Microsoft may not send collaboration events to IFS Loops immediately. For OneDrive document comments, an event delivery delay of approximately 2–3 minutes may occur. This delay is part of the Microsoft event delivery flow and should be considered during testing and troubleshooting.*

### 11. Monitor Agent 365 observability&#x20;

Microsoft Agent 365 provides visibility into how IFS Loops Agent Instances are being used. Administrators can monitor information such as:&#x20;

* Agent sessions&#x20;
* Users interacting with agents&#x20;
* Successful and failed operations&#x20;
* Execution time&#x20;
* Agent activity and session details&#x20;
* Tools involved in business workflows&#x20;
* Successful and failed tool executions&#x20;
* Usage of individual Agent Instances&#x20;

> <mark style="color:violet;">**Note:**</mark>
>
> *<mark style="color:violet;">Observability data not appear immediately in the Microsoft 365 Admin Center for every conversation. The data goes through Microsoft’s internal processing, policies, configuration, and validation checks before it is displayed. As a result, it may take anywhere from a few minutes to several hours for the observability information to become available.</mark>*&#x20;

**View agent activity**&#x20;

60. Open the Microsoft 365 admin center.&#x20;
61. Navigate to All Agents → Agents.&#x20;
62. Open the IFS Loops Agent 365 blueprint.&#x20;
63. Select the Activity tab.&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FerLQ3jP42Ni5dJ3Hh9ao%2FPicture21.png?alt=media&amp;token=2e6bf697-3113-45f9-ad50-21e60ebf6fef" alt=""><figcaption></figcaption></figure>

Administrators can use this information to understand which sessions were created, which succeeded or failed, how long operations took.&#x20;

### 12. View activity for a specific Agent Instance&#x20;

64. Open the IFS Loops Agent 365 agent blueprint.&#x20;
65. Select the Instances tab.&#x20;
66. Select the Agent Instance to monitor.&#x20;

<div align="left"><figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2FatvUbXLfpQGSrytYKWRw%2FPicture20.png?alt=media&amp;token=fd64a7a5-5a1c-4019-8632-d6e74435e070" alt=""><figcaption></figcaption></figure></div>

67. Open the Activity tab.

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2Fh4cuO0XLWL69iXpBwel6%2FPicture21.png?alt=media&amp;token=322c68c7-0b42-498b-9c3c-a5a0d838b4f4" alt=""><figcaption></figcaption></figure>

This is useful when troubleshooting a particular business workflow or validating usage of a specific agent instance.

### 13. Monitor users, sessions and tools&#x20;

The Agent 365 observability view provides additional visibility into the relationship between users, sessions, agents, and tools.&#x20;

68. Click Map to view the relationship between users, sessions, agents, and tools involved in the execution&#x20;

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2F3ZFpWvBA1Y4vz0MozSU5%2FPicture22.png?alt=media&amp;token=2c24ea88-1625-4d8c-96bf-eebe31ab8b81" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2Fa8B0ekQlWgIDZtNw9JUu%2FPicture23.png?alt=media&amp;token=d3639c8f-cba8-4355-9fce-93058ecd3051" alt=""><figcaption></figcaption></figure>

69. Click on the Tool to view the total number of tool calls and any exceptions.

<div align="left"><figure><img src="https://3180153102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRIbp8Kp04VLXld01gmAs%2Fuploads%2Fg55F9vKobo7zFviE4aZ1%2FPicture25.png?alt=media&amp;token=ea4929b6-cd3f-412a-bb03-feda46fcc41a" alt=""><figcaption></figcaption></figure></div>

70. Click View connections to see which Agent Instance executed the tool.

**User usage**&#x20;

* Which users are using an Agent Instance&#x20;
* How many sessions users have created&#x20;
* Which users use an Agent Instance most frequently&#x20;

**Session usage**&#x20;

* Total number of sessions&#x20;
* Session execution activity&#x20;
* Successful sessions&#x20;
* Failed sessions&#x20;

**Tool usage**&#x20;

* Which tools were used&#x20;
* How many times each tool was invoked&#x20;
* Which tool executions failed&#x20;

**Failure analysis**&#x20;

Observability information can help determine:&#x20;

* Which user initiated the workflow&#x20;
* Which Agent Instance handled the request&#x20;
* Which tools were invoked&#x20;
* How many times each tool was used&#x20;
* Which tool executions failed&#x20;
* Whether the overall business operation succeeded or failed&#x20;

[^1]:
