Skip to main content

Meet the Whatever AI Assistant!

Built as part of the Microsoft Agents League Contest โ€” February 2026.

Agent category: Enterprise Agents

Created by

Franck Cornu

Microsoft 365 Copilot/AI Architect - MVP M365 Development/Copilot Extensibility

"One agent to greet them, many agents behind the scenes โ€” whatever your question, WAIA has you covered." ๐Ÿš€


Overviewโ€‹

This agent was developed for the Microsoft Agents League Contest held in February 2026. It demonstrates a multi-agent system answering HR and IT questions, leveraging Microsoft Foundry Agent Service, Microsoft 365 Copilot, Microsoft 365 Agents SDK, and an MCP server. It has been designed with the following concerns in mind:

  • ๐Ÿš€ Production-ready โ€” Not just screenshots or a "works on my machine" sample. A full working solution with fully automated deployment in an Azure environment you can replicate in your own company.
  • ๐Ÿ”ง Flexible & extensible โ€” Need a Finance agent, a Legal agent, or a Facilities agent? Just plug it in. The architecture scales effortlessly on both the data side โ€” thanks to the Copilot Retrieval API supporting multiple connector types (built-in or custom) โ€” and the agent side, where adding a new workflow node with its own model, instructions, and tools is straightforward. It adapts to a wide range of use cases.
  • ๐Ÿ’ก Real-world insights โ€” Tips, tricks, and strategies from actual implementation โ€” not just theory. See Implementation strategies.
๐ŸŽฌ

See it in action

Watch the Whatever AI Assistant in both Microsoft Teams and Microsoft 365 Copilot

๐Ÿ“บ Teams experience

๐Ÿ’ก Copilot experience

The complete architecture can be seen here.

Here's what the Whatever AI Assistant brings to the table:


Multi-Agent Routing with Streamingโ€‹

The solution uses a multi-agent system to address user queries across various topics (HR & IT in this sample). We leverage the Copilot Retrieval API for content grounding, narrowed to specific domains and configurations. The multi-agent system is orchestrated by a workflow agent that routes user queries to the appropriate specialist agent. Below is a visual representation of the workflow:

For instance the question "How can I reset my password?" would be routed to the IT agent, while "What is the leave policy?" would be routed to the HR agent without the user noticing.

To improve user experience, we use the OpenAI Responses API streaming capability coupled with Teams streaming:

LLM Model

We use GPT 4.1 for all the agents as it is sufficiently capable of handling both the routing and the question-answering tasks in this scenario. However, the architecture is model-agnostic, so you can choose different models for different agents based on their specific needs and complexity


Secure MCP Server with OAuth Identity Passthrough + claims-based JWT validationโ€‹

A custom stateless MCP server that leverages the Agent Service OAuth Identity Passthrough feature to securely execute requests on behalf of the authenticated user through MCP tools. Incoming requests from the Agent Service are verified using a claims-based JWT validation (expiration, audience, tenant ID, and issuer).


Write Operations Through MCP Toolsโ€‹

The solution showcases how to integrate LLM and Teams/Copilot channels seamlessly for information gathering โ€” for instance, collecting specific details for a ticket through a controlled form after a user request.


Custom Disclaimer on New Conversationโ€‹

A custom disclaimer is displayed as an Adaptive Card on first interaction or new chat sessions to set expectations with users. It enhances the default Copilot/Teams disclaimer feature, tailored to company requirements.


Human in the Loop โ€” MCP Tool Approvalโ€‹

Catch tool approval requests from the agent and integrate an approval process directly in Teams or Copilot via a dynamic Adaptive Card.

note

Tool approval is only supported by prompt agents, not workflow agents.


Built-in Debug Modeโ€‹

Knowing why your agent gave a wrong answer is key to improving it. This solution includes a special /debug on|off command that displays the agent's reasoning and steps taken for each query, right in the Teams or Copilot channel via an Adaptive Card. This avoids costly back-and-forth with the analytics backend and lets you quickly spot and fix issues in the agent configuration, tools, or knowledge base.


OpenTelemetry Integration for MCP Toolsโ€‹

The solution demonstrates how to integrate OpenTelemetry with HTTP headers with propagation (traceparent) in MCP tools to capture detailed telemetry for all interactions with the MCP server โ€” including tool calls, responses, and errors. This allows developers to monitor and troubleshoot their agents more effectively in addition to the Agent Service builtin open telemetry integration, with insights directly integrated into the Foundry portal via Application Insights.


Citations Handlingโ€‹

The solution properly handles links and references sent by the agent for both Teams and Copilot experiences:


More than a sample, a reusable pattern!โ€‹

This solution is more than a sample โ€” it's a reusable pattern you can apply in your own company.

We provide a full end-to-end working implementation of a multi-agent system integrated with Microsoft 365 Copilot Chat and Microsoft Teams, leveraging Microsoft Foundry workflow agents and the Microsoft Graph API. The solution features a secure OAuth integration for external MCP server interactions, multiple Adaptive Cards for enhanced user experience, and a connected agents architecture to handle different types of employee inquiries.

Why this pattern matters?

By using agent service and workflow agents, it maintains one facade with a more complex backend of agents that can be updated and improved without impacting the user experience. The user doesn't need to know about every single agent the company developed. Companies tend to multiply agents thanks to all the tools we have now to create ones (Copilot Studio, SharePoint agents, etc.). It can become complicated for users to know which agent to ask for what.

Contest criterionโ€‹

โœ…

Microsoft 365 Copilot Chat Agent

The agent is fully accessible within both Microsoft 365 Copilot Chat and Microsoft Teams, providing a seamless conversational experience across platforms.

โœ…

External MCP Server Integration (Read/Write)

The solution integrates an external custom MCP server supporting both read and write operations. The copilot_retrieval tool handles knowledge retrieval from SharePoint, while the submit_ticket tool enables users to submit IT support tickets โ€” all through the MCP protocol.

โœ…

OAuth Security for MCP Server

All MCP server interactions are secured using Microsoft Foundry's OAuth Identity Passthrough, ensuring secure authentication and authorization with delegated permissions only.

โœ…

Adaptive Cards for UI/UX

The solution uses multiple Adaptive Cards to deliver a rich, interactive experience:

๐Ÿ› Debug card

For developers to inspect agent reasoning and steps taken

๐ŸŽซ Ticket submission form

To collect structured issue details

โš ๏ธ Disclaimer card

Displayed on first interaction or new chat sessions

๐Ÿ” MCP tool approval card

With approve/deny actions (single-agent setup only)

โœ…

Connected Agents Architecture

A multi-agent architecture powered by Microsoft Foundry workflow agents, featuring four specialized agents:

๐Ÿ“‹ HR Agent

Answers HR policy questions

๐Ÿ–ฅ๏ธ IT Agent

Answers IT policy questions and facilitates ticket submission

๐Ÿ›ก๏ธ Fallback Agent

Gracefully handles off-topic queries

๐Ÿ”€ Router Agent

Classifies user intent and routes to the appropriate specialist