Skip to content

: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.

1.8 KB
Raw Blame
import * as deskWizardPng from '@posthog/brand/hoggies/png/desk-wizard'
import { IconLlmPromptManagement } from '@posthog/icons'

import { pngHoggie } from 'lib/brand/hoggies'
import type { SceneProductEmptyState } from 'lib/components/ProductEmptyState/types'
import { urls } from 'scenes/urls'

import { ProductKey } from '~/queries/schema/schema-general'
import { AccessControlLevel, AccessControlResourceType } from '~/types'

import { LLMPromptPreview } from './LLMPromptPreview'
import { llmPromptsSetupLogic } from './llmPromptsSetupLogic'

const HedgehogDeskWizard = pngHoggie(deskWizardPng)

export const llmPromptsEmptyState: SceneProductEmptyState = {
    statusLogic: llmPromptsSetupLogic,
    config: {
        productKey: ProductKey.LLM_PROMPTS,
        productName: 'Prompt management',
        icon: <IconLlmPromptManagement />,
        accentColor: 'var(--color-product-llm-analytics-light)',
        accentColorDark: 'var(--color-product-llm-analytics-dark)',
        hedgehog: HedgehogDeskWizard,
        text: {
            'needs-setup': {
                headline: 'Update prompts without redeploying',
                lead: 'Create, version, and fetch LLM prompts in PostHog, free of charge. A/B test prompts using experiments, and use production labels to only ship changes when you are ready.',
            },
        },
        primaryAction: {
            label: 'Create your first prompt',
            to: urls.aiObservabilityPrompt('new'),
            accessControl: {
                resourceType: AccessControlResourceType.LlmAnalytics,
                minAccessLevel: AccessControlLevel.Editor,
            },
            dataAttr: 'new-prompt-button',
        },
        skippable: false,
        docsUrl: 'https://posthog.com/docs/prompt-management',
        previewLabel: 'Your prompts, once created',
        Preview: LLMPromptPreview,
    },
}