Edit

Share via


Bring intelligence into your app using Agent Xrm APIs (preview)

Important

  • This is a preview feature.
  • Preview features aren’t meant for production use and might have restricted functionality. These features are subject to supplemental terms of use, and are available before an official release so that customers can get early access and provide feedback.

Agent APIs are a set of interfaces introduced in Microsoft Power Apps that allow model-driven apps to interact with topics created in Microsoft Copilot Studio. These APIs are available in two forms:

These APIs are designed to enhance integration with Microsoft Copilot Studio (MCS), enabling more intelligent and responsive app experiences.

API Description
Xrm.Copilot.executeEvent Executes a Microsoft Copilot Studio topic based on the registered Event Name. Returns an array of type MCSResponse.
Xrm.Copilot.executePrompt Executes a Microsoft Copilot Studio topic based on the trigger queries registered in the topic. Returns the array of type MCSResponse.

FAQ for Agent APIs and Agent Response component
Xrm.Copilot (Client API reference)
Xrm.Copilot.executeEvent (Client API reference)
Xrm.Copilot.executePrompt (Client API reference)
Copilot (Power Apps component framework API reference)