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:

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.

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?
- ๐งฉ Anti-Agent Sprawl
- ๐ข Enterprise Grade with Foundry Agent Service
- ๐ก Maximize Copilot Investment
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.
Using Microsoft Foundry Agent Service offloads many time-consuming aspects of developing AI solutions. It streamlines many aspects of agent development for common requirements, such as:
- Agent configuration and deployment.
- Standalone agents or multi-agent solutions via workflows.
- Support for private networking scenarios to comply with hard environment constraints.
- Fine-tuning capabilities for specific base models.
- Agent testability via built-in and customizable evaluation tools.
- Built-in guardrails.
- Built-in memory management (short term/long term).
- Monitoring via built-in integration with Azure Monitor/Application Insights and OpenTelemetry.
Because it is an Azure resource like any other, it also means all the infrastructure provisioning can be automated using Infrastructure as Code (IaC) tools like Bicep or Terraform, which is essential for maintaining consistency across different environments (development, testing, production).
When your agents need Microsoft 365 data (e.g., SharePoint documents), use the built-in Copilot stack โ not a custom storage solution. The Copilot Retrieval API gives you direct access to the Microsoft 365 semantic index, which is already indexing your tenant's content behind the scenes.
Why built-in over custom?
| Built-in (Copilot Connectors) | Custom (e.g., Azure AI Search) | |
|---|---|---|
| Security & compliance | โ Automatic โ permissions, sensitivity labels, and data residency handled by M365 | โ You must replicate permission enforcement and keep it in sync at all times |
| Cost | โ Already included with Copilot licenses | โ Additional infrastructure and maintenance costs |
| Reusability | โ Same connectors work across custom engine agents, Copilot Studio, and Agent Builder | โ Tied to your specific implementation |
| Maintenance | โ Microsoft handles scaling, updates, and optimizations | โ You own the full lifecycle |
| Indexing control | โ Opaque โ no control over chunking or embeddings | โ Full control over the indexing pipeline |
The only trade-off is that you don't control the indexing process. But in most enterprise scenarios, the security and compliance benefits far outweigh the need for custom indexing.
Indexing Microsoft 365 data in a custom solution requires replicating permission enforcement, keeping document lifecycles in sync, and respecting data residency โ essentially rebuilding what M365 already provides. This should be reserved for very specific use cases where custom indexing is truly required (which is rarely the case). Even then, Microsoft still recommends the Copilot Retrieval API. Skipping these constraints may lead to serious security issues.
However, if the data has no permission or compliance requirements, custom storage like Azure AI Search is perfectly acceptable.
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