Microsoft Teams Samples

repository·main·Indexed 23 days ago

https://github.com/officedev/microsoft-teams-samples

A collection of sample applications demonstrating how to build AI-powered, collaborative experiences for Microsoft Teams. The repository features samples built with the Teams SDK (supporting C#, JavaScript, and Python) and the TeamsJS client-side library, including implementations for Teams tabs, Outlook add-ins, and anonymous user support in meeting apps.

Tokens
454K
Snippets
822
Records
2.2K
Agent score
80%

What's inside microsoft-teams-samples

  1. Overview of Meetings AI Insights Bot

    main

    The Meetings AI Insights Bot is a sample that demonstrates how to use the Microsoft Graph API to retrieve AI insights generated by Copilot for recorded meetings.

    Key Requirements for Analysis:

    • A user ID with an active Copilot license (must be configured in the .env file).
    • A meeting join URL for the meeting you want to analyze (must be configured in the .env file).
    • The user must be either an organizer or an attendee of the meeting.

    Authentication Flow:

    1. Install the app in Microsoft Teams.
    2. Send any message to the bot to trigger the authentication process.
    3. Click Continue on the permission consent popup.
    4. Sign in using the same account whose user ID was specified in the .env file.
    5. Grant permission to access meeting resources.
    6. The bot will then retrieve the AI insights for the specified meeting.

    Important Manifest Note: The manifest file includes token.botframework.com in the validDomains list. This is required for any bot using the Bot Framework OAuth flow.

  2. Overview of Sequential Workflow Adaptive Cards Node.js

    main
    This sample application demonstrates how to implement sequential workflows and user-specific views using Adaptive Cards in a Microsoft Teams Bot built with Node.js and Bot Framework v4. It provides an incident management experience including incident creation, categorization, editing, and approval/rejection workflows.
  3. Overview of In-Meeting Document Signing sample

    main

    This sample application demonstrates how to implement in-meeting document signing within Microsoft Teams. It allows users to review and sign documents in real time during a meeting using programmatic content sharing to the meeting stage.

    Supported Personas

    • Document creator: Can add documents to be signed using the app.
    • Signer: Can review and sign documents during the meeting.
    • Reader: Can only read the documents being reviewed.

    Key Features

    • Teams SSO: Single Sign-On integration.
    • Programmatic sharing: Ability to share content directly to the meeting stage.
    • Dynamic Stage View: The app view on the stage adapts based on the user's authentication status.
    • Adaptive Cards & People Picker: For interactive UI and user selection.
    • Anonymous User support: Support for users without standard identities.
    • MSAL.js 2.0 support: For authentication flows.
  4. Overview of adhoccalls Transcripts and Recordings Viewer

    main

    This sample demonstrates how to use the Microsoft Graph adhocCalls API within a Microsoft Teams tab to retrieve and display call recordings and transcripts.

    Key features:

    • Transcripts: Fetched in VTT format and formatted with speaker labels.
    • Recordings: Securely accessed and streamed using authorization tokens.
    • Architecture: Uses Express.js on the backend for Microsoft Graph integration and React with Socket.IO on the frontend for a real-time, interactive interface.
    • Functionality: Allows users to view available recordings, read transcripts, and navigate datasets with pagination and live status indicators.
  5. Overview of Teams Meeting Context Sample Python

    main

    This sample application demonstrates how to retrieve and display meeting context and participant details within a Microsoft Teams meeting tab. It uses the bot's Meeting API to fetch information such as participant details (name, ID, etc.) and meeting specifics (start time, end time, joining URL).

    Key Features:

    • Bots
    • Meeting Chat
    • Meeting Details
    • RSC Permissions
  6. Overview of the Graph File Fetch sample

    main

    This sample demonstrates how to fetch shared images and files in Microsoft Teams group chats and team channels using the Microsoft Graph API. It incorporates several advanced features including:

    • Bot interaction: Communicating with users via a bot.
    • Teams SSO: Using Single Sign-On for bots.
    • Graph API: Accessing files and images shared in Teams.
    • Adaptive Cards: For rich UI interactions.

    Note: Microsoft Teams support for QR or barcode scanner capability is currently only available for mobile clients.

  7. Overview of the Virtual Assistant Root Bot

    main
    The Virtual Assistant Root Bot is a skill consumer bot built with the Teams AI library. It acts as a central orchestrator that dynamically routes user inputs to specific skill bots (such as an Echo bot or an AI Translator bot) based on detected intent. It returns tailored responses from these skills back to the user within Microsoft Teams.