NOTE THIS IS A PUBLIC REPO - I am "working in the open". The final sample will be hosted elsewhere (TBD).
THERE SHOULD BE NO CONFIDENTIAL INFORMATION HERE PLEASE even in the issues, wiki, etc. If you need to share Microsoft internal details, please contact me in Teams and I'll add you to our v-team chat. If you'd like to contribute, please reach out to me to discuss.
This is a message extension intended to showcase the ability to use a bot-based Teams Search Message Extension with Microsoft 365 Copilot. Note that there is no special code, preview libaries etc. here - anybody can build one of these! Indeed that's the beauty of Microsoft 365 Copilot, it can consume information from Message Extensions without requiring updates or code changes!
At any given time the main
branch should work. Enhancements are in development in other branches and/or forks.
Thanks, Bob
This is the quick "first cut" at a Github Search ME which searches for Github issues and pull requests and displays them in an adaptive card. It is currently hard-coded to work with the Teams community samples repo (https://github.com/pnp/teams-dev-samples); a future version will allow configuring the repo using a setup page.
I am (temporarily) hosting a working version of the app in my Azure tenant, so you don't need to build or host the sample in order to try it. Actually it should work as a ME in any tenant. This hosted version reflects the code in the main
branch.
To run it, follow the general Copilot ME testing steps available internally to Microsoft dogfood testers.
Then download the app package and upload to Microsoft Teams.
Watch this space for updates - the manifest may change without notice but I will note any need to update in the "Current state of the sample" section above.
Prompts that are known to work:
- "Find github info relating to manifest"
This sample is based on the Teams Toolkit "Search Message Extension" template. No special build steps are required at this time so if you know your way around Teams Toolkit, just load it up and hit F5.
Here are build details from the Teams Toolkit project template.
- Node.js, supported versions: 16, 18
- An M365 account. If you do not have M365 account, apply one from M365 developer program
- Set up your dev environment for extending Teams apps across Microsoft 365
Please note that after you enrolled your developer tenant in Office 365 Target Release, it may take couple days for the enrollment to take effect.
- Teams Toolkit Visual Studio Code Extension version 5.0.0 and higher or TeamsFx CLI
Follow below instructions to get started with this application template for local debugging.
- Press
F5
or use theRun and Debug Activity Panel
in Visual Studio Code. - Select a target Microsoft application where the message extension runs:
Debug in Teams
,Debug in Outlook
and click theRun and Debug
green arrow button.
- Install ngrok and start your local tunnel service by running the command
ngrok http 3978
. - In the
env/.env.local
file, fill in the values forBOT_DOMAIN
andBOT_ENDPOINT
with your ngrok URL.BOT_DOMAIN=sample-id.ngrok.io BOT_ENDPOINT=https://sample-id.ngrok.io
- Executing the command
teamsfx provision --env local
in your project directory. - Executing the command
teamsfx deploy --env local
in your project directory. - Executing the command
teamsfx preview --env local --m365-host <m365-host>
in your project directory, where options form365-host
areteams
oroutlook
.
This template provides a simple functionality to search for npm
packages and render the result in Adaptive Card.
-
@mention
Your message extension from thesearch box area
. -
@mention
your message extension from thecompose message area
. -
Click the
...
under compose message area, find your message extension.