Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
Xrm.Copilot
namespace used for client scripts in model-driven apps. This article describes these APIs.- PCF (for use in custom controls).
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. |
Related articles
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)