Skip to content

Microsoft Clarity

Microsoft Clarity provides heatmaps, session recordings, and engagement metrics in the product. The SquadOS integration, however, exposes only the aggregated Data Export API: the agent can query metrics split by operating system, device, browser, and other dimensions, but it does not receive heatmaps or session videos.

This tool uses an API key (API_KEY) to connect.

You will need the following fields:

FieldRequiredDescription
api_keyYesAccess token generated in your Clarity project settings (Settings → Data Export → Generate new API token).
  1. Go to clarity.microsoft.com and sign in with your Microsoft account.
  2. Select the desired project from the main dashboard.
  3. Go to Settings in the project menu.
  4. Click the Data Export tab.
  5. Click Generate new API token, set a descriptive name (4–32 characters), and confirm.
  6. Copy the generated token — this is the value to use in the api_key field when connecting in SquadOS.

Use a dedicated token and enter it only on the secure page hosted by Composio. Do not put the token in prompts, messages, or knowledge bases. Replace it promptly if an administrator with access leaves the project or exposure is suspected.

  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Microsoft Clarity.
  3. Open the Configure tool panel and click Activate. The integration moves to Active with the Awaiting authentication state.
  4. Open the active tool and click Connect now.
  5. Enter the token on the secure page hosted by Composio and complete the connection.
  6. Back in SquadOS, confirm the account under Accounts and use Edit actions to review the available operation.
  7. In the agent editor, open Tools, click Add Tool, choose Microsoft Clarity, select the account and action, save, and run a controlled test. (See Organization Tools for the complete flow.)

The current Composio catalog contains 1 Microsoft Clarity action; its identifier is documented below. Parameters come from snapshot 20260407_00, while the current catalog is on 20260724_00. Confirm the schema under Edit actions before saving.

MICROSOFT_CLARITY_DATA_EXPORT

Export data from Microsoft Clarity. Retrieves user behavior insights segmented by up to three dimensions (e.g., OS, device, browser), covering the last 24, 48, or 72 hours.

NameTypeRequiredDescription
numOfDaysintegerYesThe number of days for the data export since the API call, relating to the last 24, 48, or 72 hours, respectively.
dimension1stringNoThe first dimension to break down insights.
dimension2stringNoThe second dimension to break down insights.
dimension3stringNoThe third dimension to break down insights.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.