How it works in MS Teams
Users interact with the AI agent by sending messages directly in a chat conversation with the Confirm bot.
MS Teams supports multiple AI sessions in the same conversation. This means a user can have several independent conversations with the agent, all within the same Teams chat window, and switch between them.
Sessions in MS Teams
A session is a single conversation thread with the AI agent. It remembers the full context of that conversation.
Users can manage their sessions with three commands:
Commands
new-ai-session
Starts a brand-new session, regardless of any existing ones.
The user can type new-ai-session alone to start fresh and get an "Ask me anything" greeting.
Or they can type new-ai-session followed by their question — the new session is created and the question is sent immediately.
list-ai-sessions
Shows the user's most recent sessions (up to 10) as clickable buttons in an Adaptive Card.
Each button displays the session's title.
Tapping a button selects that session (see select-ai-session below).
If there are no sessions yet, the bot sends a message saying there's nothing to show.
This shows how the agent interact with the user while working in the answer
Error states
Situation | What the user sees |
AI Agents feature not enabled for org | "AI Agents is not enabled" |
Session not found (select-ai-session) | "Session not found" message |
No sessions yet (list-ai-sessions) | "You have no sessions" message |





