Chuyển đến nội dung
Skillpedia
Email và tin nhắn41k · #6957

managing-subscriptions

Skill này làm gì

Skill này quản lý việc gửi định kỳ các dashboard, insight và báo cáo AI của PostHog qua email, Slack hoặc Microsoft Teams. Skill dành cho người muốn cập nhật thường xuyên được gửi cho đội mà không phải yêu cầu mỗi lần.

Khi nào nên dùng

  • ✓Khi bạn muốn một dashboard hoặc insight được gửi cho đội theo lịch định kỳ.
  • ✓Khi bạn muốn thay đổi lịch, người nhận hoặc nơi nhận của một lần gửi hiện có.
  • ✓Khi một lần gửi định kỳ thất bại hoặc không đến nơi, và bạn cần tìm hiểu lý do.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/managing-subscriptions/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gửi dashboard chính của chúng tôi đến kênh Slack của ban lãnh đạo mỗi sáng thứ Hai, và cho tôi biết nếu nó thất bại.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chọn đúng loại gửi, đặt nơi nhận và lịch, và có thể gửi thử. Nó cũng đọc lịch sử gửi để bạn thấy đã gửi gì và vì sao một lần gửi thất bại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Managing subscriptions

Subscriptions deliver product data on a fixed schedule. They support insight snapshots, dashboard snapshots, and AI prompt reports.

Read the relevant references

  • Read subscription-types.md before you select or change a resource type.
  • Read destinations.md before you create or change a destination.
  • Read operations.md for schedules, limits, billing, delivery checks, and failures.
  • Use creating-ai-subscription for the detailed prompt report creation workflow.

Choose the correct product

  • Use a subscription for fixed delivery, such as "send this dashboard every Monday."
  • Use a product alert for a condition, such as "notify me when conversion falls below 10%."
  • Use a reminder when the user wants a private prompt to inspect a resource later.
  • Use a Signals scout when an agent must decide what is important to report.

Subscriptions do not evaluate thresholds, recovery, consecutive breaches, or quiet hours. Snapshot subscriptions attempt each scheduled occurrence even when the saved results do not change.

Tools

Tool Purpose
posthog:subscriptions-list Find subscriptions
posthog:subscriptions-retrieve Read one subscription
posthog:subscriptions-create Create a subscription
posthog:subscriptions-partial-update Change, pause, or resume a subscription
posthog:subscriptions-test-delivery-create Send a test delivery
posthog:subscriptions-deliveries-list List delivery attempts
posthog:subscriptions-deliveries-retrieve Read one delivery
posthog:subscriptions-delete Stop all future deliveries
posthog:integrations-list Find a Slack integration
posthog:integrations-channels-retrieve Find Slack channels
posthog:dashboard-get Read dashboard tiles
posthog:insight-get Resolve an insight ID

Create a subscription

  1. Call posthog:subscriptions-list and check for a duplicate.
  2. Select one resource type from subscription-types.md.
  3. Resolve the destination with destinations.md.
  4. Resolve the schedule with operations.md.
  5. Ask whether the user wants an immediate delivery.
  6. Set send_test_now to the user's choice.
  7. Call posthog:subscriptions-create.
  8. Read the saved subscription and check each requested field.
  9. If the user approved an immediate delivery, check its delivery record.

If creation times out or returns an uncertain result, list matching subscriptions before you retry. Creation is not idempotent. A blind retry can create a duplicate subscription and send a duplicate immediate delivery.

Do not infer missing recipients, channels, times, or time zones. Ask for these values before creation.

Find existing subscriptions

Use these list filters when they reduce ambiguity:

  • resource_type: insight, dashboard, or ai_prompt.
  • target_type: email, slack, or teams.
  • insight or insights: One insight ID or a comma-separated ID list.
  • dashboard: One dashboard ID.
  • dashboard_tiles: Insight subscriptions for live tiles on one dashboard.
  • created_by: One creator UUID.

Check for duplicates

Use search when the user supplied a title, insight name, dashboard name, or prompt text. Prompt subscriptions match their title and prompt text. Compare the resource, destination type, target, schedule, and enabled state.

A Teams result contains only the webhook host. One host can serve many channels. Do not use the host to identify a duplicate.

Show the title, schedule, creator, and creation date for possible Teams matches. Ask the user to select a subscription when these fields identify it. Create a new subscription when no field identifies the target channel.

Confirm the saved result

Check these fields after creation:

  • resource_type matches insight, dashboard, or `a
Câu hỏi thường gặp

Khi nào nên dùng cảnh báo thay thế?

Dùng cảnh báo khi bạn chỉ muốn được báo khi một con số vượt một điều kiện, vì đăng ký gửi theo lịch cố định.

Tôi có thể thử một lần gửi trước không?

Có. Skill có thể gửi thử trước khi lịch bắt đầu.

Nếu một lần gửi thất bại thì sao?

Skill kiểm tra lịch sử gửi và giải thích nguyên nhân có khả năng, chẳng hạn quyền truy cập hoặc giới hạn.

Chi tiết

Mô tả gốc của tác giả

Create and manage scheduled PostHog subscriptions for insight snapshots, dashboard snapshots, and AI prompt reports. Use when a user wants recurring email, Slack, or Microsoft Teams delivery; an AI summary; delivery history; schedule or recipient changes; a test delivery; pause, resume, or deletion; or help with subscription permissions, limits, billing, and failures. Use product alerts when delivery must depend on a threshold or anomaly.

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6957
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự