跳到正文
DEV Community· PAMARTHI DHANUSH·· 3 小時前AI 評分56

Copilot Studio 智能體加入 Canvas app 的三種方式,以及其中一種即將退役的原因

Three Ways to Put a Copilot Studio Agent in a Canvas App (and Why One of Them Is Already Being Retired)

AI 導讀

Canvas app 可透過 App Copilot、Copilot 控制項及 Microsoft Copilot in canvas apps 三種方式加入 Copilot;App Copilot 自 2026 年 2 月 2 日起不再供新 Canvas app 加入。

正文

"Can I add my Copilot Studio agent to my Canvas app?" comes up in the Power Platform Community constantly, and the honest answer is "yes, in three different ways, and they're not interchangeable." I've seen makers pick the wrong one, hit a wall six weeks into a build, and have to redo the integration. So here's the actual decision tree, pulled straight from the current Microsoft Learn docs rather than from memory (the feature set here has moved fast enough that memory is a liability).

Option 1: App Copilot (custom Copilot chat) — being retired

This is the "Copilot" button that shows up in the command bar, plus a floating chat button on mobile. You wire it up in Settings → Updates → Preview, turn on App Copilot, and pick a custom Copilot you already built and published in Copilot Studio in the same environment.

The appeal was that it needed zero layout changes — the chat just appears as a command-bar button or a floating widget. The catch: starting February 2, 2026, adding this to new canvas apps is discontinued. Existing apps keep working for a while, but Microsoft's own docs say plainly that you should migrate to Option 3 below. If you're starting something new today, skip this one entirely — building on a feature that's already being phased out is a bad trade for a few hours saved.

Option 2: The Copilot control (an actual control on the canvas)

This is different from Option 1 in a way that trips people up: it's a visible control you drag onto a screen, like a button or a gallery, not a floating chat bubble. You turn on Copilot component and Edit in Copilot Studio in app settings, then Insert → Copilot (preview).

Two things worth knowing before you commit to this one:

  • It only supports Dataverse as a data source. If your app runs on SharePoint or SQL, this control is a non-starter.
  • You can either create a brand-new Copilot from inside the control's properties pane, or jump into Copilot Studio to customize one — but the control itself "doesn't support enabling an existing Copilot from Copilot Studio" if you didn't create it through this flow. That's a real constraint, not a UI quirk: plan your Copilot's origin before you start wiring up the control.

This is the option to reach for when you specifically want a Copilot as a piece of UI on a screen — answering questions about the app's own Dataverse data — rather than a general assistant.

Option 3: Microsoft Copilot in canvas apps — the current recommended path

This is what Option 1 is being replaced by, and it's architected differently: an admin enables it tenant/environment-wide in the Power Platform admin center (Copilot → Settings → Power Apps → Chat Agent → Microsoft Copilot), and then each maker flips a per-app toggle in Settings → General → Microsoft Copilot in canvas apps.

The fine print actually matters here:

  • It works against Dataverse Search, so turning it on can increase your environment's Dataverse capacity consumption — not a free toggle.
  • It supports either SharePoint or Dataverse as a data source, never both in the same app.
  • In the initial preview, SharePoint support is limited to apps with a single SharePoint list.
  • It's read-only — users can ask questions about data, but can't make changes through it. If you need the Copilot to actually do things (create a record, kick off a flow), you still need to build that as a custom agent action, not rely on this surface.
  • It currently doesn't run in the Power Apps mobile app at all.

The actual decision tree

  • Building something new today, want the supported long-term path → Option 3, with eyes open about the Dataverse-only-or-SharePoint-single-list constraint.
  • Need a specific, visible Q&A widget on one screen, app lives on Dataverse → Option 2.
  • Already shipped with Option 1 → start planning the migration now; "existing apps remain functional for a limited time" is Microsoft's own phrasing, not mine, and it's not a long runway.

None of this is exotic knowledge — it's all in the docs — but the docs are split across several separate pages, each describing one option in isolation, with no page that lays out the trade-off between them. That gap is exactly where the forum question keeps coming from, and it's exactly the kind of gap worth closing with a single post instead of three separate doc links.

來源:DEV Community · dev.to