Skip to content

About

Go-to hub for building and deploying production-ready AI Agent solutions!

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Latest commit

Β 

History

468 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI Agent Runbooks

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.

What is AI Agent Runbooks?

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.

Repository Structure

πŸ“¦ 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

How to use this repository

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/

πŸš€ Quick Start

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
  • 🧾 Autonomous Invoice Orchestration Agent with GHCP Harness β€” GitHub Copilot harness scenario that extracts fields from emailed PDF invoices into Dataverse, then starts an approval or sends the invoice to Finance for review. Two Workflows flows and one runtime skill.
  • πŸ’Ό 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.
  • πŸ—“οΈ Calendar Request Approval Agent β€” Conversational calendar intake, deterministic approval and routing, SharePoint/Outlook publication, and explicit identity and recovery controls.
  • πŸ§‘β€πŸ’Ό Chief of Staff Cowork Agent β€” Five configured skills for weekly leadership briefs, stakeholder drafts, review packs and factual team-work visibility, with human review and people-safety boundaries.
  • 🀝 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.
  • πŸ›‘οΈ Compliance Self-Inspection Agent β€” Runbook for employee-initiated fair-trade / antitrust awareness checks over the employee's own OneDrive and Outlook content, with personal risk-rated results and metadata-only completion reporting to Legal.
  • βš–οΈ Contract Review with GitHub Copilot Harness β€” Copilot Studio reference design for evidence-linked clause comparison and approved fallback drafts, using authorized read-only tools and mandatory qualified counsel review.
  • βš–οΈ 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.
  • 🎟️ Copilot Licence Lifecycle Agent β€” Copilot Studio agent that manages the Microsoft 365 Copilot licence estate: inventory, dormancy detection, reclaim and reassignment, and waitlist management.
  • 🌍 Country-Aware HR Knowledge Agent β€” Country-scoped SharePoint knowledge with organization-wide and optional restricted ingestion lanes, authenticated retrieval, and query-time authorization.
  • βš™οΈ 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.
  • πŸ“„ 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.
  • πŸ”§ 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
  • πŸ“Š 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.
  • πŸ“¬ 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.
  • πŸ§‘β€πŸ’» 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.
  • 🧾 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.
  • πŸ§‘β€πŸ’Ό HR Onboarding Agent β€” Autonomous agent that helps new hires find HR-related information using a ServiceNow Knowledge Base
  • πŸ§‘β€πŸ’Ό HR Onboarding Agent with GHCP Harness β€” GitHub Copilot harness scenario with normal HR conversation, onboarding checklists and connected user-mailbox Workflows replies using two runtime skills. The workflow sends the agent's HTML through Outlook without per-message approval. This is a development walkthrough with documented limitations, not a deployed integration.
  • 🎫 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.
  • 🧩 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.
  • πŸ—“οΈ 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.
  • πŸ“Š Recurring Analytics Cowork Agent β€” Six configured skills for Sales, Finance, Retail, Manufacturing and Service reviews from existing Power BI, Fabric or Excel data, with reconciled KPIs and Markdown/HTML outputs.
  • 🏒 Workplace Agent β€” Declarative agent that handles internal FAQ inquiries and application request workflows using SharePoint, Dataverse, and Power Automate

Persona-Based Cowork Scenarios

Twelve configuration-first persona suites follow the Chief of Staff documentation model, with unchanged starter plugin archives, package/version notes, source and approval boundaries, and workflow-specific acceptance tests. Archive availability is not tenant deployment or acceptance.

Domain Persona scenarios
Leadership Decision Maker, Force Multiplier
Sales Quota Carrier, Number Owner
Marketing Campaign Operator, Launch Lead
Finance and operations Close Owner, Procurement Operator
Legal Contract Counsel, Portfolio Counsel
Service Case Specialist, Service Ops Leader

Use the persona catalogue and Persona Skill Routing and Scope Isolation to select workflows and qualify overlapping packages before installation.

Need implementation patterns? Check out 02-patterns/ for proven technical approaches including Copilot Studio orchestration, RAG patterns, and multi-agent design.

  • πŸ›‘οΈ 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
  • 🚒 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
  • πŸ”€ Agentic Workflow Orchestration β€” Multi-agent orchestration pattern for coordinating handoffs between specialized agents, enabling sequential, concurrent, and hierarchical agent collaboration across complex business workflows
  • 🎨 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 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
  • πŸ’³ Copilot Credits & Cost Control β€” Credit consumption rates, what enforcement actually stops, capacity allocation, per-agent caps, and chargeback design
  • 🧭 Copilot Studio Harness Selection & Cowork β€” Upfront compatibility gaps for channels, authentication, variables, Adaptive Cards, knowledge, and models, plus decision trees for Cowork versus building, standard generative versus GitHub Copilot harness, and release readiness
  • πŸ”„ 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
  • πŸš€ Cowork Enablement β€” Shared tenant readiness, security, governance, billing, functional validation and handover pattern applied within Cowork business scenarios
  • 🧰 Cowork Skill Delivery and Scheduled Reviews β€” Trusted skill/reference packaging, routing, tenant qualification, controlled sharing, optional scheduled draft preparation and operational handover
  • 🧾 Cowork Spending Policies and Cost Governance β€” Copilot Credit spending policies, limits, alerts, discovery, billing methods, precedence rules and reconciliation for Cowork; distinct from the Copilot Studio credits pattern
  • 🧭 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
  • 🧠 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
  • GitHub Copilot Harness Execution β€” Adaptive planning, knowledge, tools, skills, and Hooks inside Copilot Studio, with independent backend authorization, exact-version human approvals, and idempotent consequential workflows.
  • πŸ“Š Governed Analytics Review β€” Explicit source/KPI contracts, period and numerical reconciliation, RLS and generated-artifact access checks, with consistent narrative and dashboard outputs
  • πŸ”¬ Grounding & Response Quality Remediation β€” An ordered diagnostic ladder for agents that are built, connected, and still answering badly
  • βœ‹ 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
  • πŸ“‘ 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
  • 🚦 Pilot-to-Scale Validation Gates β€” Evidence-gated progression from pilot to scale: signed boundary, control posture, verification tests, success criteria, ownership matrix and a recorded expand/extend/pause/stop decision
  • Persona Skill Routing and Scope Isolation - Route-or-clarify, same-name skill/version conflicts, built-in overlap and verified seller/team, delegate and case/matter scope across persona packs; includes a delivery runbook.
  • πŸ”Ž MCP Federated Connectors β€” A separate pattern for live, read-only external retrieval in supported Microsoft 365 Copilot experiences without a source index, including custom connector onboarding, complex-authentication limitations, and private-only on-premises connectivity gaps
  • πŸ”Œ 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)

Need reference material? 03-references/ holds the curated documentation index and the field-observed constraints that shape design.

Key Features

πŸ€– 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

Support & Documentation

  • πŸ“– 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

πŸ“£ Feedback & Issues

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.

Contributing

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.

Trademarks

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.


About

Go-to hub for building and deploying production-ready AI Agent solutions!

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages