Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính41k · #6970

suggesting-data-imports

Skill này làm gì

Skill này giúp agent nhận ra khi một câu trả lời cần thông tin mà PostHog không tự thu thập, như dữ liệu thanh toán hoặc bản ghi CRM. Skill dành cho người muốn kết hợp dữ liệu sản phẩm với dữ liệu kinh doanh.

Khi nào nên dùng

  • ✓Khi bạn hỏi về doanh thu, thanh toán, đăng ký hoặc dữ liệu thanh toán.
  • ✓Khi bạn muốn kết hợp các sự kiện PostHog với deal CRM hoặc ticket hỗ trợ.
  • ✓Khi một truy vấn thất bại vì bảng chứa dữ liệu bên ngoài chưa tồn tại.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/suggesting-data-imports/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/warehouse_sources/skills/suggesting-data-imports/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

“Người xem video hướng dẫn onboarding đã mang lại bao nhiêu doanh thu? Tôi cũng cần dữ liệu từ hệ thống thanh toán của mình.”

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

Cách hoạt động

Agent xác định dữ liệu nào đang thiếu và nguồn bên ngoài nào giữ nó. Sau đó nó hướng dẫn bạn nhập nguồn đó vào kho dữ liệu của PostHog để có thể kết hợp hai bên.

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.

Suggesting data imports

This skill helps identify when data the user needs lives outside PostHog and guides them toward importing it via the data warehouse. The key insight is recognizing the gap — then connecting it to the right source type.

What PostHog collects natively

PostHog collects product analytics events, persons, sessions, and groups via its SDKs. Additional products are available but must be enabled: session replay, feature flags, experiments, surveys, web analytics, error tracking, AI observability, conversations, logs, revenue analytics, workflows, CDP destinations, and batch exports. PostHog does not collect external business data like payments, subscriptions, CRM records, support tickets from other systems, or production database tables — that data must be imported via the data warehouse.

When to use this skill

  • A HogQL query fails because a table doesn't exist
  • The user asks about data from an external system (Stripe, Hubspot, Salesforce, etc.)
  • The user wants to correlate PostHog analytics with business data (revenue, support tickets, CRM records, etc)
  • The user asks "how do I get my X data into PostHog?"
  • Analysis requires joining PostHog events with external data
  • The user asks about exporting PostHog data for comparison elsewhere (in a google sheet, external warehouse, etc)

Workflow

1. Understand what data is missing

Listen for signals that the user needs external data:

  • They mention a specific tool or system (Stripe, Hubspot, Zendesk, their production database, etc.)
  • A query references a table that doesn't exist in PostHog
  • They want to analyze something PostHog doesn't track natively (revenue, support tickets, CRM deals, etc.)

If a query failed, check the error — if it's "table not found" or similar, the data likely needs to be imported.

2. Check what's already connected

Call posthog:external-data-sources-list to see existing sources. The data might already be imported but the user doesn't know the table name or prefix.

If a source exists for the system they're asking about, call posthog:external-data-schemas-list to show the available tables. The data might be there but under a different name or prefix.

Also query system.information_schema.tables with posthog:execute-sql to see all queryable tables — the data might already be available as a view or joined table.

3. Identify the right source type

If the data isn't imported yet, call posthog:external-data-sources-wizard to see available source types — when enumerating without source_type, pass fields: ['*.name', '*.caption'] to skip the large per-source config field definitions. Match the user's need to a source:

Common patterns:

User wants Source type Key tables
Revenue / payment data Stripe, Chargebee, Shopify charges, subscriptions, invoices, customers
CRM / sales pipeline Hubspot, Salesforce, Attio contacts, deals, companies
Support tickets Zendesk tickets, users, organizations
Product data from their DB Postgres, MySQL, BigQuery, Snowflake, Redshift user's own tables
Marketing / ads Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads campaigns, ad_groups, ads
Email marketing Mailchimp, Klaviyo campaigns, lists, subscribers
Project management Linear issues, projects
Error tracking (external) Sentry issues, events

4. Suggest the import

Present the recommendation concisely:

  • What source type to connect
  • What tables would become available
  • How this enables the analysis they want

Example: "Your Stripe data isn't in PostHog yet. If you connect a Stripe source, you'll get tables like charges, subscriptions, and customers that you can join with PostHog events to analyze revenue by user behavior."

5. Offer to set up the source

If the user wants to proceed, the fastest path is the one-step `data-warehouse-so

Câu hỏi thường gặp

PostHog tự thu thập dữ liệu gì?

Các sự kiện phân tích sản phẩm, người dùng, phiên và nhóm, cộng với mọi sản phẩm bổ sung bạn đã bật, như replay và khảo sát.

Tôi có thể xuất dữ liệu PostHog sang công cụ khác không?

Có. Skill cũng bao quát việc xuất dữ liệu PostHog để so sánh trong bảng tính hoặc kho dữ liệu khác.

Vì sao truy vấn không trả về kết quả?

Thường dữ liệu bên ngoài chưa được nhập, nên skill chỉ bạn đến đúng loại nguồn.

Chi tiết

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

Use when the user asks about revenue, payments, subscriptions, billing, CRM deals, support tickets, ad spend, production database tables, or other data PostHog does not collect natively — or wants to join or correlate PostHog product events with that external business data. Also use when a query fails because a table does not exist or returns no results for expected external data. The data warehouse can import from SaaS tools (Stripe, Hubspot, Zendesk, etc.), ad platforms, production databases (Postgres, MySQL, BigQuery, Snowflake), and other arbitrary data sources. Covers checking existing so

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6970
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ự