Send PostHog event data to Slack webhooks

Last updated:

|Edit this page|

Use this destination to send custom messages into Slack based on PostHog events or actions.

If you want to receive regular insight or dashboard subscriptions to Slack, checkout our subscriptions docs.

Requirements

Using this requires either PostHog Cloud, or a self-hosted PostHog instance running a recent version of the Docker image.

You'll also need access to the relevant Slack account.

Installation

  1. In PostHog, click the Data pipeline tab in the left sidebar.

  2. Click the Destinations tab.

  3. Search for Slack and click + Create.

    Creating a Slack destination
  4. Choose an existing Slack connection or click Connect to Slack. You will be redirected to Slack to install the PostHog app.

    Choosing a Slack workspace
  5. Make sure the PostHog app has been added to your desired Slack channel. Type the Slash command /invite @PostHog directly in the channel to add the integration.

  6. Choose your event or action matching and customize your message using Slack's block kit.

  7. When selecting a Slack channel, you can either search for channels by name in the dropdown or paste a channel ID (e.g., C1234567890).

  8. Once done, press Create & Enable and watch your messages appear in Slack.

Example Slack message

You can see a full example of this in our tutorial on how to send survey responses to Slack

Configuration

OptionDescription
Slack workspace
Type: integration
Required: True
Channel to post to
Type: integration_field
Required: True

Select the channel to post to (e.g. #general). The PostHog app must be installed in the workspace.

Emoji icon
Type: string
Required: False
Bot name
Type: string
Required: False
Blocks
Type: json
Required: False

(see https://api.slack.com/block-kit/building)

Plain text message
Type: string
Required: False

Optional fallback message if blocks are not provided or supported

FAQ

Is the source code for this destination available?

PostHog is open-source and so are all the destination on the platform. The source code is available on GitHub.

Who maintains this?

This is maintained by PostHog. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Questions? Ask Max AI.

It's easier than reading through 662 pages of documentation

Community questions

Was this page useful?

Next article

Send PostHog event data using webhooks

With webhook destinations, you can send event data from PostHog to any HTTP endpoint, whether it's to your own backend, an internal system, or a third-party platform. Browse all the Destinations listed in the sidenav to integrate with well-known platforms like Slack , HubSpot , or Zapier . Check out Sources to learn how to connect your systems like CRM, payment processor, or database with PostHog data for all-in-one analytics. Setting up destination webhooks 1. Create a new destination In…

Read next article