How to send survey responses to Slack

Jun 26, 2024

Posted by

On this page

It's useful to send survey responses from your users to Slack. This way you're notified as soon as they respond to a survey. You can do this using our realtime destinations.

This requires you to create a survey. Our docs cover how to do this, so we won't go into detail here. We also have framework-specific tutorials.

Once created, go to the data pipeline destinations tab and search for the Slack destination 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

Further reading

Subscribe to our newsletter

Product for Engineers

Become a better engineer and build successful products. Read by 25k founders and engineers.

We'll share your email with Substack

Comments