Survey responses webhook

Last updated:

|Edit this page

It can be useful to receive notifications whenever a user responds to your survey. For example, messages containing their response can be sent to Slack, Discord, Teams, or your own custom destination.

To do this, go to the data pipeline destinations tab and search for the Slack destination (or HTTP Webhook for custom) and click + Create. On the creation screen:

  1. Follow the steps to integrate with your Slack workspace if you haven't already and then select it.

  2. Make sure the PostHog integration is added to the channel you want to send messages to and select it.

  3. Under Match event and actions, select survey sent.

  4. Under Blocks, modify the text to include the survey name and response. For example:

JSON
{
"text": {
"text": "*{person.name}* sent a response to {event.properties.$survey_name}: {event.properties.$survey_response}",
"type": "mrkdwn"
},
"type": "section"
},
  1. Customize the name and description, and press Create & enable.
Create Slack destination

You can then test the destination and it will start sending survey responses to Slack.

Slack message

Questions?

Was this page useful?

Next article

Conditional questions

It is useful to be able to display survey questions conditionally. For example, you may want to ask follow-up questions based on a user's responses. PostHog offers several ways to do this: Simple branching For every question type, you can define the next step to navigate to after a question is completed. Click on After this question, go to: , then choose the next step you want to transition to. The options are: Next question Any specific question Confirmation message (if present) or End…

Read next article