跳到正文
Skillpedia
分析与电子表格41k · #6970

suggesting-data-imports

它能做什么

这项技能帮助智能体识别一个问题何时需要 PostHog 自身不收集的信息,例如付款或 CRM 记录。适合想把产品数据与业务数据结合起来分析的人。

适用场景

  • ✓当你询问收入、付款、订阅或账单数据的时候。
  • ✓当你想把 PostHog 事件与 CRM 交易或支持工单结合起来的时候。
  • ✓当查询因为包含外部数据的表尚不存在而失败的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/suggesting-data-imports/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/suggesting-data-imports/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“看过新手引导视频的用户带来了多少收入?我还需要付款系统里的数据。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会分析缺少哪些数据,以及哪个外部数据源持有这些数据。然后它会指导你把该数据源导入 PostHog 数据仓库,以便两者结合分析。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

常见问题

PostHog 自己收集哪些数据?

产品分析事件、用户、会话和分组,以及你开启的其他产品数据,例如回放和问卷。

我可以把 PostHog 数据导出到其他工具吗?

可以。这项技能也涵盖导出 PostHog 数据,以便在电子表格或其他数据仓库中做对比。

为什么查询没有返回结果?

通常是外部数据还没有导入。这项技能会引导你找到正确的数据源类型。

详情

作者的原始描述

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

热度

GitHub 星标
41k
排名
#6970
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能