Enhancing Model-Driven Apps with Copilot Studio: Agent APIs & Agent Response Component


Microsoft has just unveiled a powerful new capability in preview that significantly enhances how we can integrate AI into model-driven apps: Copilot Studio content embedded directly into forms. This update introduces two key features—Agent APIs and the Agent Response component—that open up exciting possibilities for creating intelligent, context-aware user experiences.
🧠 What’s New?
1. Agent APIs
These APIs allow developers to programmatically interact with topics created in Microsoft Copilot Studio. Available via the Xrm.Copilot and PCF Context.Copilot namespaces, they support two main operations:
- executeEvent: Triggers a topic based on a registered event name and returns a structured response.
- executePrompt: Sends a natural language prompt to Copilot Studio and receives a response based on defined trigger phrases.
The responses can include markdown, adaptive cards, images, and videos, giving makers full control over how to present AI-generated content within model-driven apps.
2. Agent Response Component
For low-code makers, this new component simplifies the integration of Copilot Studio content. You can now drag and drop the Agent Response component into a form using the form designer. It supports rendering:
- Markdown
- Adaptive Cards
- Images
- Videos
This component is ideal for scenarios where you want to surface Copilot-generated insights or guidance directly in the UI without writing custom code.
🛠️ How to Use It
To add the Agent Response component:
- Open the form designer in your model-driven app.
- Select Component > Artificial Intelligence > Agent Response.
- Drag it onto the form canvas.
- Enter the Event name from your Copilot Studio topic.
- Save and publish. The component automatically passes contextual variables like record ID, entity name, and page name to Copilot Studio, enabling more personalized responses.
💡 Real-World Scenarios
During Microsoft Build, the team showcased how these features can be used to:
- Trigger AI-generated summaries or recommendations based on form data.
- Display rich adaptive cards with contextual insights.
- Automate workflows by invoking Copilot topics from custom PCF controls.
⚠️ Things to Keep in Mind
- This is a preview feature, so it’s not recommended for production use yet.
- The Agent Response component currently doesn’t support mobile or tablet devices.
- For advanced scenarios requiring additional context, you’ll still need to use the Agent APIs with custom PCF components.
🧪 Final Thoughts
This preview marks a significant step forward in making AI more accessible and actionable within Power Apps. Whether you're a pro dev or a low-code maker, these tools empower you to build smarter, more responsive apps with minimal effort.
Have you tried integrating Copilot Studio into your model-driven forms yet? Stay tuned because very soon I'm sharing with you an example about how to use the Agent Response component and also how to create your own Custom PCF which invokes topics in a Copilot Studio Agent.