Communitygithub.com

Insightful-Pipe/marketing-skills

通过 InsightfulPipe MCP 分析 TikTok 广告账户的实时数据,评估创意漏斗、报告成本与 ROAS,并给出优化建议。

marketing-skills 是什么?

这是一个专为 TikTok 广告分析设计的 AI 技能,通过 InsightfulPipe MCP 接口直接连接广告账户,无需手动导出数据。它能自动抓取广告系列、广告组、广告和报告数据,并评估创意漏斗(如视频完播率、点击率、转化率等),按优化目标报告每次结果成本和 ROAS,同时对比 Spark Ads、Smart+ 广告系列与人工出价策略的效果。技能还支持按年龄、性别、地区、展示位置(包括 Pangle)和设备维度细分结果,解释成本波动原因,并预测月末支出。它适用于 Claude Code、Cursor 等支持 MCP 的 AI 平台,用户只需用自然语言提问(如“分析我的 TikTok 广告”或“为什么成本上升了”),技能就会按步骤执行分析并生成报告。需要注意的是,涉及暂停广告或调整预算的更改必须获得用户确认后才能执行。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Insightful-Pipe/marketing-skills/tree/HEAD/skills/tiktok-ads-analyzer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

TikTok 广告分析器

此分析功能直接读取账户数据,无需手动导出。每个数据点均来自该技能运行的 API 调用,每条分析结论都会标明对应的调用和背后的具体数值。

TikTok 是一个以创意为核心的竞价系统。信息流在大约一秒内决定视频是否被观看,因此大多数 TikTok 问题都会先体现在创意漏斗中,而非定向设置:用户不停留、停留但不观看、观看但不点击、或点击但不转化。此技能可以找出哪个环节、哪些广告和哪些受众出现了问题,并说明需要调整的方向。

开始之前

您需要连接 InsightfulPipe MCP 并配置 TikTok 广告账户(平台 tiktok-ads)。

未连接 TikTok 账户? 请用户在 TikTok Ads Manager 中导出广告级别数据(包括花费、展示量、点击量、结果数、2秒、6秒和100%视频观看量、点赞、评论、分享),如果有年龄和性别细分数据也一并导出。然后使用相同的公式和阈值运行第2节和第3节,并标注其他所有章节为“未评估:需连接账户”。

  1. 调用 query_contexts,参数为 request="accounts" 和 platform="tiktok-ads"。记录 workspace_id、brand_id 和 advertiser_id。如果存在多个广告主,请询问选择哪一个。
  2. 调用 query_contexts,参数为 request="actions_details",分别获取 advertisers_metadata、campaigns_metadata、adgroups_metadata、ads_metadata、integrated_report_basic、tool_targeting_info、gmv_max_store_list、gmv_max_campaigns 和 gmv_max_report,以及两项可执行的更改操作:ad_status_update 和 adgroup_update。读取详情不会执行任何操作。请遵循返回的请求体格式。
  3. 弄清楚用户的意图,并仅询问该意图所需的信息:
请求运行内容询问内容(括号内为默认值)
“分析我的 TikTok 广告”所有章节目标单次结果成本 [使用账户自身在相同窗口内、相同优化目标下的单次结果成本]
单个问题(Spark Ads vs 广告帖、Pangle、年龄段、成本飙升、预算速度、出价、线索、像素、商店)步骤1、步骤2和对应章节同上
“月度客户报告”针对上一个月历月份运行所有章节,同时运行步骤2获取前一个月的数据要打印的客户名称 [使用广告主名称];月度预算 [无:则预算速度部分仅显示花费]
按类型分析创意钩子第2节每个广告使用的钩子或格式类型(问题、大胆声明、产品优先、创作者介绍、演示、UGC 用户评价)。如果广告名称中已包含,则直接读取;否则询问。切勿根据数据猜测创意类型。

窗口。 使用广告主 display_timezone 时区下的最后30个完整日期。在报告顶部注明日期和货币。如果该窗口内没有花费:

  1. 先运行步骤0中的生命周期调用。如果生命周期花费为0,则说明该账户从未有过花费,停止分析。
  2. 否则,以30天为单位向前回推(最多12次,即一年),直到找到有数据的窗口。最近的 stat_time_day 有花费的日期即为最后活跃日。
  3. 分析截止到该日期的30天数据,并在整个报告上标注“历史数据:自 <日期> 以来无花费”。

如何运行 API 调用

读取操作通过 query_data 进行,参数包含 platform="tiktok-ads";下文中“此技能可运行的更改”中的两项更改操作通过 execute_action 进行。每个请求体都包含 platform、workspace_id、brand_id、account_id 和 advertiser_id(最后两个字段都使用广告主 ID)。以下各节仅展示其余参数。API 强制执行的规则:

  • 传递 "page_size": 1000。 默认分页大小为10行。当 page_info.total_page 大于当前页时,获取下一页。
  • 报告筛选条件为列表。 integrated_report_basic 接受 "filtering": [{"field_name": "adgroup_ids", "filter_type": "IN", "filter_value": "[\"123\",\"456\"]"}],其中 ID 为 JSON 字符串。使用对象会失败,而顶级 filters 会被静默忽略,导致返回所有行。指标筛选(例如花费大于0)会失败;请自行筛选行。
  • 元数据筛选条件为对象。 adgroups_metadata 和 ads_metadata 接受 "filtering": {"adgroup_ids": ["..."]}。顶级 adgroup_ids 会被忽略。
  • 仅在广告组或广告级别读取 result 和 cost_per_result。 它们统计的是广告组所优化的目标(点击、线索、转化、观看)。在广告系列级别,result 可能读为0,而其广告组在相同花费下显示6个结果;在广告主级别,它会将点击、线索和观看加在一起。因此,细分调用(年龄、地区、展示位置、设备)也必须在广告组级别运行,并将 adgroup_id 作为维度之一。切勿对不同优化目标的结果进行累加,也切勿跨优化目标进行排名。
  • 细分报告需要 report_type: "AUDIENCE"。 age、gender、country_code、province_id、placement 和 platform 在 BASIC 报告中使用会失败。一个受众报告不能同时混合 placement 和 platform;请分开运行。
  • 对于 CPC 计费,细分花费跟随点击量。 当广告组的 billing_event 为 CPC 时,年龄或地区行如有展示量但没有点击量,则显示花费为 $0。请比较这些行的 CTR 和每次展示结果数,而非 CPM 或花费占比。
  • 数值作为字符串返回。 比较前需进行转换。非每日报告会返回每个实体的行,包括零值行。每日报告(stat_time_day)会排除零值日,且超过30天的每日窗口会失败。
  • 字段陷阱。 在广告组中,behavior_target_ids 会导致调用失败;请从 actions 中读取行为定向。在广告主中,industry 会导致调用失败。广告文案位于 ad_text 或 ad_texts 列表中;请同时读取两者。

如果某个调用失败,请继续运行。将该章节标记为 未知,说明哪个调用失败及其原因,切勿用猜测填补空缺。

步骤0:查找窗口(仅当最近30天没有花费时)

{"action": "integrated_report_basic", "service_type": "AUCTION", "report_type": "BASIC",
 "data_level": "AUCTION_ADVERTISER", "dimensions": ["advertiser_id"],
 "metrics": ["spend", "impressions", "clicks"], "query_lifetime": true,
 "start_date": "<START>", "end_date": "<END>"}
{"action": "integrated_report_basic", "service_type": "AUCTION", "report_type": "BASIC",
 "data_level": "AUCTION_ADVERTISER", "dimensions": ["advertiser_id", "stat_time_day"],
 "metrics": ["spend", "impressions", "clicks"],
 "start_date": "<START>", "end_date": "<END>", "page_size": 1000}

步骤1:读取账户信息

{"action": "advertisers_metadata", "advertiser_ids": ["<ADVERTISER_ID>"],
 "fields": ["advertiser_id", "name", "currency", "timezone", "display_timezone", "country", "status"]}
{"action": "campaigns_metadata", "page_size": 1000,
 "fields": ["campaign_id", "campaign_name", "objective_type", "campaign_type", "campaign_automation_type", "is_smart_performance_campaign", "budget", "budget_mode", "budget_optimize_on", "operation_status", "secondary_status", "create_time"]}
{"action": "adgroups_metadata", "page_size": 1000,
 "fields": ["adgroup_id", "adgroup_name", "campaign_id", "budget", "budget_mode", "bid_type", "bid_price", "conversion_bid_price", "deep_bid_type", "roas_bid", "optimization_goal", "billing_event", "pacing", "placement_type", "placements", "age_groups", "gender", "location_ids", "interest_category_ids", "interest_keyword_ids", "actions", "audience_ids", "excluded_audience_ids", "targeting_expansion", "pixel_id", "schedule_start_time", "schedule_end_time", "operation_status", "secondary_status"]}
{"action": "ads_metadata", "page_size": 1000,
 "fields": ["ad_id", "ad_name", "adgroup_id", "campaign_id", "ad_format", "ad_text", "ad_texts", "call_to_action", "identity_type", "identity_id", "tiktok_item_id", "dark_post_status", "video_id", "landing_page_url", "catalog_id", "operation_status", "secondary_status", "create_time"]}

根据这些数据编写 账户概览:使用的推广目标、窗口期内投放的广告系列/广告组/广告数量、哪些广告系列是 Smart+(campaign_automation_type 非 MANUAL,或 is_smart_performance_campaign 为 true)、预算层级(当 budget_optimize_on 为 true 时为广告系列预算,否则为广告组预算),以及每个投放中的广告组的优化目标、出价类型和计费事件。

步骤2:按广告组和广告查看效果

{"action": "integrated_report_basic", "service_type": "AUCTION", "report_type": "BASIC",
 "data_level": "AUCTION_ADGROUP", "dimensions": ["adgroup_id"],
 "metrics": ["spend", "impressions", "reach", "frequency", "clicks", "ctr", "cpm", "result", "cost_per_result", "conversion", "cost_per_conversion", "total_sales_lead", "cost_per_total_sales_lead", "complete_payment", "total_purchase_value"],
 "start_date": "<START>", "end_date": "<END>", "page_size": 1000}
{"action": "integrated_report_basic", "service_type": "AUCTION", "report_type": "BASIC",
 "data_level": "AUCTION_AD", "dimensions": ["ad_id"],
 "metrics": ["spend", "impressions", "clicks", "ctr", "result", "cost_per_result", "video_play_actions", "video_watched_2s", "video_watched_6s", "video_views_p25", "video_views_p50", "video_views_p75", "video_views_p100", "average_video_play", "likes", "comments", "shares", "follows", "profile_visits"],
 "start_date": "<START>", "end_date": "<END>", "page_size": 1000}

剔除花费和展示量均为0的行。将广告行与 ads_metadata 连接,广告组行与 adgroups_metadata 连接,以获取名称、目标和设置。报告的总览部分需列出账户的总花费、展示量、点击量和 CTR,然后按 每个优化目标 列出结果数和单次结果成本。

ROAS。 对于每个优化目标,还需展示购买次数(complete_payment)、购买价值(total_purchase_value)和 ROAS(total_purchase_value ÷ 花费)。花费和购买价值均为货币单位,因此账户级别的 ROAS 可以跨目标相加,这与结果数不同。设置了 roas_bid 的广告组应根据该目标评估 ROAS。如果窗口期内没有购买价值数据,则将 ROAS 显示为“未评估:未追踪购买价值”,并指向第6节;切勿显示 0.00x 作为已测量值。

量级阈值。 仅当广告的展示量达到至少1,000次时,才评估其创意指标。仅当行数据中每个结果数至少为10时,才对单次结果成本进行比较。仅当展示量达到至少1,000次时,才对细分行(如年龄段、地区、展示位置)进行评估。低于阈值的,将数字标记为“仅供参考,未评估”。

第1节:账户类型(Smart+、出价、预算)

  • Smart+ 对比手动(提示:Smart+ 分析)。 比较共享相同推广目标的 Smart+ 和手动广告系列,对比单次结果成本、结果数和花费占比。Smart+ 将定向和展示位置交给 TikTok,因此应根据结果来判断其表现,并查看它是否挤占了手动广告系列的花费。如果窗口期内没有 Smart+ 广告系列,则如实说明。
  • 出价策略。 按优化目标分组投放中的广告组,然后按 bid_type(BID_TYPE_NO_BID 为最低成本,BID_TYPE_CUSTOM 为上限;上限值在 conversion_bid_price 或 bid_price 中)和 deep_bid_type 进一步分组。在同一目标内,比较单次结果成本、结果数以及每组广告组花费的预算比例。如果设置了上限的广告组花费不足一半预算,则说明上限设置过紧。如果最低成本组的单次结果成本超出目标30%以上,则可考虑在该组设置目标成本的出价上限。
  • 学习阶段。 最近7天内结果数少于50的广告组通常尚未稳定。在评估其单次结果成本之前应说明此情况,并建议当大多数广告组都低于该阈值时,考虑转向更高量级的目标或减少广告组数量、扩大广告组规模。

第2节:创意(钩子、排行榜、Spark Ads)

针对每个广告,计算以下指标:

指标公式弱值含义
钩子率video_watched_2s ÷ impressions第一秒未能吸引用户停留
6秒留存率video_watched_6s ÷ video_watched_2s用户停留但未坚持到第6秒
完播率video_views_p100 ÷ impressions视频过长或内容无法保持兴趣
CTRclicks ÷ impressions视频有趣但未有效引导点击,或引导弱
每次点击结果率result ÷ clicks点击后的页面、表单或优惠未能促成转化
互动率(likes + comments + shares) ÷ impressions无人互动,TikTok 会减少展示

同时显示 average_video_play(以秒为单位)。分享是最强的互动信号,点赞最弱。此报告未返回收藏数据,因此请忽略并说明。

  • 与账户自身对比,而非通用基准。 使用所有已评估广告的展示量加权平均值作为基线。如果一个广告在某指标上低于基线20%或更多,则视为该指标表现弱;高于基线20%或更多,则视为强。在漏斗顺序中(钩子、留存、CTR、每次点击结果率)第一个出现弱值的步骤即为该广告的诊断。如果已评估广告少于2个,则没有基线;报告数字并说明情况。
  • 最佳创意排行榜。 在每个优化目标内,按单次结果成本(从低到高)对已评估广告进行排名(结果数低于10的广告排在其余广告之后,按 CTR 排名)。显示花费、钩子率、留存率、CTR、结果数、单次结果成本及诊断结果。
  • 钩子和格式类型。 当用户已为广告标记了钩子或格式类型时,计算每种类型的已评估广告的平均钩子率和单次结果成本,并指出应增加哪种类型的广告。如果没有标记,则跳过此部分,并说明如何标记(将钩子类型添加到广告名称中)。
  • Spark Ads 对比广告帖对比自定义身份(提示:Spark Ads vs 暗帖)。 按身份对广告进行分组:identity_type 为 CUSTOMIZED_USER 的是使用自定义名称和头像的非 Spark 广告。TikTok 账户身份(TT_USER、BC_AUTH_TT、AUTH_CODE)且 dark_post_status 为 ON 的是广告帖:它从账户投放但不出现在账户主页上。相同的身份但 dark_post_status 为 OFF 时,是推广了一篇同样出现在主页上的帖子,其点赞、评论和关注数据会保留在帖子上。每个广告都带有 tiktok_item_id,因此仅此字段无法区分。在同一个优化目标内比较这些组……

[内容已截断以用于翻译]

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

Insightful-Pipe/marketing-skills

Scores how well every active ad matches the page it sends people to, on live data through the InsightfulPipe MCP. Pulls the ads, keywords, sitelinks, Google's landing page rating and conversion rate by page itself, captures each landing page on desktop and mobile, reads its headings and speed, and scores headline, offer, keyword, visual and audience match out of 100 plus the post-click experience (speed, mobile, trust, conversion path). Use when someone asks why ads get clicks but no conversions, why landing page experience or Quality Score is low, whether ads and pages say the same thing, or wants screenshots of the landing page behind every active ad. Can repoint an ad to a better page or add deep-linked sitelinks, only after the user confirms.

Insightful-Pipe/marketing-skills

Audits a landing page, homepage, sales page or any key page for conversion on live data through the InsightfulPipe MCP. Picks the page from GA4, checks that its conversion is measured, reads who arrives (channels, devices, Search Console queries, Google Ads ads and landing page experience), takes the page apart (structure, CTAs, proof, copy), renders it on desktop and mobile and checks speed, then scores seven conversion pillars and ranks the fixes by ICE with rewrites, a page structure and test ideas. Use when someone asks why a page isn't converting, wants a landing page, sales page or website content review, a mobile rendering check of key pages, or a structure for a new landing page.

Insightful-Pipe/marketing-skills

Audits a pricing page on live data through the InsightfulPipe MCP. Pulls the page's GA4 behaviour itself (how many visitors reach pricing, where they come from, how long they read, how far they scroll, what they open next, whether plan clicks and sign-ups are measured, mobile versus desktop), reads the page, scores eight pillars (tier architecture, anchoring, value hierarchy, visual guidance, trust, urgency, objection handling, CTA clarity), compares it with a competitor's page, and returns a graded report with tier-by-tier notes, pricing psychology ideas, rewrites and A/B tests. Use when someone asks why visitors don't upgrade, wants a pricing page audit or a pricing page behaviour report, wants more annual sign-ups, or wants their pricing page compared with a competitor's. Offers two GA4 tracking fixes it runs only after the user confirms.

Insightful-Pipe/marketing-skills

Writes ready-to-shoot video ad scripts for TikTok, Reels, Meta feed, YouTube and LinkedIn, plus video sales letters and product demos, from live data pulled through the InsightfulPipe MCP. Reads hook rate, hold rate and cost per ThruPlay or 6-second view from your Meta and TikTok video ads, the search terms and ad lines that win in Google Ads, and YouTube retention curves, then writes timed scripts with voiceover, visuals, on-screen text, hook variants and a test plan. Use when someone asks for a video ad script, TikTok or YouTube ad script, UGC talking points, a VSL or demo script, a hook and hold report, or a review of a script they already have. It changes nothing in any account.

相关技能