MS Teams Deployment Notifications (via n8n + Relay)¶
To facilitate efficient communication of deployment actions, we use MS Teams notifications via n8n and the Relay app to notify developers and stakeholders about deployment status and provide links to relevant changes.
Prerequisites¶
- You must be an admin of this repository.
- You must have access to the target MS Teams channel.
- You must have access to n8n: https://n8n.developer.gov.bc.ca
- You must have permission to install or access the Relay app in MS Teams.
1. Add the Relay App to the MS Teams Channel¶
To install the Relay app:
- Open Microsoft Teams
- Click Apps in the sidebar
- Search for Relay
- Click Add
- Select the channel(s) that should receive webhook notifications
If you do not see the Relay app, contact the Developer Experience / Workflows teams. It may take up to 24 hours for the app to appear.
2. Configure the n8n Workflow¶
- Log in to https://n8n.developer.gov.bc.ca using your IDIR account
- Open your webhook workflow
- Double-click the DevX Message Connector node
- Click the ✏️ icon next to Credential
- Paste your MS Teams channel link
- In Teams: click channel → Copy link
- Save and exit
Payload Configuration (Important)¶
Set the Payload to Expression mode and use:
This supports:¶
3. Test the Webhook¶
- Open the Webhook node in n8n
- Click Listen for test event
- Send a test request:
- Confirm the message appears in the Teams channel
4. Publish the Workflow¶
Once testing is complete:
- Click Publish in n8n
- Use the Production URL
Important:
Use
/webhook/<workflow-id>Do NOT use
/webhook-test/<workflow-id>
5. Configure GitHub Secret¶
- Go to
GitHub → Settings → Secrets and variables → Actions - Add or update the following secret:
N8N_MSTEAMS_WEBHOOK_URL
Value:
https://n8n.developer.gov.bc.ca/webhook/<workflow-id>
6. Update GitHub Actions¶
7. Other Systems (Airflow, Jobs, etc.)¶
Send payloads in this format: