---
title: "Discussion on \"Xrm.Copilot — calling the assistant from your model-driven form scripts\" | Hashnode"
description: "Discussion on \"Xrm.Copilot — calling the assistant from your model-driven form scripts\". One line of JavaScript. Rich JSON back — markdown, adaptive cards, media, citations. This is how model-driven forms become agent-aware. Here's the real how-to."
url: "https://hashnode.com/posts/xrm-copilot-calling-the-assistant-from-your-model-driven-form-scripts/6a44ef40521683ce7565654a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Xrm.Copilot — calling the assistant from your model-driven form scripts](https://syedbilal365.hashnode.dev/xrm-copilot-calling-the-assistant-from-your-model-driven-form-scripts?utm_source=hashnode&utm_medium=feed)

One line of JavaScript. Rich JSON back — markdown, adaptive cards, media, citations. This is how model-driven forms become agent-aware. Here's the real how-to.

Jul 1 · 7 min read · syedbilal365.hashnode.dev  
Read the article

-   [#pcf](https://hashnode.com/tag/pcf)
-   [#power-platform](https://hashnode.com/tag/power-platform)
-   [#power-apps](https://hashnode.com/tag/power-apps)
-   [#model-driven-app](https://hashnode.com/tag/model-driven-app)
-   [#dynamics-365](https://hashnode.com/tag/dynamics-365)
-   [#copilot](https://hashnode.com/tag/copilot)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dataverse](https://hashnode.com/tag/dataverse)
-   [#microsoft](https://hashnode.com/tag/microsoft)

## Written by

[Syed Bilal Ahmed](https://hashnode.com/@syedbilal365)

@syedbilal365 · Dubai, UAE

  
[View profile](https://hashnode.com/@syedbilal365)

Practical Power Apps, PCF, and Dataverse built in the open, written down so you don't have to relearn it.

Hi — I'm Syed Bilal, a Power Platform developer focused on the PowerApps Component Framework (PCF). I build custom controls for model-driven and Dataverse apps and ship them as open source on GitHub (github.com/syedbilal1997). This blog is where I write down the things I wish someone had written down for me: how to build specific PCF controls, the Dataverse gotchas that cost me hours, and practical Power Apps patterns I use on real projects. Everything here comes from work I'm actually doing — no theory for theory's sake. If a post saves you an afternoon, it did its job. What you'll find here: - PCF control build-alongs (with code + GitHub repos) - Dataverse &amp; model-driven app tips - Power Apps patterns from real-world projects

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
