Automatically reply to messages in Teams (and soon other platforms).
You can download the extension for various browsers:
- The extension injects code into certain webpages (for example, https://teams.microsoft.com/, you can see the full list in the manifest file).
- This code watches for web requests to URLs matching a certain pattern. You can customize this pattern if you find that the extension isn't working.
- When a matching URL is found, the response is parsed and the relevant fields such as the message sender and text are extracted. This extraction is configurable so you can try changing the default extraction methods if you are having issues.
- The code checks your custom rules to find the first one that matches the text.
- If a rule matches, your reply is randomly picked from one the possible responses.
- If your reply has placeholders (for example
{{ FROM_FIRST_NAME }}
), then they get filled in. - A new web request is made to the
replyUrl
. A default for Teams has been set up but you can change it if you find that the extension isn't working.
Here are some development notes if you would like to contribute to the extension. This was built using webextension-toolbox.
yarn install
Run:
yarn dev chrome
Other options might build but as of May 2021, Teams isn't supported in other browsers.
Run:
yarn build chrome
Load the dist/<browser>
folder as an unpacked extension in your browser.