Skip to content

onhello-automation/onhello

Repository files navigation

onhello

Automatically reply to messages in Teams (and soon other platforms).

Download

You can download the extension for various browsers:

How does it work?

  1. The extension injects code into certain webpages (for example, https://teams.microsoft.com/, you can see the full list in the manifest file).
  2. 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.
  3. 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.
  4. The code checks your custom rules to find the first one that matches the text.
  5. If a rule matches, your reply is randomly picked from one the possible responses.
  6. If your reply has placeholders (for example {{ FROM_FIRST_NAME }}), then they get filled in.
  7. 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.

Development

Here are some development notes if you would like to contribute to the extension. This was built using webextension-toolbox.

Install

yarn install

Development

Run:

yarn dev chrome

Other options might build but as of May 2021, Teams isn't supported in other browsers.

Build

Run:

yarn build chrome

Installing in the browser

Load the dist/<browser> folder as an unpacked extension in your browser.