You can send messages to Discord whenever an action triggers.
1. Create an incoming webhook in Discord
- Navigate to the channel where you want to add the webhook and select the 'Edit Channel' option from left navigation pane.
- Select the 'Integrations' option from the left navigation pane.
- If you are creating a webhook for the first time, click the "Create Webhook" button. If you have other webhooks, click "View Webhooks" and then "New Webhook".
- Give the webhook a name.
- Select the channel where the message should be posted from the dropdown.
- Click the "Copy Webhook URL" button to copy the URL.
It should look something like this.
For more information, see the Discord webhook docs.
2. Setup the webhook in PostHog
Copy the Webhook URL from Discord, navigate to project settings in PostHog, and paste the URL into the "Webhook integration section".
Click "Test & Save" and you should receive a message on Discord.
3. Post actions to the webhook
For each action that should be posted to Discord, select "Post to webhook when this action is triggered". You can also modify the message format.