:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat: add Support to product onboarding (#70486)
Alex Vbecc1d84df19
diff --git a/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts b/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.tsindex 77ffba9940b6..ed2d079c250d 100644--- a/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts+++ b/frontend/src/scenes/onboarding/legacy/onboardingLogic.test.ts@@ -90,6 +90,8 @@ describe('onboardingLogic — flow composition', () => {[ProductKey.LOGS, ['install:logs', 'invite_teammates:logs']],// Data Warehouse has no install step — the link_data step is the entry point.[ProductKey.DATA_WAREHOUSE, ['link_data:data_warehouse', 'invite_teammates:data_warehouse']],+ // Support has no product-specific step; it's enabled on completion, so only the shared step shows.+ [ProductKey.CONVERSATIONS, ['invite_teammates:conversations']],]it.each(cases)('builds the expected flow when only %s is selected', (product, expected) => {@@ -594,6 +596,7 @@ describe('onboardingLogic — flow composition', () => {[ProductKey.WORKFLOWS, /workflow/i],[ProductKey.LOGS, /log/i],[ProductKey.DATA_WAREHOUSE, /sources|data-management/i],+ [ProductKey.CONVERSATIONS, /support/i],]it.each(cases)('%s lands on a product-specific page', (product, pattern) => {diff --git a/frontend/src/scenes/onboarding/legacy/onboardingLogic.tsx b/frontend/src/scenes/onboarding/legacy/onboardingLogic.tsxindex a31fc7ef000e..9bc0192cc1e3 100644--- a/frontend/src/scenes/onboarding/legacy/onboardingLogic.tsx+++ b/frontend/src/scenes/onboarding/legacy/onboardingLogic.tsx@@ -521,6 +521,10 @@ export const onboardingLogic = kea<onboardingLogicType>([if (primary === ProductKey.ERROR_TRACKING) {teamLogic.actions.updateCurrentTeam({ autocapture_exceptions_opt_in: true })}+ // Support has no onboarding screen; enable the product on completion so it's live on arrival.+ if (primary === ProductKey.CONVERSATIONS) {+ teamLogic.actions.updateCurrentTeam({ conversations_enabled: true })+ }// Only mark a product as fully onboarded when the user actually visited at// least one of its steps. Without this guard, a hand-crafted URL with an// arbitrary `?with=...` list would silently flip every secondary's flag ondiff --git a/frontend/src/scenes/onboarding/legacy/productRecommendations.ts b/frontend/src/scenes/onboarding/legacy/productRecommendations.tsindex 0aac6e8b7301..75d1fff96867 100644--- a/frontend/src/scenes/onboarding/legacy/productRecommendations.ts+++ b/frontend/src/scenes/onboarding/legacy/productRecommendations.ts@@ -48,10 +48,15 @@ export const USE_CASE_OPTIONS: ReadonlyArray<UseCaseDefinition> = [{key: 'collect_feedback',title: 'Collect user feedback',- description: 'Collect feedback with in-app surveys and watch session recordings',+ description: 'Collect feedback with surveys and Support tickets, and watch session recordings',iconKey: 'IconMessage',iconColor: 'rgb(243 84 84)',- products: [ProductKey.SURVEYS, ProductKey.PRODUCT_ANALYTICS, ProductKey.SESSION_REPLAY],+ products: [+ ProductKey.SURVEYS,+ ProductKey.CONVERSATIONS,+ ProductKey.PRODUCT_ANALYTICS,+ ProductKey.SESSION_REPLAY,+ ],},{key: 'monitor_ai',diff --git a/frontend/src/scenes/onboarding/legacy/stepProviderRegistry.ts b/frontend/src/scenes/onboarding/legacy/stepProviderRegistry.tsindex a4d9c8e0979b..34716d2832a5 100644--- a/frontend/src/scenes/onboarding/legacy/stepProviderRegistry.ts+++ b/frontend/src/scenes/onboarding/legacy/stepProviderRegistry.ts@@ -1,6 +1,7 @@import { ProductKey } from '~/queries/schema/schema-general'import { aiObservabilityOnboarding } from 'products/ai_observability/frontend/onboarding/steps'+import { conversationsOnboarding } from 'products/conversations/frontend/onboarding/steps'import { dataWarehouseOnboarding } from 'products/data_warehouse/frontend/onboarding/steps'import { errorTrackingOnboarding } from 'products/error_tracking/frontend/onboarding/steps'import { experimentsOnboarding } from 'products/experiments/frontend/onboarding/steps'@@ -38,4 +39,5 @@ export const onboardingProviderRegistry: Partial<Record<ProductKey, ProductOnboa[ProductKey.WORKFLOWS]: workflowsOnboarding,[ProductKey.LOGS]: logsOnboarding,[ProductKey.MCP_ANALYTICS]: mcpAnalyticsOnboarding,+ [ProductKey.CONVERSATIONS]: conversationsOnboarding,}diff --git a/frontend/src/scenes/onboarding/shared/utils.tsx b/frontend/src/scenes/onboarding/shared/utils.tsxindex 57568024a804..79f5d6375b90 100644--- a/frontend/src/scenes/onboarding/shared/utils.tsx+++ b/frontend/src/scenes/onboarding/shared/utils.tsx@@ -336,4 +336,21 @@ export const availableOnboardingProducts: AvailableOnboardingProducts = {scene: Scene.MCPAnalytics,setupEffort: 'low',},+ [ProductKey.CONVERSATIONS]: {+ name: 'Support',+ description: 'Receive customer questions over web, email, Slack, and Microsoft Teams',+ userCentricDescription: 'Triage, assign, and automate customer support in PostHog',+ capabilities: ['In-app chat widget', 'Email, Slack & Teams channels', 'Direct conversations API'],+ valueProps: [+ { title: 'In-app widget', problem: 'Let customers reach you without leaving your product' },+ { title: 'Multi-channel inbox', problem: 'Handle email, Slack, and Teams tickets in one place' },+ { title: 'Direct API', problem: 'Build your own support UI on top of the conversations API' },+ ],+ hedgehog: HedgehogReporter,+ icon: 'IconMessage',+ iconColor: 'var(--color-product-support-light)',+ url: urls.supportTickets(),+ scene: Scene.SupportTickets,+ setupEffort: 'low',+ },}diff --git a/frontend/src/scenes/sceneTypes.ts b/frontend/src/scenes/sceneTypes.tsindex 2410539bdb08..38e916ec5c60 100644--- a/frontend/src/scenes/sceneTypes.ts+++ b/frontend/src/scenes/sceneTypes.ts@@ -159,6 +159,7 @@ export enum Scene {Survey = 'Survey',SurveyWizard = 'SurveyWizard',SurveyFormBuilder = 'SurveyFormBuilder',+ SupportTickets = 'SupportTickets',Surveys = 'Surveys',SystemStatus = 'SystemStatus',ToolbarLaunch = 'ToolbarLaunch',diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 6ed6e15dad2c..59fde864e90f 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -6914,7 +6914,8 @@ export type AvailableOnboardingProducts = Record<| ProductKey.AI_OBSERVABILITY| ProductKey.WORKFLOWS| ProductKey.LOGS- | ProductKey.MCP_ANALYTICS,+ | ProductKey.MCP_ANALYTICS+ | ProductKey.CONVERSATIONS,OnboardingProduct>diff --git a/products/conversations/frontend/onboarding/steps.tsx b/products/conversations/frontend/onboarding/steps.tsxnew file mode 100644index 000000000000..e16e7e573d8c--- /dev/null+++ b/products/conversations/frontend/onboarding/steps.tsx@@ -0,0 +1,11 @@+import { type ProductOnboardingProvider } from 'scenes/onboarding/legacy/types'+import { urls } from 'scenes/urls'++// Support has no product-specific onboarding screen worth showing: enabling the product and+// configuring channels both live in Support settings. `conversations_enabled` is flipped on+// onboarding completion in onboardingLogic (see ProductKey.CONVERSATIONS there), so the flow is+// just the shared trailing steps, then a redirect into the product.+export const conversationsOnboarding: ProductOnboardingProvider = {+ steps: () => [],+ completeRedirectUrl: () => urls.supportTickets(),+}