Zum Inhalt springen
Skillpedia
E-Mail & Nachrichten41k · #6956

creating-ai-subscription

Was er macht

Dieser Skill erstellt einen wiederkehrenden Bericht, in dem eine KI aus einem Prompt in einfacher Sprache nach Zeitplan jeweils eine neue Zusammenfassung schreibt. Er richtet sich an Menschen, die eine laufende Analyse statt eines festen Diagramms wollen.

Wann du ihn nutzt

  • ✓Wenn du täglich, wöchentlich oder monatlich eine KI-Zusammenfassung zu einem Thema deiner Daten willst.
  • ✓Wenn du die Analyse selbst willst, nicht ein festes Diagramm, das du schon gebaut hast.
  • ✓Wenn du die Zusammenfassung per E-Mail, Slack oder Microsoft Teams erhalten willst.

Link zum Skill

https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Schick mir jeden Montag per E-Mail eine wöchentliche KI-Zusammenfassung, wie sich unsere Anmeldungen und Abwanderung verändert haben.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill plant deinen Prompt für einen festen Zeitplan ein. Jedes Mal plant eine KI ihre eigenen Datenabfragen, schreibt den Bericht in Markdown und liefert ihn an das gewählte Ziel.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Creating a prompt subscription

When to use this

A subscription delivers a PostHog report to email, Slack, or Microsoft Teams on a recurring schedule. There are three kinds, distinguished by which field you set — the kind is derived and returned as the read-only resource_type:

  • insight — periodic snapshots of one existing insight (resource_type: "insight")
  • dashboard — periodic snapshots of a dashboard's tiles (resource_type: "dashboard")
  • prompt — a recurring AI-generated report from a free-text prompt: an LLM plans and runs HogQL over the project's data and synthesizes a fresh markdown report each tick (resource_type: "ai_prompt")

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 the value 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.

Prefer a dashboard or insight subscription first. A prompt subscription is the heaviest option, and the LLM composes its own HogQL, so its numbers can drift from what a saved insight or dashboard already shows. Reach for it only when (a) the user specifically asks for a free-text / AI-written report, or (b) no existing insight or dashboard covers the ask and the value really is the analysis itself. If the user wants the key numbers from an existing dashboard or insight delivered on a schedule — even phrased as "set up a scout/bot to post this daily" — a dashboard (or insight) subscription with summary_enabled: true is usually the better fit. Respect a user who's sure they want a prompt subscription, but when it's ambiguous, suggest that and confirm first. See managing-subscriptions for the happy path.

This skill covers creating the subscription. Once it exists you manage its lifecycle with the same subscriptions-* tools (see below): list it, edit/disable/ re-enable it, send a test delivery, or delete it.

Tools

Tool Purpose
posthog:subscriptions-create Create the recurring prompt subscription
posthog:subscriptions-list Confirm it landed; inspect existing subscriptions
posthog:subscriptions-partial-update Edit, disable (enabled: false), or re-enable it
posthog:subscriptions-test-delivery-create Send an immediate test delivery to its target(s)
posthog:subscriptions-delete Soft-delete it (stops all future deliveries)
posthog:integrations-list Find a Slack integration_id (filter kind=slack)
posthog:integrations-channels-retrieve List a Slack integration's channels (id + name)

What you need before calling

The endpoint enforces three create-time gates and will return 400 if any fails:

  1. PostHog Cloud, or DEBUG=true — self-hosted production deployments are not eligible (the LLM call routes through a PostHog-managed key).
  2. Org-level "AI data processing approved" — must be toggled on in Org settings → Data → AI data processing. The user must opt in to AI features for the organization first.
  3. Prompt subscriptions enabled for the organization — a PostHog-managed rollout flag. If it's off, the org has not been granted access yet; tell the user to reach out to PostHog to enable it (there is no self-serve toggle).

If any of the three is missing, stop and tell the user which one to fix — re-calling the tool will not help.

Your access token also needs the query:read scope in addition to subscription:write: a prompt subscription runs LLM-generated HogQL over the project's data, so the backend requires query access to create, edit/re-enable, test-deliver, or delete one. A subscription:write-only token is rejected with a 403.

Required arguments

prompt: "..."                         # ≤4000 chars; setting this (with no insight/dashboard) makes it a prompt sub → resource_type "ai_pr
Häufige Fragen

Soll ich das oder ein Diagramm-Abonnement nutzen?

Nutze zuerst ein Dashboard- oder Insight-Abonnement, wenn ein gespeichertes Diagramm schon zeigt, was du brauchst, da die Zahlen der KI von gespeicherten Diagrammen abweichen können.

Wer schreibt den Bericht?

Eine KI schreibt ihn und formuliert dabei ihre eigenen Abfragen über die Daten deines Projekts.

Wohin kann er gesendet werden?

Er kann per E-Mail, Slack oder Microsoft Teams gesendet werden.

Details

Originalbeschreibung des Autors

Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email, Slack, or Microsoft Teams on 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.)

repo: PostHog/posthog

Beliebtheit

GitHub-Sterne
41k
Platz im Ranking
#6956
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills