Skip to Content
Solution PlaysPlay 16: Play 16 β€” Copilot Teams Extension πŸ‘₯

Play 16 β€” Copilot Teams Extension πŸ‘₯

Build a Teams message extension with Adaptive Cards, Microsoft Graph, and SSO.

Deploy a Teams-native AI assistant. Message extensions appear in the compose box, Adaptive Cards display rich responses, Microsoft Graph provides organizational data, and SSO means zero login prompts. Publishes to Teams desktop, mobile, and web.

Quick Start

cd solution-plays/16-copilot-teams-extension teamsapp new --template ai-bot --name my-teams-ext teamsapp deploy --env dev teamsapp preview --env dev # Opens in Teams for testing code . # Use @builder for Teams/Graph, @reviewer for SSO audit, @tuner for UX/perf

Architecture

πŸ“ Full architecture details

ServicePurpose
Azure Bot ServiceTeams bot registration and message routing
App Service (B1)Bot runtime hosting
Azure AD / Entra IDSSO authentication + Graph API consent
Microsoft GraphUser profile, files, calendar, email access
Azure OpenAI (gpt-4o-mini)AI response generation

Key Metrics

  • SSO success: β‰₯99% Β· Response latency: <3s Β· Card render: 100% cross-client Β· Error rate: <1%

DevKit (Teams/M365-Focused)

PrimitiveWhat It Does
3 agentsBuilder (Teams extension/Graph/Adaptive Cards), Reviewer (SSO/permissions/throttling), Tuner (card layout/Graph batching/cost)
3 skillsDeploy (119 lines), Evaluate (100 lines), Tune (112 lines)
4 prompts/deploy (Teams + Bot Service), /test (message extension), /review (security/manifest), /evaluate (SSO/quality)

Note: This is a Teams/M365 platform play. TuneKit covers Adaptive Card design, Graph API batching/caching, SSO token management, and cost per interaction β€” not AI model parameters.

Cost Estimate

ServiceDev/PoCProductionEnterprise
Azure Bot Service$0/mo$50/mo$50/mo
Azure OpenAI$30/mo$250/mo$900/mo
Azure App Service$0/mo$70/mo$180/mo
Azure AI Search$0/mo$75/mo$250/mo
Cosmos DB$3/mo$50/mo$200/mo
Key Vault$1/mo$3/mo$10/mo
Application Insights$0/mo$20/mo$70/mo
Total$34/mo$518/mo$1,660/mo

πŸ’° Full cost breakdown

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/16-copilot-teams-extensionΒ 

FAI Manifest

FieldValue
Play16-copilot-teams-extension
Version1.0.0
KnowledgeF4-GitHub-Agentic-OS, O6-Copilot-Extend, O3-MCP-Tools-Functions
WAF Pillarssecurity, reliability, operational-excellence
Groundednessβ‰₯ 85%
Safety0 violations max
Last updated on