Support M365 Agents SDK channel for Copilot Studio
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- authentication, frontend
Research direction
Start by locating the embed configuration that handles data-webchat-mode and the existing Direct Line connection, then review how the chat UI renders messages. Define the M365 mode inputs, MSAL.js authentication, and M365 Agents SDK conversation flow; done means Copilot Studio connections support streaming responses, reasoning traces, citations, and other rich content.
Written by the indexing model from the issue text.
Description
Summary
Add support for connecting to Copilot Studio agents via the M365 Agents SDK channel, as an alternative to the current Direct Line channel.
Motivation
The M365 Agents SDK provides a newer protocol for communicating with Copilot Studio agents that supports:
- Streaming responses (token-by-token)
- Reasoning/thinking traces
- Citations and source references
- Generative search results
- Activity-based protocol with richer message types
This is the direction Microsoft is moving for Copilot Studio integrations and would provide a significantly richer chat experience compared to the current Direct Line approach.
Possible Approach
- Add a
data-webchat-modeattribute (directline|m365) - For M365 mode, require
data-webchat-environment-id,data-webchat-agent-id,data-webchat-tenant-id, anddata-webchat-client-id - Authenticate with Microsoft using MSAL.js
- Use the M365 Agents SDK client to establish the conversation
- Render streaming responses, citations, and other rich content in the chat UI
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/botframework-webchat-embed
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in microsoft/botframework-webchat-embed
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·