You can receive messages in Teams whenever an action triggers.
1. Create an incoming webhook in Teams
- Navigate to the channel where you want to add the webhook and select (•••) More Options from the top navigation bar.
- Choose Connectors from the drop-down menu and search for Incoming Webhook.
- Select the Configure button, provide a name, and, optionally, upload an image avatar for your webhook.
- The dialog window will present a unique URL for that channel. Make sure that you copy and save the URL – we will need it in the next step.
- Select the Done button. The webhook will now be available in the team channel.
For more details, see the Microsoft Teams documentation.
2. Setup the webhook in PostHog
Navigate to project settings in PostHog paste the URL you copied from Teams into the "Webhook integration section".
Click "Test & Save" and you should receive a message on Teams.
3. Post actions to the webhook
In PostHog, navigate to the action that you'd like to receive webhooks for. Then select "Post to webhook when this action is triggered". You can also modify the message format.