Deck Docs
Integrations

PostHog

Sync survey responses from PostHog

PostHog Integration

Connect PostHog to automatically analyze product survey responses for customer insights.

What Gets Synced

When you connect PostHog to Deck, we sync:

  • Surveys - Survey configurations, questions, and question types
  • Responses - Individual user responses to your PostHog surveys
  • Free-text answers - Open-ended survey responses are analyzed by AI to extract structured insights
  • Structured data - Ratings, NPS scores, multiple choice, and other structured responses

Setting Up the Integration

  1. Navigate to Settings → Integrations
  2. Find PostHog in the available integrations
  3. Click Connect and authorize Deck to access your PostHog project
  4. Choose which surveys to sync

How It Works

Once connected, Deck:

  1. Retrieves survey responses from your PostHog project
  2. Maps question types - Automatically identifies free-text, ratings, NPS, single/multiple choice, and other question types
  3. Analyzes free-text feedback - Uses AI to extract structured insights, sentiment, and themes from open-ended responses
  4. Processes structured responses - Captures ratings, selections, and numeric data as queryable insights
  5. Links to user data - Matches responses to customer accounts when email addresses are available
  6. Detects NPS responses - Automatically identifies and processes NPS questions for score tracking

Use Cases

  • In-app feedback - Analyze feedback collected within your product
  • Feature satisfaction - Understand how users feel about specific features
  • NPS tracking - Automatically process NPS survey responses
  • User research - Capture insights from product surveys
  • Beta feedback - Gather feedback during feature rollouts

AI-Powered Survey Analysis

Free-Text Analysis

Open-ended survey questions are automatically analyzed to extract actionable insights:

  • Insight extraction - AI identifies meaningful feedback from free-text responses
  • Sentiment analysis - Each response is classified as positive, negative, or neutral
  • Theme assignment - Responses are automatically tagged with relevant themes
  • Category detection - Feedback is categorized (pain points, feature requests, usability issues, etc.)
  • Quote preservation - Original verbatim quotes are preserved for context

The AI skips non-actionable responses (e.g., "N/A", "good", "no comment") and focuses on substantive feedback containing 10+ meaningful words.

Structured Data Processing

Non-text question types are processed as structured insights:

  • Rating scales - Numeric ratings (1-5, 1-10, etc.)
  • NPS scores - 0-10 likelihood-to-recommend scores
  • Single/multiple choice - Selected options captured as structured data
  • Yes/no questions - Boolean responses
  • CSAT & CES scores - Customer satisfaction and effort scores

Automatic NPS Detection

Deck automatically detects and processes NPS questions in your PostHog surveys using two methods:

  1. Explicit NPS Question Type - Surveys with question type "NPS" (0-10 scale) are automatically recognized
  2. Smart Pattern Recognition - For rating-scale questions, Deck analyzes the survey name and question text to identify NPS patterns (e.g., "How likely are you to recommend...", "Net Promoter Score", "NPS Survey")

When an NPS question is detected, Deck:

  • Captures the 0-10 score and classifies respondents as Promoters (9-10), Passives (7-8), or Detractors (0-6)
  • Extracts any follow-up text responses for AI analysis
  • Automatically creates entries in your NPS Score dashboard
  • Links feedback to themes and generates insights

Score-Only vs. Score + Feedback:

  • With follow-up text - The score and feedback are analyzed by AI to extract themes, sentiment, and insights
  • Score-only - The numeric score is recorded deterministically without LLM processing (more efficient for large volumes)

This automatic detection means you don't need to configure anything - just connect PostHog and sync your surveys. Deck will identify and process NPS questions automatically.

Managing the Integration

Settings Page

Manage your PostHog integration in Settings → Integrations → PostHog:

  • View connection status
  • Select which surveys to sync
  • Configure automatic sync settings
  • View imported response count
  • Disconnect the integration

PostHog Management Page

Access detailed survey management at Manage → PostHog (/manage/posthog):

  • View all synced surveys - See all surveys you've imported from PostHog
  • Import prevention - Previously imported surveys are clearly marked and cannot be re-imported to prevent duplicates
  • Response counts - Track how many responses have been synced for each survey
  • Last sync time - See when each survey was last updated
  • Survey insights - View AI-extracted insights from free-text responses in a clean, scannable table
  • Expandable insights - Click on any insight to reveal supporting quotes inline without leaving the page
  • Individual responses - Browse and search through survey responses by respondent, date, or question
  • Theme analysis - See which themes emerge from survey feedback
  • Question breakdown - View responses organized by question with sentiment and category analysis

Insights Table Features

The PostHog insights table provides a comprehensive view of AI-extracted insights:

  • Insight Name - The main insight extracted from survey responses
  • Themes - Automatically tagged themes associated with the insight
  • Sentiment - Visual badge showing positive, negative, or neutral sentiment
  • Category - Feedback categorization (e.g., Pain Points, Feature Requests, Usability Issues)
  • Expandable Quotes - Click any row to reveal the full verbatim quote that supports the insight
  • Quick Links - Jump to the full insight detail page to see connections to other feedback sources

Automatic Sync

Configure your PostHog integration to automatically sync new responses:

  1. Go to Settings → Integrations → PostHog
  2. Toggle Auto Sync to enable automatic updates
  3. Choose sync frequency: hourly, daily, or manual
  4. New responses will be automatically imported and analyzed

Privacy and Security

Deck uses PostHog's secure API for data access. We only analyze survey responses you authorize and process them solely for insight generation.