chat-sdk
/chat-sdk
Wysyła wiadomość do agenta Copilot Studio przez Copilot Studio Client SDK dla agentów ze zintegrowanym uwierzytelnianiem Entra ID SSO, wymagając Client ID rejestracji aplikacji.
- Autor
- microsoft ↗
- Repozytorium
- skills-for-copilot-studio ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wysyła wiadomość do agenta Copilot Studio przez Copilot Studio Client SDK dla agentów ze zintegrowanym uwierzytelnianiem Entra ID SSO, wymagając Client ID rejestracji aplikacji.
Argumenty
/chat-sdk <utterance>
Oryginalny opis (EN)
Send a message to a Copilot Studio agent via the Copilot Studio Client SDK (M365). Use for agents with integrated auth (Entra ID SSO). Requires an App Registration Client ID.
Jak działa
- Prerequisites
- Instructions
- Multi-turn
- Error Handling
Podgląd SKILL.md
---
user-invocable: false
description: Send a message to a Copilot Studio agent via the Copilot Studio Client SDK (M365). Use for agents with integrated auth (Entra ID SSO). Requires an App Registration Client ID.
argument-hint: <utterance>
allowed-tools: Bash(node *chat-with-agent.bundle.js *), Read, Glob
agent: copilot-studio-test
---
# Chat via Copilot Studio SDK
Send a single utterance to a published agent via the Copilot Studio Client SDK. Use this for agents with **integrated authentication / Entra ID SSO** (authenticationmode 2).
## Prerequisites
Requires prior authentication via `/copilot-studio:test-auth`. Do NOT ask the user for a client ID yourself — the test-auth skill handles app registration setup and authentication.
## Instructions
1. Run the script with `--client-id` and the utterance from `$ARGUMENTS`:
```bash
node ${CLAUDE_SKILL_DIR}/../../scripts/chat-with-agent.bundle.js \
--client-id "<clientId>" "<utterance>" [--agent-dir <path>]
```
2. **Authentication**: Requires prior authentication via `/copilot-studio:test-auth`. The token is cached in the `"test-agent"` slot and shared with the eval API. If auth fails or the SDK hangs, tell the caller to re-run `test-auth`.
3. Parse the JSON output from stdout:
```json
{
"status": "ok",
"protocol": "m365",
"utterance": "hello",
"conversation_id": "abc123-...",
"start_activities": [ ... ],
"activities": [ ... ]
}
```
Display the agent's response from the `activities` array:
- **Text**: activities where `type === "message"` — show `text`
- **Suggested actions**: `suggestedActions.actions` array
- **Adaptive cards**: `attachments` with `contentType === "application/vnd.microsoft.card.adaptive"`
**Save `conversation_id`** for follow-ups.
## Multi-turn
Pass `--conversation-id` from the previous response:
```bash
node ${CLAUDE_SKILL_DIR}/../../scripts/chat-with-agent.bundle.js \
--client-id "<id>" "<follow-up>" --conversation-id "<id>"
```
SDK sessions do not expire as quickly as DirectLine. Reuse `conversation_id` automatically for follow-ups.
## Error Handling
| Error | Cause | Resolution |
|-------|-------|------------|
| `Authentication failed` | Wrong client ID or tenant | Verify app registration and permissions |
| `Could not obtain conversation_id` | Agent not published or wrong config | Verify agent is published |
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · microsoft/skills-for-copilot-studio | 84 | MIT |
| mashharuki/AWS-SummitHackathon-2026 | 100 | MIT |
| vercel-labs/open-agents | 100 | MIT |
| vercel/vercel-plugin | 90 | Apache-2.0 |
Migawka bazy z 28.10.2026 · wersja paczki 68d9b7d3432d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 84chat-directline
Wysyła wiadomość do agenta Copilot Studio przez DirectLine v3, dla agentów bez uwierzytelniania lub z ręcznym, z użyciem adresu tokenu lub sekretu DirectLine. - 100m365-copilot-packaging
Prowadzi przez wdrożenie aplikacji MCP do Microsoft 365 Copilot jako agenta deklaratywnego: wymagania wstępne, CORS hosta widżetu, OAuth 2.1, Entra SSO, sideloading i ograniczenia Copilota. - 84add-other-agents
Dodaje do agenta Copilot Studio agentów podrzędnych, połączonych i inne wzorce wieloagentowe, aby wywoływać innych agentów. - 100delete-agent
Trwale usuwa agenta Copilot Studio z chmury poleceniem pac copilot delete po dokładnym potwierdzeniu wpisanym przez użytkownika. - 95copilot-sdk-go
Podpowiada, jak budować aplikacje w Go z GitHub Copilot SDK, gdy w projekcie są pliki .go i moduł go.mod. - 100push-agent
Wypycha lokalne zmiany agenta Copilot Studio z istniejącego obszaru roboczego PAC CLI poleceniem pac copilot push, bez publikowania ich.