m365-agents-ts

Build multichannel Microsoft 365 agent applications with TypeScript and Express.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill m365-agents-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m365-agents-ts
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/m365-agents-ts
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill m365-agents-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a ready-reference and implementation patterns for building multichannel Microsoft 365 agents that handle Teams messaging, invoke activities, streaming responses, and direct Copilot Studio integration, reducing integration friction and wiring effort.

Core Features & Use Cases

  • AgentApplication routing patterns for TypeScript/Node.js projects to centralize conversation handlers.
  • Express hosting with startServer for simple deployment and HTTP integration.
  • Streaming response patterns for long-running completions and chunked delivery to clients.
  • Copilot Studio client and WebChat integration for direct-to-engine conversations and front-end embedding.
  • Use Case: implement an enterprise Teams bot that streams generated content from Azure OpenAI and forwards feedback via Copilot Studio.

Quick Start

Start the Express-hosted AgentApplication using the provided TypeScript patterns to handle messages, streaming responses, and Copilot Studio conversations.

Frequently Asked Questions about m365-agents-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Microsoft 365 agent in TypeScript that handles Teams messaging?

Build Microsoft 365 agents in TypeScript using AgentApplication routing patterns to centralize conversation handlers for Teams messaging. Express hosting provides simple deployment and HTTP integration for your Node.js projects.

Can I stream responses from Azure OpenAI to a Microsoft Teams bot?

Yes, stream responses from Azure OpenAI to a Microsoft Teams bot using streaming response patterns for long-running completions. This delivers chunked content directly to clients through your AgentApplication.

How does Copilot Studio client integration work with Express and TypeScript?

Copilot Studio client integration connects Express-hosted TypeScript applications directly to the Copilot engine using bearer tokens. WebChat integration enables front-end embedding for direct-to-engine conversations.

What packages do I need for a multichannel Microsoft 365 agent in Node.js?

Building multichannel Microsoft 365 agents requires @microsoft/agents-hosting, @microsoft/agents-hosting-express, @microsoft/agents-activity, and @microsoft/agents-copilotstudio-client packages to handle messaging and streaming.

Does the Microsoft 365 agents SDK support invoke activities in TypeScript?

Yes, the Microsoft 365 agents SDK supports invoke activities in TypeScript alongside messaging and streaming responses. AgentApplication routing patterns centralize these conversation handlers for enterprise scenarios.

What is the best way to host a Microsoft 365 agent application using Express?

Host a Microsoft 365 agent application using Express with the startServer method for simple deployment and HTTP integration. This approach supports Teams messaging, streaming completions, and Copilot Studio wiring.