Skip to content

Microsoft Clarity

Microsoft Clarity

Microsoft Clarity is a free user behavior analytics tool that captures heatmaps, session recordings, and engagement metrics to help improve website experiences. With the integration in SquadOS, your agents can export Clarity analytics data — segmented by operating system, device, browser, and more — for automated reports, funnel analysis, and decisions based on real user behavior.

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.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Microsoft Clarity.
  3. Click the card to open the details and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you enter the API token obtained above.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available to agents. (Connection-flow details in Organization Tools.)

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.