मुख्य सामग्री पर जाएँ
Skillpedia
ईमेल और मैसेज41k · #6956

creating-ai-subscription

यह क्या करती है

यह स्किल एक आवर्ती रिपोर्ट बनाती है जिसमें AI एक सादी भाषा के प्रॉम्प्ट से शेड्यूल पर नया सारांश लिखता है। यह उन लोगों के लिए है जिन्हें एक तय चार्ट के बजाय लगातार चलने वाला विश्लेषण चाहिए।

कब इस्तेमाल करें

  • ✓जब आपको अपने डेटा के किसी विषय का दैनिक, साप्ताहिक या मासिक AI सारांश चाहिए।
  • ✓जब आपको खुद विश्लेषण चाहिए, कोई तय चार्ट नहीं जो आपने पहले बनाया हो।
  • ✓जब आप चाहें कि सारांश ईमेल, Slack या Microsoft Teams पर भेजा जाए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मुझे हर सोमवार ईमेल से साप्ताहिक AI सारांश भेजिए कि हमारे साइनअप और चर्न कैसे बदले।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह आपका प्रॉम्प्ट एक तय टाइमटेबल पर चलने के लिए शेड्यूल करती है। हर बार एक AI अपनी डेटा क्वेरी खुद बनाता है, रिपोर्ट को markdown में लिखता है, और उसे आपके चुने गंतव्य पर भेजता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

इसे इस्तेमाल करूँ या चार्ट सब्सक्रिप्शन?

अगर सहेजा हुआ चार्ट पहले से वह दिखाता है जिसकी आपको ज़रूरत है, तो डैशबोर्ड या इनसाइट सब्सक्रिप्शन पहले इस्तेमाल करें, क्योंकि AI के आँकड़े सहेजे चार्ट से अलग हो सकते हैं।

रिपोर्ट कौन लिखता है?

AI लिखता है, जो आपके प्रोजेक्ट के डेटा पर अपनी क्वेरी खुद बनाता है।

इसे कहाँ भेजा जा सकता है?

इसे ईमेल, Slack या Microsoft Teams पर भेजा जा सकता है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6956
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills