Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
1c7823d
Update targeted-messages.md
v-shalinirob Jun 16, 2026
518c33b
Update targeted-messages.md
v-shalinirob Jun 16, 2026
ba24f07
Updates
v-shalinirob Jun 17, 2026
0b71ab1
Update targeted-messages.md
v-shalinirob Jun 17, 2026
2d275c9
Update targeted-messages.md
v-shalinirob Jun 17, 2026
fe55eec
Update targeted-messages.md
v-shalinirob Jun 17, 2026
a7acc37
Update targeted-messages.md
v-shalinirob Jun 17, 2026
e5c04a5
Update targeted-messages.md
v-shalinirob Jun 17, 2026
c17a428
Update targeted-messages.md
v-shalinirob Jun 17, 2026
c158ca1
Update targeted-messages.md
v-shalinirob Jun 17, 2026
0aa65ef
Update targeted-messages.md
v-shalinirob Jun 17, 2026
5429cbe
Update targeted-messages.md
v-shalinirob Jun 17, 2026
ff0d7d8
Update targeted-messages.md
v-shalinirob Jun 17, 2026
5594d4f
Update targeted-messages.md
v-shalinirob Jun 17, 2026
bd9c563
Update targeted-messages.md
v-shalinirob Jun 17, 2026
76e7bf1
Update targeted-messages.md
v-shalinirob Jun 18, 2026
8e47769
Update targeted-messages.md
v-shalinirob Jun 18, 2026
45890fd
Create agent-response-workflows.md
v-shalinirob Jun 18, 2026
9d76c6b
Update zone-pivot-groups.yml
v-shalinirob Jun 18, 2026
07c1496
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
1bf8ae9
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
3e2fa31
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
147c7d6
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
798ebd6
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
b1a74d6
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
f58ecda
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
985dd28
Update targeted-messages.md
v-shalinirob Jun 18, 2026
ca37aa4
Update agent-response-workflows.md
v-shalinirob Jun 18, 2026
0ba5681
Update agent-response-workflows.md
v-shalinirob Jun 19, 2026
c1cfecd
Update agent-response-workflows.md
v-shalinirob Jun 19, 2026
2ddfe4c
Update agent-response-workflows.md
v-shalinirob Jun 19, 2026
dddaab2
Update targeted-messages.md
v-shalinirob Jun 19, 2026
1086040
Update targeted-messages.md
v-shalinirob Jun 19, 2026
e823b25
Update targeted-messages.md
v-shalinirob Jun 19, 2026
b8c1f5e
Merge branch 'main' into targeted-messages-updates
v-shalinirob Jun 22, 2026
0f9b3ed
Update targeted-messages.md
v-shalinirob Jun 22, 2026
2cffac7
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
448f1f3
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
d24344a
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
31c82e9
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
7f9206b
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
1ec8a30
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
d47a214
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
d9adff6
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
c22cef3
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
433547a
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
39a1fc0
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
75d0835
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
b43e951
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
fb695f4
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
d20a38b
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
35986ea
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
17e07b5
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
3a5ae52
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
8c7a88d
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
9eac905
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
25279a6
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
3947d8b
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
5bdc322
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
817efdd
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
b532e2c
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
36b2646
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
4cd8d8b
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
310dff0
Update agent-response-workflows.md
v-shalinirob Jun 22, 2026
d9000c9
Update agent-response-workflows.md
v-shalinirob Jun 23, 2026
60c598a
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
7c9d7e0
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
ec5b2ac
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
3ac1f0e
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
c46fdc1
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
1377b10
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
c7bffcd
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
8a5976e
Update agent-slash-commands.md
v-shalinirob Jun 23, 2026
3159462
Update targeted-messages.md
v-shalinirob Jun 23, 2026
a6146df
Merge branch 'main' into targeted-messages-updates
v-shalinirob Jun 24, 2026
e0a41a5
Update agent-slash-commands.md
v-shalinirob Jun 24, 2026
da0da92
Update agent-slash-commands.md
v-shalinirob Jun 24, 2026
a11e8a1
Update agent-slash-commands.md
v-shalinirob Jun 24, 2026
bcb6e33
Update agent-slash-commands.md
v-shalinirob Jun 24, 2026
696307b
Update targeted-messages.md
v-shalinirob Jun 24, 2026
4d839fc
Update targeted-messages.md
v-shalinirob Jun 24, 2026
8fac316
Update targeted-messages.md
v-shalinirob Jun 25, 2026
2e5aa15
Update targeted-messages.md
v-shalinirob Jun 25, 2026
63b092f
Update targeted-messages.md
v-shalinirob Jun 25, 2026
65386ea
Update targeted-messages.md
v-shalinirob Jun 25, 2026
db4e416
Update targeted-messages.md
v-shalinirob Jun 25, 2026
85810b4
Update targeted-messages.md
v-shalinirob Jun 25, 2026
348a31e
Updates
v-shalinirob Jun 25, 2026
14a1845
Update prompt-preview.md
v-shalinirob Jun 25, 2026
59914d8
Update prompt-preview.md
v-shalinirob Jun 25, 2026
5c7c55d
Update targeted-messages.md
v-shalinirob Jun 25, 2026
0b6f198
Updates
v-shalinirob Jun 26, 2026
79a5870
Update targeted-messages.md
v-shalinirob Jun 26, 2026
38b692b
Delete prompt-preview.md
v-shalinirob Jun 26, 2026
05078e5
Update targeted-messages.md
v-shalinirob Jun 26, 2026
28ef48a
Update targeted-messages.md
v-shalinirob Jun 26, 2026
1dbbc50
Updates
v-shalinirob Jun 26, 2026
23196bd
Updates
v-shalinirob Jun 26, 2026
b70fc61
Update targeted-messages.md
v-shalinirob Jun 26, 2026
acc6285
Update targeted-messages.md
v-shalinirob Jun 26, 2026
d2799d1
Updates
v-shalinirob Jun 26, 2026
c56bccc
Update targeted-messages.md
v-shalinirob Jun 26, 2026
6781318
Updates
v-shalinirob Jun 26, 2026
9538bb1
Update targeted-messages.md
v-shalinirob Jun 26, 2026
92dd130
Update targeted-messages.md
v-shalinirob Jun 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion msteams-platform/agents-in-teams/agent-slash-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ Slash commands in Teams are text-based shortcuts that let users perform actions

The slash commands feature enables apps and agents to add their own commands to this list to help users discover and use them.

[WIP: Gif file to be updated with Contoso instead of Copilot. ]

:::image type="content" source="../assets/videos/slash-commands.gif" alt-text="This video shows how a slash command works within a Teams agent or app.":::

<!--
:::image type="content" source="../assets/images/agents-in-teams/agent-slash-commands/slash-command-compose-box.png" alt-text="Image shows the response flows for agent slash commands." border="false" lightbox="../assets/images/agents-in-teams/agent-slash-commands/slash-command-compose-box.png":::
-->

## Types of slash commands

Expand Down Expand Up @@ -60,6 +66,27 @@ In channels, group chats, and meeting chats, the slash command autocomplete menu

Invoking a command from the menu switches the compose box to targeted messaging mode for the agent and inserts the name of the command as the message text. Selecting **Send** sends the targeted message to the agent.

- **App-defined slash commands**:

Agents or apps can explicitly declare the commands your agent supports, and Teams shows them in the slash command picker when a user types `/`. For example, a project management agent or bot app might expose commands such as:

- `/create-task` to turn the current conversation into a tracked task, prefilled with the channel, requester, and due-date details based on context.
- `/list-tasks` to list open tasks or action items in the conversation with task details and its owner name.
- `/status-check` to retrieve the latest status for a work item, incident, or customer request without leaving the compose box.

- **Natural-language support for slash commands**:

In this model, the user enters the slash command and, optionally, a natural-language request. The agent response is delivered privately to the user, which makes the pattern well suited for drafting, lookup, summarization, lightweight workflow initiation, and other personal productivity tasks that benefit from staying in the context of the current conversation. For example:

- `/contoso incident summarize the last 24 hours and suggest next steps`
- `/contoso create-task fix login issue for mobile users`
- `/contoso draft a customer update from this thread`
- `/contoso find the latest rollout plan and highlight open risks`

Natural-language support is often preferable to relying only on explicit commands for high-confidence, repeatable actions: agents are most valuable when they can understand intent, parameters, and context expressed in natural language, so slash-command design should combine discoverable commands with flexible phrasing that lets users say what they need instead of learning a long command catalog. From a platform perspective, slash commands should support the experience, not define it end to end; use them to surface common actions in a way that’s easy to find and invoke, then let the agent handle natural-language requests, infer missing details when appropriate, and ask brief follow-up questions when something is unclear. Keep the command set small so users don’t need to memorize syntax or choose between nearly identical options.

To support natural-language prompts, an agent must explicitly opt in. This keeps the behavior intentional. Agents that are designed to interpret free-form requests can enable natural-language prompting and provide a more conversational experience.

### Message extension slash commands

Apps that implement action-type [message extensions](../messaging-extensions/what-are-messaging-extensions.md) can surface them as slash commands. When a user activates one from the autocomplete menu, Teams immediately opens the associated task module or dialog. Activating a message extension slash command only opens the task module or dialog, and doesn't send a message. Search-type message extensions can't be exposed as commands.
Expand All @@ -78,7 +105,19 @@ See [Receive targeted messages](targeted-messages.md#receive-targeted-messages)

Agent slash commands require an agent to opt in to receive targeted messages; see [Receive targeted messages](targeted-messages.md#receive-targeted-messages).

Declare commands by configuring the `bots[].commandLists[]` section of the manifest as shown in the following example.
#### Triggers: slash and @mention

The `triggers` property defines where a command appears and how users can invoke it from the Teams compose experience. For agent command lists, use `@mention` when the command should appear in the traditional @mention command menu, use `slash` when the command should appear in the slash command picker, or include both values when the same command should be available from both entry points.

Use `slash` triggers for commands that users should be able to discover and invoke quickly from an empty compose box. Slash commands are well suited for frequent actions, private lookups, lightweight workflow starts, and commands that should be easy to find without first mentioning the agent.Use `@mention` triggers for commands that are closely tied to an explicit interaction with the agent. This pattern is useful when users are already addressing the agent directly, especially in personal scope or in conversations where the user expects the command to be part of a visible agent exchange.

- Use `@mention` when users are intentionally addressing the agent and may expect an agent-visible conversation flow.
- Use `slash` when users need fast discovery, private command invocation, or a shortcut from the compose box.
- Use both when the same command should be available through both discovery surfaces without changing the command behavior.

When a command supports both invocation patterns, declare both trigger values in the same command list. This keeps the command catalog consistent while giving users flexibility to start from either @mention or slash. You can choose to define separate command lists so that each trigger can have its own scope, command set, and user guidance.

Declare commands and their triggers by configuring the `bots[].commandLists[]` section of the manifest as shown in the following example.

```json
{
Expand Down
Loading