Welcome to AI Agent Runbooks β your go-to hub for building and deploying production-ready AI Agent solutions on Microsoft platforms. This repository provides structured runbooks, proven technical patterns, and real-world scenarios to accelerate your AI Agent delivery with confidence.
AI Agent Runbooks is an open, community-driven repository that provides hands-on implementation guides, validated technical patterns, and ready-to-use scenario blueprints for building enterprise-grade AI Agents using Microsoft technologies β including Copilot Studio, Azure AI Foundry, and Microsoft 365 Copilot.
Whether you're building your first agent or scaling across multiple business domains, this repository gives you the structure and guidance to deliver faster and smarter.
π¦ ai-agent-runbooks
βββ π 00-overview/ β Understand the repository objectives, structure, and how to get started
βββ π 01-scenarios/ β Explore pre-built AI Agent use cases and end-to-end implementations
βββ π 02-patterns/ β Learn technical patterns and industry best practices
βββ π 03-references/ β Access additional resources, templates, and reference materials
| Purpose | Description | Starting Path |
|---|---|---|
| π Overview | Understand the repository objectives, agent taxonomy, and navigation guide | 00-overview/ |
| π― Agent Scenarios | Explore pre-built use cases such as HR Onboarding Agent, Helpdesk Agent, and more | 01-scenarios/ |
| ποΈ Technical Patterns | Learn implementation patterns for Copilot Studio, Azure AI, and multi-agent orchestration | 02-patterns/ |
| π References | Access templates, guides, architecture references, and additional resources | 03-references/ |
New here? Start with 00-overview/ to understand the structure and agent taxonomy.
Ready to build? Jump to 01-scenarios/ and explore real-world agent implementations like:
- π€ Autonomous Invoice Orchestration Agent β Autonomous agent that helps employees create payment request forms and get them approved by their manager
- π§βπΌ HR Onboarding Agent β Autonomous agent that helps new hires find HR-related information using a ServiceNow Knowledge Base
- π§ Dynamics 365 Monitoring Agent β AI-powered monitoring and diagnostics agent for D365 Finance & Supply Chain using Application Insights telemetry
- π Dynamics 365 PO Generation Agent β Autonomous agent that creates a purchase order autonomously or manually
- π’ Workplace Agent β Declarative agent that handles internal FAQ inquiries and application request workflows using SharePoint, Dataverse, and Power Automate
- π§Ύ F&O User Onboarding Agent β Autonomous onboarding solution that automates user provisioning in Microsoft Entra ID and Dynamics 365 Finance & Operations, including approval workflows and role assignment.
- π§© M365 Agent β Collection of pre-built, deploy-ready Microsoft 365 Copilot agents (e.g., Plan My Day, Executive Briefing, Request Tracker) designed to accelerate common workplace scenarios and enable rapid customization.
- βοΈ D365 F&SCM Compare & Copy Configurations Agent β AI-powered agent that compares and copies module configurations across Dynamics 365 Finance & Supply Chain Management environments, helping administrators identify configuration differences, validate settings, and maintain consistency using the Dynamics 365 ERP MCP server.
- π DynPerf Performance Agent β AI-powered performance diagnostics agent that leverages DynamicsPerf data to help administrators analyze SQL query statistics, detect bottlenecks, and optimize Dynamics 365 environment performance with actionable, natural-language insights.
- π ERP-D365-Inventory-Optimization-Agent β Interactive agent that generates reports on Inventory from D365 F&O for inventory managers and other stakeholders to get current information, predictions, and other analytics around their inventory data.
- π« IT Service Desk Insights Agent β Declarative agent grounded on ServiceNow knowledge and catalog content that answers employee how-to questions and performs sentiment and theme analysis over ticket text, with permission-trimmed retrieval.
- π§βπ» Employee Self-Service Agent β One conversational front door in Microsoft 365 Copilot for HR and IT support, grounded on the HRIS, ITSM, and SharePoint. Includes the qualification and readiness work that dominates this delivery.
- ποΈ Copilot Licence Lifecycle Agent β Copilot Studio agent that manages the Microsoft 365 Copilot licence estate: inventory, dormancy detection, reclaim and reassignment, and waitlist management.
- πΌ CRM Account Planning Cowork Agent β Copilot Cowork connected to the CRM through a purpose-built MCP server, producing branded account plans, QBR decks, and pipeline models as Office artifacts.
- π€ Client Meeting Preparation Agent β Pre-meeting briefings and post-meeting file notes for advisers and relationship managers, assembled from the book of record, relationship history, and the client file. Built for regulated advisory work, with hard advice boundaries and information barrier enforcement.
- π¬ Email & Mailbox Triage Agent β Classifies, prioritises, routes, and drafts responses for high-volume shared mailboxes, with a draft-never-send boundary and a ticket handoff. The most frequently requested use case across the CAF portfolio.
- ποΈ Meeting Intelligence Agent β Extracts decisions, actions, and owners from meeting transcripts under a hard evidence rule, deduplicates across recurring series, and tracks commitments to closure. Includes the consent position and the invented-action release gate.
- βοΈ Contract & Legal Intelligence Agent β Clause extraction, risk flagging against documented standard positions, tracked-changes redlines, and evidence retrieval β with a hard legal-advice boundary and a qualified human on every decision.
- π Document Processing & Extraction Agent β Classify, extract, validate, and route high-volume documents at production accuracy, with confidence-based human review and output shaped to whatever the downstream system actually accepts.
Need implementation patterns? Check out 02-patterns/ for proven technical approaches including Copilot Studio orchestration, RAG patterns, and multi-agent design.
- π§ Enterprise RAG Pattern β Multi-source, governed RAG pattern that grounds LLM responses in organizational data (SharePoint, OneDrive, Dataverse, Azure SQL, Fabric, Dynamics CRM) with document-level access control and full citation trails via Azure AI Search
- π Agentic Workflow Orchestration β Multi-agent orchestration pattern for coordinating handoffs between specialized agents, enabling sequential, concurrent, and hierarchical agent collaboration across complex business workflows
- π§ Declarative vs Custom Engine Agent β Decision framework for selecting between Declarative Agents and Copilot Studio Custom Engine Agents, covering three build methods (Agent Builder, Copilot Studio, Agents Toolkit), knowledge scale matrices, reference architectures, use-case scenario library, performance comparisons, and step-by-step implementation runbooks for both agent types and multi-agent composition
- π Copilot Connector Knowledge Onboarding β Getting third-party enterprise content (ServiceNow, Jira, Confluence, Salesforce, Workday) into the Microsoft Graph index with correct ACLs, including the permission validation evidence that unblocks security review
- π‘οΈ Agent Governance & Rollout Control Plane β Separating agent creation from consumption, controlling sharing, establishing an approval route, and building the inventory and audit position that enterprise rollouts depend on
- π³ Copilot Credits & Cost Control β Credit consumption rates, what enforcement actually stops, capacity allocation, per-agent caps, and chargeback design
- π¬ Grounding & Response Quality Remediation β An ordered diagnostic ladder for agents that are built, connected, and still answering badly
- π’ Agent Publishing & Channel Deployment β The last mile: licensing prerequisites, channel-specific behaviour, authentication, and rendering across Microsoft 365 Copilot, Teams, SharePoint, and third-party channels
- π MCP Server Integration β Connecting third-party systems (Salesforce, Workday, ServiceNow, Databricks, Snowflake, GitHub) to Copilot Cowork, declarative agents, Copilot Studio, and Foundry via Model Context Protocol servers, including tool design, per-user identity, dynamic tool discovery, and gateway-mediated topologies for on-premises and private-network backends (APIM, Apigee, Workato, MuleSoft)
- π¨ Branded Office Artifact Generation β Making agent-generated PowerPoint, Word, and Excel output brand-compliant, factually reliable, and safe to send, using the Organization Asset Library and an entry-point Γ model test matrix
- π Copilot Studio Migration & Modernisation β Moving an existing conversational or automation estate onto Copilot Studio: inventory and disposition, the pre-requisite work packages that stall most migrations, parallel-run cut-over, and decommissioning
- 𧬠Copilot Studio & Foundry Split Architecture β Deciding what belongs in Copilot Studio and what belongs in Foundry, how the halves communicate, and the ownership, cost, and latency consequences of the boundary
- π Intelligent Document Processing Pipeline β Classify β extract β validate β route β output: extraction stack selection, confidence thresholds derived from measured data, validation against master data, and the downstream boundary when the target system has no API
- β Human-in-the-Loop Review & Approval β Designing the gate between an agent's output and a consequence: gate placement, what the reviewer must be shown, confidence-based routing, review fatigue, and the audit record
Need reference material? 03-references/ holds the curated documentation index and the field-observed constraints that shape design.
- π Agent Delivery Reference Library β Microsoft and non-Microsoft references organised by delivery question rather than by product
β οΈ Known Limitations & Workarounds β constraints observed repeatedly in the field, with the design responses that work
π€ Agent Runbooks β Step-by-step implementation guides for real-world AI Agent scenarios
π― Pre-built Scenarios β Ready-to-deploy use cases across HR, IT, Customer Service, and more
ποΈ Technical Patterns β Validated design patterns for Copilot Studio and Azure AI Foundry
π Copilot Studio Native β First-class support for Microsoft Copilot Studio agent development
β‘ Accelerated Delivery β Structured runbooks to reduce time-to-production
π Comprehensive Guidance β End-to-end documentation from design to deployment
- π Full documentation available in each section's README
- π‘ Scenario runbooks with step-by-step implementation instructions
- π§ Technical patterns with architecture diagrams and code samples
- π Best practices and lessons learned from real-world deployments
Found a bug? Have a question? We'd love to hear from you β no GitHub experience needed!
| Action | Description | |
|---|---|---|
| π | Report a Bug | Something not working as expected? A broken link, incorrect step, or outdated information? Let us know and we'll look into it. |
| π¬ | Ask a Question | Not sure how something works? Ask the community and our team will help. |
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA), which confirms that you have the right to, and do, grant us the rights to use your contribution. For more details, visit Contributor License Agreements.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and will update the PR accordingly (for example, by adding a status check or comment). Simply follow the instructions provided by the bot. You only need to complete this process once for all repositories that use our CLA.
This project has adopted the Microsoft Open Source Code of Conduct.
For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos must comply with Microsoft's Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos is subject to the policies of those third parties.