: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(subscriptions): surface AI summaries in subscription skill discovery (#63089)
Matt Pua141689b7bda6
diff --git a/products/posthog_ai/skills/managing-subscriptions/SKILL.md b/products/posthog_ai/skills/managing-subscriptions/SKILL.mdindex 554dbddb6c63..5679b5362ac2 100644--- a/products/posthog_ai/skills/managing-subscriptions/SKILL.md+++ b/products/posthog_ai/skills/managing-subscriptions/SKILL.md@@ -1,6 +1,6 @@---name: managing-subscriptions-description: 'Manage PostHog subscriptions — scheduled email, Slack, or webhook deliveries of insight or dashboard snapshots. Use when the user wants to subscribe to an insight or dashboard, check existing subscriptions, change delivery frequency, add or remove recipients, or stop receiving updates.'+description: 'Manage PostHog subscriptions — scheduled email, Slack, or webhook deliveries of insight or dashboard snapshots, optionally with an AI-written summary attached to each delivery. Use when the user wants to subscribe to an insight or dashboard, get an AI summary attached to those deliveries, check existing subscriptions, change delivery frequency, add or remove recipients, or stop receiving updates.'---# Managing subscriptions@@ -14,6 +14,7 @@ Use this skill when the user:- Wants to "track", "follow", "subscribe to", or "get updates" about an insight or dashboard- Asks for "daily updates", "weekly reports", or "send me this every morning"+- Wants an **AI-written summary** attached to each delivery of an insight or dashboard (see step 6)- Wants to know what subscriptions they have- Asks to stop, pause, or unsubscribe from something- Wants to change who receives an update or how often@@ -126,6 +127,34 @@ For Slack delivery, include the `integration_id` from step 2:}```+#### Step 6 (optional): Attach an AI summary++For **insight and dashboard** subscriptions you can attach an AI-written summary to every+delivery — a short narrative that calls out what changed, outliers, and notable insights+alongside the snapshot. Set it at create time (or toggle later via `subscriptions-partial-update`):++- `summary_enabled: true` — turns on the per-delivery AI summary+- `summary_prompt_guide: "..."` — optional steer, e.g. "focus on sign-up conversion and any new drop-off points"++```json+{+ "dashboard": 67,+ "dashboard_export_insights": [101, 102, 103],+ "target_type": "email",+ "target_value": "[email protected]",+ "frequency": "weekly",+ "byweekday": ["monday"],+ "start_date": "2025-01-01T09:00:00Z",+ "summary_enabled": true,+ "summary_prompt_guide": "Call out outliers and new insights since last week"+}+```++Enabling a summary requires the organization to have **approved AI data processing**+(`Org settings → Data → AI data processing`) and to be within its active-summary cap and AI+credit budget; otherwise the create/update is rejected. `summary_enabled` does not apply to+prompt subscriptions — those are AI-generated by definition (see `creating-ai-subscription`).+### Updating a subscriptionUse `subscriptions-partial-update` with the subscription ID. Common updates:@@ -133,6 +162,7 @@ Use `subscriptions-partial-update` with the subscription ID. Common updates:- **Change frequency**: `{"frequency": "weekly", "byweekday": ["monday"]}`- **Add recipients**: Update `target_value` with the full comma-separated list- **Change channel**: Update `target_type` and `target_value` together+- **Toggle the AI summary** (insight/dashboard subs): `{"summary_enabled": true, "summary_prompt_guide": "..."}` — same AI-data-processing and budget gates as step 6### Deactivating a subscriptiondiff --git a/products/subscriptions/skills/creating-ai-subscription/SKILL.md b/products/subscriptions/skills/creating-ai-subscription/SKILL.mdindex c3775dc80a86..85b56a8112ac 100644--- a/products/subscriptions/skills/creating-ai-subscription/SKILL.md+++ b/products/subscriptions/skills/creating-ai-subscription/SKILL.md@@ -3,8 +3,11 @@ name: creating-ai-subscriptiondescription: >Create a recurring AI-generated PostHog report — schedule a free-text prompt torun on a cron, with the LLM-synthesized markdown delivered to email or Slack on- each tick. Use when the user wants "send me a weekly AI summary of X" rather than- a one-off report.+ each tick. Use when the user wants a recurring AI summary of X on any cadence+ (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI+ summary to an existing insight/dashboard+ subscription instead of a free-text prompt, see `managing-subscriptions` and its+ `summary_enabled` option.)---# Creating a prompt subscription@@ -21,9 +24,9 @@ derived and returned as the read-only `resource_type`:plans and runs HogQL over the project's data and synthesizes a fresh markdown reporteach tick (`resource_type: "ai_prompt"`)-Use **this** skill for the **prompt** kind — i.e. when the user wants something like-"send me a weekly AI summary of X" rather than a recurring snapshot of one existing-insight/dashboard, or a single one-off report. Pick a prompt subscription when the+Use **this** skill for the **prompt** kind — i.e. when the user wants a recurring AI+summary of X (on any cadence — daily, weekly, monthly, yearly) rather than a recurring+snapshot of one existing insight/dashboard, or a single one-off report. Pick a prompt subscription when thevalue is the _analysis itself_ (the LLM deciding what to query and writing it up),not a fixed chart they already built. For an insight/dashboard subscription, set`insight`/`dashboard` instead of `prompt` and the AI gates below don't apply.