https://github.com/trycourier/courier-netlify-msteams
https://github.com/trycourier/courier-netlify-msteams
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/trycourier/courier-netlify-msteams
- Owner: trycourier
- License: mit
- Created: 2021-04-23T12:43:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T23:43:23.000Z (over 2 years ago)
- Last Synced: 2025-10-21T22:32:46.746Z (9 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Courier Netlify Microsoft Teams Bot
[](https://app.netlify.com/sites/courier-netlify-msteams/deploys)
This is an Microsoft Teams Bot that can be deployed to a [Netlify](https://netlify.com/) Function. It contains commands for adding [Courier](https://courier.com) recipient profiles for [Microsoft Teams channels and users](https://docs.courier.com/docs/microsoft-teams). This was created as a quick way to get started sending Microsoft Teams notifications using Courier.
## Installation Options
First, sign up for a Courier Developer Account, it’s [free to sign up](https://app.courier.com/register/) and includes 10,000 notifications per month. Next, create a Microsoft Teams application using App Studio inside your Team. Then, choose an option below.
This starter focuses on building profiles using commands. Each command requires a recipient id and will update that profile stored in Courier. You can extend this bot to better fit your use case.
### Option one: One-click deploy
[](https://app.netlify.com/start/deploy?repository=https://github.com/trycourier/courier-netlify-msteams)
Clicking this button will create a new repo for you that looks like this one, and sets that repo up immediately for deployment on Netlify. You will be prompted for a repo name and to provide the values for the following environment variables to use with Courier and the Microsoft Teams Bot.
- Courier Auth Token (`COURIER_AUTH_TOKEN`), **required** - You can find this value in your [Courier API Keys Settings](https://app.courier.com/settings/api-keys).
- MS Teams App ID (`MSTEAMS_APP_ID`), **required** - App ID generated in App Studio.
- MS Teams App Password (`MSTEAMS_APP_PASSWORD`), **required** - App Password generated from the Bot Capabilities section of App Studio.
### Option two: Manual clone
You will need to [install the Netlify CLI](https://docs.netlify.com/cli/get-started/) and connect it to your Netlify site to run locally. You will need to use [ngrok](https://ngrok.com/) to test it locally.
1. Clone this repo: `git clone https://github.com/trycourier/courier-netlify-msteams.git`
2. Connect to Netlify using `ntl init`
3. Add the above environment variables using `ntl env:set [env var] [value]`
4. Run the app locally using `ntl dev`
5. Make any changes and push to your repo to deploy.