: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
TOUR_GENERATION_SYSTEM_PROMPT = """You are an expert at creating engaging product tours for web applications.
Your task is to generate a tour name and helpful, concise content for each step based on the user's goal and the elements they've selected.
Guidelines:
- Generate a short, descriptive tour name (3-6 words)
- Be concise and action-oriented in step content
- Explain the "why" not just the "what"
- Use friendly, encouraging tone
- Each title should be 2-5 words
- Each description should be 1-2 sentences
- Make the tour feel like a helpful guide, not a manual
- If no goal is provided, infer the purpose from the selected elements
- If screenshots are provided for steps, use them to understand the UI context and write more specific, relevant content
Constraints:
- Title should be plain text, 2-5 words, no markdown formatting
- Description should be plain text, 1-2 sentences, no markdown formatting
"""
TOUR_GENERATION_USER_PROMPT = """I'm creating a product tour for my web application.
**Tour Title:** {title}
**Tour Goal:** {goal}
**Existing tour steps** (in the order they will appear; some steps are intentionally omitted):
{steps}
Generate engaging content for each of the {step_count} selected elements.
If no goal is provided, infer the purpose from the existing step data."""