Microsoft Copilot M365 connector
Connect Claresia to Microsoft Copilot M365. End users invoke
@claresia.<skill> from Copilot Chat in Microsoft 365 (Word, Excel, Outlook,
Teams, the Copilot app). This is the most common path for European
manufacturing / financial services customers (Dainese, etc.).
Prerequisites
Section titled “Prerequisites”- Microsoft 365 with Copilot M365 license
- Power Platform admin rights in your tenant
- An Azure AD global admin to consent to Claresia’s app registration
- Microsoft Graph API access (default for M365 tenants)
- Your tenant ID (Entra → Overview)
Part 1 — Register Claresia in your Azure AD
Section titled “Part 1 — Register Claresia in your Azure AD”-
In Claresia Onboarding Portal, click Connect LLM (Step 6) → pick the Microsoft Copilot M365 card. The portal shows you an Azure CLI command to run, which creates the Azure AD app + assigns the right scopes:
Terminal window az ad sp create --id <claresia-multi-tenant-app-id>az role assignment create \--assignee <returned-sp-id> \--role "Power Platform Administrator" \--scope /providers/Microsoft.Management/managementGroups/<your-tenant-id> -
Run the command in your Azure Cloud Shell (or local Azure CLI logged in as global admin).
-
The output includes a Service Principal Object ID — copy it.
-
In the portal, paste the SP Object ID + your tenant ID. Click Test connection — Claresia calls
GET https://api.powerplatform.com/admin/environmentsto confirm.
Part 2 — Skill publish flow (cc-065)
Section titled “Part 2 — Skill publish flow (cc-065)”Claresia publishes each skill as a Copilot Studio agent + a Power Platform action:
- Reads the Skill IR JSON for every entitled skill
- Transpiles into Copilot Studio agent YAML (topics, system prompt, knowledge sources, Power Automate flow bindings)
- POSTs to Power Platform Admin API → creates the agent under the
claresia-{tenant_slug}-{skill_id}namespace - Sets agent ACLs to match your AAD group → archetype mapping
- Publishes the agent (agents are drafts by default; Claresia auto-publishes after validation passes)
- End users see the agent in Copilot Chat’s
@mention picker within ~60s (Copilot Studio’s publish lag is the longest of the four platforms — SLO <60s p99)
Agent shape per skill
Section titled “Agent shape per skill”# Excerpt — auto-generated from Skill IRdisplayName: "claresia-dainese-incident-postmortem"description: "Generate a postmortem for a Gatespic-tracked incident."systemPrompt: | You are Claresia's Incident Postmortem skill. Follow the cc-051 firmware-engineer cadence. Output sections: Summary, Timeline, Root Cause, Impact, Remediation, Lessons Learned. Cite incident ID + commit SHAs.parameters: - name: incident_id type: string required: trueknowledgeSources: - type: dataverse table: claresia_dainese_incidentsactions: - type: power_automate_flow flow_id: emit_hub_recordPart 3 — Telemetry ingest via Microsoft Graph
Section titled “Part 3 — Telemetry ingest via Microsoft Graph”Claresia polls Microsoft Graph audit log every 60s:
GET https://graph.microsoft.com/v1.0/auditLogs/directoryAudits ?$filter=category eq 'CopilotAgent' and contains(targetResources/displayName, 'claresia-{tenant_slug}-') &$orderby=activityDateTime descFor each event, we normalize into fn_telemetry_event and write to the Hub.
End-user experience inside Copilot
Section titled “End-user experience inside Copilot”The user opens Microsoft Copilot Chat (web, Teams, Outlook, Word, Excel) and types:
@claresia.gatespic.incident-postmortemThe Copilot picker shows the agents entitled to their archetype. They pick one, Copilot prompts for parameters via an Adaptive Card form, runs the agent, and returns the reply wrapped in Claresia’s Adaptive Card:
[skill output body]
Claresia · Incident Postmortem · $0.04 · 2.3s · View record
Adaptive Cards render natively in Teams, Outlook, and Copilot Chat — no additional install required.
Power Automate flows (Hub emission)
Section titled “Power Automate flows (Hub emission)”Claresia ships a Hub Emission Flow in your Power Platform tenant. Every agent invocation triggers this flow, which:
- Receives the agent output payload
- Computes the SHA-256 provenance hash
- POSTs to Claresia’s Hub ingest endpoint (Mode A/B) OR writes directly to your customer-cloud Hub (Mode C)
- Returns the Hub record ID to the agent for the footer link
This flow lives in the claresia-{tenant_slug} Power Platform environment
and is owned by the Claresia AAD service principal — you don’t need to manage
it.
Common gotchas
Section titled “Common gotchas”| Symptom | Cause | Fix |
|---|---|---|
| Agents don’t appear in Copilot picker | Copilot Studio publish lag | Wait 90s; or hit Republish all in Command Center |
403 on publish | SP missing Power Platform Admin role | Re-run the az role assignment command |
| Telemetry missing | Audit Logs not enabled in Microsoft Purview | Enable Audit Log Search in compliance.microsoft.com |
| Hub records missing | Power Automate flow disabled | Re-enable the claresia-hub-emission flow in Power Automate UI |
| AAD consent screen blocks install | Tenant requires admin consent for new apps | Have your global admin pre-consent in Azure → Enterprise Applications → User Settings |