teams_notification

Sends formatted notification cards to Microsoft Teams via incoming webhooks using Python script and customizable Markdown messages with theme colors and env variables for URLs.

2|2|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/nickhou1983/github-copilot-hands-on --skill teams-notification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: teams_notification
Source: https://github.com/nickhou1983/github-copilot-hands-on/tree/main/.github/skills/teams_notification
Command: npx skills add https://github.com/nickhou1983/github-copilot-hands-on --skill teams-notification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, python-dotenv, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of sending formatted notification cards to Microsoft Teams channels, streamlining communication and alerts.

Core Features & Use Cases

  • Customizable Notifications: Send messages with custom titles, bodies, and colors to specific Teams channels.
  • Environment Agnostic: Can be used in various CI/CD pipelines or automated workflows.
  • Use Case: Notify your development team in a dedicated Teams channel when a new build is deployed to production, including a link to the build status.

Quick Start

Send a message to your Teams channel using the provided webhook URL and message content.

Frequently Asked Questions about teams_notification

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

FAQPage Schema
How do I send a formatted notification card to Microsoft Teams via webhook?

To send a Microsoft Teams notification, you execute the provided Python script with your incoming webhook URL. This posts a formatted message card with your custom title, body, and theme color directly to the targeted channel.

Can I use Markdown in my Teams webhook alert messages?

Yes, Teams webhook alert messages support Markdown formatting. You can format the body text of your notification cards using standard Markdown syntax to structure your alerts and status updates.

Do I need to store the Teams webhook URL in environment variables?

Yes, the script uses python-dotenv to load the Teams webhook URL from environment variables. Storing the webhook URL in a .env file keeps your credentials secure and environment agnostic for CI/CD pipelines.

What is the best way to customize the color of Teams alert notifications?

You can customize the color of Teams alert notifications by specifying a theme color parameter when calling the script. This allows you to visually distinguish between different types of alerts and status updates in the channel.

Does this Teams notification script require any specific Python dependencies?

Yes, sending Teams notifications requires the requests and python-dotenv libraries. The requests library handles the HTTP POST to the webhook, while python-dotenv manages your environment variables.

Can I integrate Teams webhook notifications into an automated workflow?

Yes, this Teams notification method is environment agnostic and designed for automated workflows. You can execute the script within CI/CD pipelines to automatically alert your development team when a new build is deployed.