Skip to content

Guides

Microsoft Copilot Studio

Immiscible as Copilot Studio’s external threat detection provider. Before every tool call a generative-orchestration agent makes, Copilot Studio asks Immiscible, which allows it, blocks it with the reason, or blocks it until a named person approves.

Copilot Studio can ask an outside provider before every tool call an agent with generative orchestration makes, and block the call when told to (Microsoft’s developer contract). Immiscible answers that question with the same gate, rules and approvals as every other agent.

#What happens on each tool call

Copilot Studio sends the planned call: the tool, its inputs, the person’s message and the outputs of earlier tools. Immiscible turns it into an action request for the Immiscible agent you mapped to that Copilot Studio agent, and answers in Copilot Studio’s terms:

Immiscible’s decisionCopilot Studio is toldreasonCode
allowblockAction: false
a person must approveblockAction: true, with the reasons and the approval link4102
refusedblockAction: true, with the reasons4101
an agent nobody mappedblockAction: true, saying how to map it4103

After the person approves, the identical call (the same agent, tool and inputs, within a day) goes through once; the next one is decided again. When the inputs name recipients in more than one domain, the first that differs from the To is the one checked, so a BCC elsewhere cannot ride on an allowed recipient. diagnostics carries the Immiscible action id.

#Set it up

  1. An app registration for Immiscible in your Microsoft Entra tenant, exposing a scope whose Application ID URI is the Immiscible host (on the hosted service, https://immiscible.fly.dev). An operator running their own Immiscible sets that URI as IMMISCIBLE_COPILOT_AUDIENCE.
  2. Tell Immiscible your tenant, and which Copilot Studio agents are which Immiscible agents, as an owner or admin:
    Shell
    curl -X PUT "https://immiscible.fly.dev/api/w/$IMMISCIBLE_WORKSPACE/copilot-studio" -H "cookie: __Host-sid=$IMMISCIBLE_SESSION" -H "x-immiscible-csrf: 1" \
      -H "content-type: application/json" \
      -d '{ "tenantId": "<your tenant id>", "appIds": ["<the calling app id>"], "agents": { "<Copilot Studio agent id>": "agt_..." }, "defaultAgentId": null }'

    appIds limits which applications may call (empty allows any from your tenant). The answer includes the endpoint to give Copilot Studio.

  3. In the Power Platform admin center, under threat detection, set the endpoint to https://immiscible.fly.dev/v1/copilot-studio/$IMMISCIBLE_WORKSPACE and the app registration. Copilot Studio calls /validate to check it.

#Plainly

  • Copilot Studio fails open. If Immiscible does not answer within one second, Copilot Studio lets the tool call go on, by Microsoft’s design. Immiscible decides from its own database and cached keys and never calls out on this path; the tests hold its 99th percentile under 200 ms. If your tenant offers a stricter error behaviour, choose the one that blocks.
  • The token is checked: RS256, a key in your tenant’s published key set (cached, refreshed at most once a minute), issued by your tenant, for Immiscible’s audience, and from an allowed app.
  • Not tested against a live Copilot Studio tenant here. Built to the published contract, with Microsoft’s own example request as a test fixture.