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.

chore(replay-vision): align summarizer prompt template with new UI framing (#62607)

Tue Haulundbbfe559cd806
diff --git a/products/replay_vision/backend/temporal/scanners/prompts/summarizer.jinja b/products/replay_vision/backend/temporal/scanners/prompts/summarizer.jinja
index 19b8c1ed376b..d5ff307c4d2d 100644
--- a/products/replay_vision/backend/temporal/scanners/prompts/summarizer.jinja
+++ b/products/replay_vision/backend/temporal/scanners/prompts/summarizer.jinja
@@ -1,6 +1,9 @@
{% extends "base.jinja" %}
{% from "_macros.jinja" import cite_in %}
-{% block task %}Summarize this session per these instructions: {{ user_prompt }}
+{% block task %}Summarize this session.{% if user_prompt %}
+
+Additional context from the team operating the product being recorded:
+{{ user_prompt }}{% endif %}
`title` is at most ~80 characters and contains no event citations. `summary` should be {{ length_guidance }}.
diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx
index 1fce35de09b0..5cbd36e637df 100644
--- a/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx
@@ -95,7 +95,7 @@ export function ScannerTypeConfigEditor({ scannerId }: { scannerId: string }): J
<ScannerPromptField
scannerId={scannerId}
label="Additional context"
- caption="We maintain the core summary prompt. Use this to give context about your product or steer summaries in a direction — for example, the ideal user flow."
+ caption="The core summarizer prompt is built in. Use this field to add product context or steer summaries — for example, what the ideal user flow looks like."
placeholder="e.g. This is a B2B analytics tool. Users usually come to build a dashboard — call out where they get stuck in that flow."
/>
<LemonField name="scanner_config.length" label="Summary length">