m365-agents-ts

Build Microsoft 365 Agents in TypeScript with Express routing and streaming responses.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill m365-agents-ts-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m365-agents-ts
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-typescript/skills/m365-agents-ts
Command: npx skills add https://github.com/microsoft/skills --skill m365-agents-ts-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to build and host enterprise-grade Microsoft 365 Agents using TypeScript, providing a consistent framework for routing, streaming responses, and Copilot Studio integration.

Core Features & Use Cases

  • Express-hosted AgentApplication with routing and event handlers for Microsoft 365 agents
  • Streaming responses support for long-running interactions with clients
  • Copilot Studio client integration and WebChat support for seamless agent interactions
  • Clear guidelines and samples for deployment in enterprise environments

Quick Start

Install the required npm packages and run a sample AgentApplication to start testing immediately.

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 Microsoft 365 agents in TypeScript?

You can build Microsoft 365 agents in TypeScript using a scalable framework with Express-hosted routing, streaming responses, and Copilot Studio client integration for enterprise-grade hosting.

Does Microsoft 365 agents hosting support streaming responses?

Yes, Microsoft 365 agents hosting supports streaming responses to handle long-running interactions with clients, ensuring continuous data delivery during complex agent operations.

Can I integrate Copilot Studio with an Express-hosted agent application?

Yes, you can integrate Copilot Studio with an Express-hosted AgentApplication using the @microsoft/agents-copilotstudio-client package for seamless multi-channel agent interactions.

What npm packages are required for Microsoft 365 agents hosting?

Microsoft 365 agents hosting requires the @microsoft/agents-hosting, @microsoft/agents-hosting-express, @microsoft/agents-activity, and @microsoft/agents-copilotstudio-client npm packages.

How do I configure deployment for Microsoft 365 agents in TypeScript?

You configure deployment for Microsoft 365 agents in TypeScript by setting environment variables, which provide the necessary configuration for running the Express-hosted agent application.

What is the best way to support WebChat in a Microsoft 365 agent?

The best way to support WebChat in a Microsoft 365 agent is using the provided TypeScript framework, which includes built-in WebChat support and Copilot Studio client integration for seamless interactions.