--- name: prioritizing-my-inbox description: > Give the current user a personal, ranked shortlist of the PostHog Inbox reports they are most likely to care about right now. Reads their stored personal ranking first, with one `inbox-reports-list` call (`view=for_you`, `sort=personal`), and keeps its order and reasons. Uses `inbox-reports-for-me` for a fresh or focused list, and builds a ranking by hand from the activity summary and the ranking model's lifts only when no stored ranking applies or the user asks for custom weights. Use when the user says "let's look at my inbox", "what's in my inbox for me?", "my top 10 inbox reports", "what should I look at today?", or asks to re-rank, focus, or filter that list. For browsing, filtering, drilling into, or acting on a single report, use `inbox-exploration`. --- # Prioritizing my inbox The inbox on an active project holds hundreds or thousands of open reports. PostHog builds a personal ranking for each person on a schedule, from their activity summary, the ranking model's scores, and what waits on them. `inbox-reports-list` with `sort=personal` serves that stored ranking in one call. Start there. Build a ranking yourself only when the stored one does not apply, or the person asks for something it cannot give. ## Parse the request - **N**: "top 10", "my top 5", "25 things". Default to 10. Above 50, warn that the tail gets thin and ask whether they want a filter instead. - **Filters**: "only error tracking", "just P0 and P1", "nothing older than a week". Pass them as list filters (`source_product`, `priority`, `search`, `created_after`) in the same call. - **Focus**: "focus on anomaly stuff". A soft focus changes the order, so it needs a new build. See [Other routes](#other-routes). - **Window**: add `created_after` only when the person names a window. A generic "what should I look at" request takes no window, because older reports can still need attention. ## Step 1: Read the stored ranking ```json inbox-reports-list { "view": "for_you", "sort": "personal", "limit": 10 } ``` Never pass `ordering` with this call: an explicit `ordering` replaces `sort`, and you lose the stored ranking. Filters narrow the rows, and the rows that are left keep the stored order. This read never builds a ranking, never calls a language model, and never gathers candidates, so it is fast. Read three things in the response: - **`ranker`**. `personal` means the stored ranking ordered the page. `priority` means no stored ranking applied, and the page is in priority order. Do not call that page personal. See [Other routes](#other-routes). - **`ranking_id`**. Keep it from the first page. For the next page, pass the same `view`, `sort`, filters, and `limit`, with `offset` and this `ranking_id`, so a rebuild between calls does not reorder the pages. The response's `next` link does not carry `ranking_id`, so do not follow it as it is. - **Per-row `personal_tier` and `personal_reason`**. They are set on each report the language model ranked: `top`, `worth_a_look`, or `later`, with a short reason. After the ranked reports come the reports the ranking folded in, then every other report in priority order. A row the language model did not rank has null tier and reason, even when the stored ranking placed it. `inbox_merge_key` is the row's position in that combined order, from 0. The stored ranking is only as new as its last build. A report created after the build sits after the ranked reports until the next scheduled build. ## Step 2: Present the list Keep the returned order. You can point out a row that looks done, such as an already merged pull request or `already_addressed: true`, but do not move it without saying so. Do not replace the order with your own score. Lead with one line on the source: "From your personal ranking" when `ranker` is `personal`, else say that no personal ranking applied and the list is in priority order. Then the list, in order. For each report: ```text 1. [