Insightful Pipe
/install insightfulpipe
Install InsightfulPipe if it doesn't exist
npm install -g insightfulpipe
npm release: https://www.npmjs.com/package/insightfulpipe
| Property | Value |
|---|---|
| name | insightfulpipe |
| description | Query marketing data across analytics, ads, social, ecommerce, and SEO platforms |
| allowed-tools | Bash(insightfulpipe:*) |
Authentication
The INSIGHTFULPIPE_TOKEN environment variable is expected to be pre-configured. If a command fails with "Invalid token" or "Not authenticated", inform the user that their token needs to be configured.
Core Workflow
Every query follows: discover → schema → execute. Read operations (query) can run directly. Write operations (action) should be confirmed with the user before executing.
# 1. Get account IDs (workspace_id, brand_id, source IDs)
insightfulpipe accounts --platform \x3Cplatform> --json
# 2. See available actions
insightfulpipe helper \x3Cplatform>
# 3. Get request body schema for specific actions
insightfulpipe helper \x3Cplatform> --actions \x3Caction1>,\x3Caction2>
# 4. Execute read query
insightfulpipe query \x3Cplatform> -b '{"action":"\x3Caction>","workspace_id":\x3Cid>,"brand_id":\x3Cid>,...}'
# 5. Execute write operation (requires --yes)
insightfulpipe action \x3Cplatform> -b '{"action":"\x3Caction>",...}' --yes
Platform Examples
Google Analytics — Top Pages
insightfulpipe accounts --platform google-analytics --json
insightfulpipe helper google-analytics --actions pages
insightfulpipe query google-analytics -b '{
"action": "pages",
"workspace_id": xxx,
"brand_id": xxx,
"property_id": "properties/xxx",
"dimensions": ["pagePath"],
"metrics": ["screenPageViews", "activeUsers"],
"start_date": "2026-03-01",
"end_date": "2026-03-20",
"limit": 10
}'
Google Analytics — Traffic Sources
insightfulpipe query google-analytics -b '{
"action": "traffic_sources",
"workspace_id": xxx,
"brand_id": xxx,
"property_id": "properties/xxx",
"dimensions": ["sessionSource", "sessionMedium"],
"metrics": ["sessions", "totalUsers", "bounceRate"],
"start_date": "2026-03-01",
"end_date": "2026-03-20"
}'
Google Analytics — Freeform Report
insightfulpipe query google-analytics -b '{
"action": "get_report",
"workspace_id": xxx,
"brand_id": xxx,
"property_id": "properties/xxx",
"dimensions": ["date", "country"],
"metrics": ["activeUsers", "sessions"],
"start_date": "2026-03-01",
"end_date": "2026-03-20"
}'
Google Search Console — Top Queries
insightfulpipe query google-search-console -b '{
"action": "search_analytics",
"workspace_id": xxx,
"brand_id": xxx,
"site_url": "https://example.com/",
"dimensions": ["query"],
"start_date": "2026-03-01",
"end_date": "2026-03-20",
"row_limit": 10
}'
Google Search Console — Pages by Country
insightfulpipe query google-search-console -b '{
"action": "search_analytics",
"workspace_id": xxx,
"brand_id": xxx,
"site_url": "https://example.com/",
"dimensions": ["page", "country"],
"start_date": "2026-03-01",
"end_date": "2026-03-20",
"row_limit": 20
}'
Google Sheets — Peek at Columns Then Query
# First peek to see column names
insightfulpipe query google-sheets -b '{
"action": "get_sheet_peak",
"workspace_id": xxx,
"brand_id": xxx,
"spreadsheet_id": "xxx",
"sheet_id": "0"
}'
# Then query with filters using exact column names from peek
insightfulpipe query google-sheets -b '{
"action": "query_sheet_data",
"workspace_id": xxx,
"brand_id": xxx,
"spreadsheet_id": "xxx",
"sheet_id": "0",
"select": "Name,Email,Status",
"where": "Status=Active",
"limit": 50
}'
Google Sheets — Write Cells
insightfulpipe action google-sheets -b '{
"action": "update_cells",
"workspace_id": xxx,
"brand_id": xxx,
"spreadsheet_id": "xxx",
"sheet_id": "0",
"range": "A1:C2",
"values": [["Name", "Email", "Status"], ["John", "[email protected]", "Active"]]
}' --yes
Shopify — Recent Orders
insightfulpipe query shopify -b '{
"action": "get_orders",
"workspace_id": xxx,
"brand_id": xxx,
"status": "any",
"limit": 10
}'
Shopify — Products
insightfulpipe query shopify -b '{
"action": "get_products",
"workspace_id": xxx,
"brand_id": xxx,
"limit": 10
}'
Any Other Platform
# Same pattern works for all platforms:
insightfulpipe helper \x3Cplatform> # See actions
insightfulpipe helper \x3Cplatform> --actions \x3Caction> # Get body schema
insightfulpipe query \x3Cplatform> -b '{...}' # Execute
Supported platforms include: facebook-ads, instagram, tiktok-ads, tiktok-pages, linkedin-ads, linkedin-pages, hubspot, klaviyo, mailchimp, stripe, slack, telegram, and many more. Run insightfulpipe platforms to see the full list.
Common Patterns
Pattern 1: Pipe to jq
# Extract just page paths from GA response
insightfulpipe query google-analytics -b '{...}' | jq '.data[].pagePath'
# Get total sessions
insightfulpipe query google-analytics -b '{...}' | jq '[.data[].sessions] | add'
Pattern 2: Compare Data Across Platforms
# GA traffic
GA=$(insightfulpipe query google-analytics -b '{
"action": "traffic_sources", "workspace_id": xxx, "brand_id": xxx,
"property_id": "properties/xxx",
"dimensions": ["sessionSource"], "metrics": ["sessions"],
"start_date": "2026-03-01", "end_date": "2026-03-20"
}')
# GSC queries
GSC=$(insightfulpipe query google-search-console -b '{
"action": "search_analytics", "workspace_id": xxx, "brand_id": xxx,
"site_url": "https://example.com/",
"dimensions": ["query"],
"start_date": "2026-03-01", "end_date": "2026-03-20", "row_limit": 10
}')
echo "$GA" | jq '.data[:5]'
echo "$GSC" | jq '.data[:5]'
Pattern 3: Write Operations
# Always use "action" (not "query") and --yes for writes
insightfulpipe action google-sheets -b '{
"action": "create_sheet",
"workspace_id": xxx,
"brand_id": xxx,
"spreadsheet_id": "xxx",
"title": "New Sheet"
}' --yes
Pattern 4: Use Prompts for Guided Analysis
insightfulpipe prompts google-analytics # List templates
insightfulpipe prompts google-analytics --id 12 # Get specific prompt
Gotchas
- Never guess the request body — always run
helper \x3Cplatform> --actions \x3Caction>first. - Replace ALL "xxx" placeholders — get real values from
accounts --platform \x3Cplatform> --json. - GA property_id needs "properties/" prefix — use
"properties/510157516"not"510157516". - Date format is YYYY-MM-DD — use
"2026-03-20"not"2026-03-20T00:00:00Z". - Use
queryfor reads,action --yesfor writes — using the wrong one will fail. - Google Sheets: peek before query — call
get_sheet_peakfirst to see column names. - Different platforms have different source IDs — GA uses
property_id, GSC usessite_url, Shopify usesshop_domain, Facebook Ads usesad_account_id. - Empty data is not an error —
{"status":"success","data":[]}means no data matched your filters. - Token should be pre-configured — if auth fails, inform the user to check their token configuration.
- Confirm write operations with the user — always ask before running
insightfulpipe action. Read operations viainsightfulpipe queryare safe to run directly.
All Commands
# Discovery
insightfulpipe platforms # All supported platforms
insightfulpipe accounts --platform \x3Cplatform> --json # Account IDs
insightfulpipe sources --platform \x3Cplatform> # Sources with IDs
insightfulpipe brands --workspace \x3Cid> # Brand metadata
insightfulpipe whoami # Current user
insightfulpipe doctor # Check auth
# Schema
insightfulpipe helper \x3Cplatform> # List actions
insightfulpipe helper \x3Cplatform> --actions \x3Ca1>,\x3Ca2> # Body schema
# Execute
insightfulpipe query \x3Cplatform> -b '\x3Cjson>' # Read data
insightfulpipe query \x3Cplatform> -f file.json # Read from file
insightfulpipe action \x3Cplatform> -b '\x3Cjson>' --yes # Write data
# Prompts
insightfulpipe prompts \x3Cplatform> # List templates
insightfulpipe prompts \x3Cplatform> --id \x3Cid> # Get prompt
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install insightfulpipe - 安装完成后,直接呼叫该 Skill 的名称或使用
/insightfulpipe触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Insightful Pipe 是什么?
Query and manage marketing data across 40+ platforms — Google Analytics, Google Ads, Facebook Ads, Instagram, Shopify, HubSpot, Klaviyo, TikTok, LinkedIn, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 181 次。
如何安装 Insightful Pipe?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install insightfulpipe」即可一键安装,无需额外配置。
Insightful Pipe 是免费的吗?
是的,Insightful Pipe 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Insightful Pipe 支持哪些平台?
Insightful Pipe 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Insightful Pipe?
由 insightfulpipe(@insightfulpipe)开发并维护,当前版本 v0.1.3。