$npx -y skills add microsoft/skills-for-copilot-studio --skill directline-chatDEPRECATED: Use /copilot-studio:chat-with-agent instead — it auto-detects DirectLine vs M365 mode. This skill is kept for backwards compatibility only.
| 1 | # DirectLine Chat (Deprecated) |
| 2 | |
| 3 | **This skill has been merged into `/copilot-studio:chat-with-agent`**, which now auto-detects the agent's authentication mode and uses DirectLine automatically for no-auth and manual-auth agents. |
| 4 | |
| 5 | **Use `/copilot-studio:chat-with-agent` instead.** It handles both DirectLine and Copilot Studio SDK modes in a single skill. |
| 6 | |
| 7 | If you are here because the caller explicitly provided a DirectLine secret or token endpoint URL, you may proceed with the instructions below. Otherwise, redirect to `/copilot-studio:chat-with-agent`. |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | ## Direct Usage (when caller provides explicit DirectLine credentials) |
| 12 | |
| 13 | ### Token endpoint mode |
| 14 | |
| 15 | ```bash |
| 16 | node ${CLAUDE_SKILL_DIR}/../../scripts/directline-chat.bundle.js \ |
| 17 | --token-endpoint "<url>" "<utterance>" |
| 18 | ``` |
| 19 | |
| 20 | ### DirectLine secret mode |
| 21 | |
| 22 | ```bash |
| 23 | node ${CLAUDE_SKILL_DIR}/../../scripts/directline-chat.bundle.js \ |
| 24 | --directline-secret "<secret>" "<utterance>" |
| 25 | ``` |
| 26 | |
| 27 | ### Multi-turn |
| 28 | |
| 29 | ```bash |
| 30 | node ${CLAUDE_SKILL_DIR}/../../scripts/directline-chat.bundle.js \ |
| 31 | --token-endpoint "<url>" "<follow-up>" \ |
| 32 | --conversation-id <id> --directline-token "<token>" |
| 33 | ``` |
| 34 | |
| 35 | **Always pass `--directline-token`** when resuming. DirectLine tokens are bound to the conversation. They expire after ~30 min. |
| 36 | |
| 37 | ### Output format |
| 38 | |
| 39 | Same as `/copilot-studio:chat-with-agent` Phase 1a — see that skill for full documentation of JSON output, sign-in flow, and error handling. |