: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
import { IconFunnels, IconGraph, IconPeople, IconPiggyBank, IconRetention, IconTrends } from '@posthog/icons'
export interface CanvasGenerateSuggestion {
label: string
description: string
icon: typeof IconTrends
prompt: string
}
// Starter prompts under the composer on an empty canvas. Mirrors PostHog Desktop.
export const CANVAS_GENERATE_SUGGESTIONS: CanvasGenerateSuggestion[] = [
{
label: 'Weekly active users',
description: 'Active users over time, with the trend called out',
icon: IconTrends,
prompt: 'Build a dashboard showing weekly active users over the last 90 days, with the overall trend and any notable changes called out.',
},
{
label: 'Signup to activation funnel',
description: 'Conversion at each step from signup to activation',
icon: IconFunnels,
prompt: 'Build a funnel from signup to activation, showing the conversion rate at each step and where the biggest drop-off happens.',
},
{
label: 'Revenue by plan',
description: 'Revenue trends over time, broken down by plan',
icon: IconPiggyBank,
prompt: 'Build a canvas showing revenue trends over time broken down by plan, calling out the fastest-growing and shrinking segments.',
},
{
label: 'Top events',
description: 'The most common events over the last 30 days',
icon: IconGraph,
prompt: 'Build a breakdown of the most common events over the last 30 days, ranked by volume, with a short note on what stands out.',
},
{
label: 'Retention cohorts',
description: 'How well users stick around week over week',
icon: IconRetention,
prompt: 'Build a retention cohort view showing how well new users stick around week over week, and highlight which cohorts retain best.',
},
{
label: 'Feature adoption',
description: 'Adoption and engagement of a specific feature',
icon: IconPeople,
prompt: 'Build a canvas analyzing how a specific feature is being adopted: usage over time, share of active users, and engagement.\n\nFeature to analyze: ',
},
]