: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(today): make the briefing text shorter and more casual (#113928)
Vojta Bartošc60a28e6e415
diff --git a/products/today/backend/logic/prompt.py b/products/today/backend/logic/prompt.pyindex d86f0a231a6a..62dcd8ad8f3d 100644--- a/products/today/backend/logic/prompt.py+++ b/products/today/backend/logic/prompt.py@@ -12,10 +12,10 @@ from ..models import DailyBriefingfrom .content import BriefingContentfrom .fact_sheet import FactSheet, stored_fact_sheet-MAX_WORDS = 80-MAX_LINK_WORDS = 8-MAX_LABEL_WORDS = 6-MAX_SIGNAL_CHARS = 40+MAX_WORDS = 45+MAX_LINK_WORDS = 5+MAX_LABEL_WORDS = 4+MAX_SIGNAL_CHARS = 30def _item_rows(fact_sheet: FactSheet, summaries: Mapping[str, str]) -> list[dict[str, object]]:diff --git a/products/today/backend/logic/prompts/briefing.md.j2 b/products/today/backend/logic/prompts/briefing.md.j2index 81ba0f543af1..e5a02f534be5 100644--- a/products/today/backend/logic/prompts/briefing.md.j2+++ b/products/today/backend/logic/prompts/briefing.md.j2@@ -36,13 +36,13 @@ The person's most recent briefings are inside <recent_briefings>, newest first,Answer with one JSON object in the shape below and nothing else.-Voice: write like a teammate who gives a quick, friendly update in person. Plain words, sentence case, no hype. The person reads the whole text in about 20 seconds, so say only the gist of each item. Cut filler such as "it looks like", "you may want to", "this is a" or "worth a look", and do not explain what a product or tool does. Use the words the person sees in PostHog. Never an em dash or an en dash; use a comma or a new sentence. Never quote customer text, never name customers or people, and never name a time of day: the page greets the person itself and the text stays up for hours.+Voice: write like a teammate who sends a quick Slack message. Casual and short. Use everyday words and contractions ("it's", "there's", "you're"). Sentence case, no hype. The person reads the whole text in about 10 seconds, so give only the gist of each item. Less is better: when a sentence works without a word, cut the word. Cut filler such as "it looks like", "you may want to", "this is a" or "worth a look". Do not use formal words such as "currently", "additionally", "regarding", "requires", "pending" or "impacted". Do not use technical detail from the summary, such as error names, file names, metric names or numbers the person does not need to decide. Do not explain what a product or tool does. Use the words the person sees in PostHog. Never an em dash or an en dash; use a comma or a new sentence. Never quote customer text, never name customers or people, and never name a time of day: the page greets the person itself and the text stays up for hours.-- `headline`: one sentence that counts the items and says what they need, true for every item. For example "Three reports need your input" only when all three wait for the person, else "Five reports need your attention".-- `paragraphs`: three short paragraphs, or fewer when there are fewer than three items, at most {{ max_words }} words in total. Each paragraph is a list of segments `{"text", "item_key"}`, and the page shows each paragraph as its own block.- - The first paragraph is the top item only, in one sentence, two at most: what is going on and why it comes first.- - The second and third paragraphs share the other items. Group them so each paragraph reads as one thought, for example the reports that wait for the person and the ones that need a reviewer or an owner. Keep the item order inside a paragraph.- - Give each item one short sentence with the one fact that matters. Do not retell the summary.+- `headline`: a short sentence, at most six words, that counts the items and says what they need, true for every item. For example "3 reports need your input" only when all three wait for the person, else "5 reports need you".+- `paragraphs`: at most three paragraphs, or fewer when there are fewer than three items, at most {{ max_words }} words in total. Each paragraph is a list of segments `{"text", "item_key"}`, and the page shows each paragraph as its own block.+ - The first paragraph is the top item only, in one short sentence: what is going on and why it comes first.+ - The second and third paragraphs share the other items, one short sentence each. Group them so each paragraph reads as one thought, for example the reports that wait for the person and the ones that need a reviewer or an owner. Keep the item order inside a paragraph.+ - Give each item only the one fact that matters, in a few words. Do not retell the summary.- Say what is going on, not what to do. Never start a sentence with a command such as "Review", "Check", "Confirm" or "Fix". The page already links each item, so the person knows where to act.- Never start two sentences with the same word. Connect related items in one sentence when it reads naturally.- Never list items ("Also ready: X, Y and Z") and never start a sentence with "Also".@@ -51,15 +51,15 @@ Voice: write like a teammate who gives a quick, friendly update in person. Plain- `items`: one entry for each item in <items>, in the same order:- `key`: the item's key, exactly as given.- `label`: at most {{ max_label_words }} words that say what it is.- - `signal`: the short fact that makes it matter, at most {{ max_signal_chars }} characters. Examples: "Waits for your input", "P1, fix ready", "P0, nobody owns it".+ - `signal`: the short fact that makes it matter, at most {{ max_signal_chars }} characters. Examples: "Needs your call", "P1, fix ready", "P0, no owner".This example shows the tone and the shape only. Square brackets mark the linked segments. Do not copy its words or facts:-> The [signup form fix] is ready, and it only waits for your decision.+> The [signup form fix] is ready, it just needs your OK.>-> Two reports ask for your review. [Billing page crashes] went up after the last release, and the [funnel query numbers] look off since Monday.+> [Billing page crashes] and [funnel numbers] need a review.>-> Nobody owns the [CSV export failure] yet, even though it is a P0.+> [CSV export failure] is a P0 and nobody owns it yet.```json{