Microsoft Dev Blogs

Build message extensions for Microsoft Teams and Copilot

thumbnail

Capabilities of message extensions for Microsoft Teams:

  • Search commands: allow users to search for information or content and insert the results as rich cards into their conversations. Users can initiate a task module to display an Adaptive Card or a web page and collect inputs.
  • Action commands: enable users to perform actions on the content retrieved by the search commands. This can include editing, viewing, or updating the information.
  • Link unfurling: automatically expand links shared in conversations to display rich previews or summary cards.

Steps to create a message extension using Teams Toolkit:

  1. Select "Create an app using the extension" option.
  2. Choose the message extension template and specify the app features as custom search results.
  3. Select JavaScript as the programming language.
  4. Provide a name for the application, such as "npm search app".
  5. Scaffold the app project using the default workspace folder.
  6. Log in to Teams Toolkit using a Microsoft 365 developer tenant account.
  7. Ensure sideloading is enabled in your tenant to allow local installation of the app during development.
  8. Implement the search functionality in the bot code file, which will handle user requests and communicate with the webservice via the Azure Bot Channel.

Example usage of message extension for Azure DevOps: As a project manager in a team chat, you can use the Azure DevOps message extension to get updates on work items. You can search for a specific item, insert an actionable card with edit/view buttons into the chat, and mention the teammate responsible for it. This allows for seamless collaboration and easy access to relevant information without leaving the Teams platform.

The Azure DevOps message extension provides functionalities like search commands for finding work items, action commands for editing or viewing them, and link unfurling to display relevant previews. This integration streamlines workflows and enhances productivity for project management within Teams.