This article has been moved!
We've recently updated our support center articles - Please bear with us while we make the transition. This article can now be found here!
You can have notifications from Hudu posted in Microsoft Teams
Overview
With Hudu, you can create alerts for expirations, monitored website alerts, and more. You can use email to receive these alerts, but you can also use Webhooks to send to outside services. In this case, we will setup Microsoft Teams to receive the messages.
Prerequisites
Before starting, you should create the team and channel (within that team) that you want messages to arrive in.
Instructions
- Go to the channel and click Connectors
- Click on Incoming Webhook and hit Add
- On the next screen, click on Add
- Enter some info like the name of the webhook and an image. Then, hit Create
- Copy the generated url
- Paste this URL in the Webhook URL field of the alert you are configuring.
Example Payloads
In order to have a message in your Discord, you will need to deliver a payload. Here are some examples:
Expirations
{"text": "There are *$EXPIRATIONS_COUNT* expirations expiring within *$TRIGGER_DAYS* days. View: [$EXPIRATIONS_HUDU_URL]($EXPIRATIONS_HUDU_URL)"}
Websites
{"text": "*$WEBSITE_NAME* appears to be down. View: [$WEBSITE_HUDU_URL]($WEBSITE_HUDU_URL)"}
Helpful links
Testing Webhooks
We provide a way to test your Webhooks. Navigate to Admin -> Alerts and click on Test Webhook. Note: we are only testing your connection and payload, not your variables, so sample variables will be filled in.