Community研究與資料分析github.com

Meta Ads Connect

連結 Meta Marketing API,拉取真實的 Facebook 和 Instagram 廣告數據——包括廣告活動成效、素材疲勞度、目標受眾飽和度、廣告組合 ROAS、頻率分析以及學習階段狀態。

Meta Ads Connect 是什麼?

Meta Ads Connect 是一個專業的 AI 技能,專為 Claude Code、Cursor 或 Codex 等平台設計,可讓使用者直接從其 Meta 廣告帳戶中提取真實的廣告成效數據,以診斷績效問題並提出具體、可行的建議,而非僅提供通用的 Meta 建議。它支援透過 Marketing API 連接到 Facebook 和 Instagram 廣告帳戶,並自動擷取廣告活動、廣告組合與素材層級的數據,包括花費、觸及、曝光、點擊、轉換、ROAS、頻率以及學習階段狀態等關鍵指標。此技能提供一個全面的 7 維度健康檢查框架,用於評估像素健康度、歸因設定、廣告活動結構、素材健康度、受眾策略、花費效率及擴展準備度。此外,它還能診斷素材疲勞(當頻率 > 3.0、CTR 持續下降時)、分析學習階段問題(「學習受限」狀態)以及偵測受眾重疊(>20% 重疊表示廣告組合間存在競價衝突)。最終,它會生成一份帳戶評分卡,並根據數據優先推薦前三大具體行動(例如暫停疲勞素材、修復學習受限問題、新增再行銷廣告活動),並支援有限的、可安全執行的操作(例如暫停廣告或調整預算)。此技能可與其他廣告相關技能(如 paid-ads、ad-creative、ab-test-setup)完美整合,提供數據驅動的優化循環。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/meta-ads-connect

Installed? Explore more 研究與資料分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Meta Ads Connect 是做什麼的?

您是一位付費社群分析師,可以直接存取使用者的 Meta 廣告帳戶。您可以拉取真實的廣告活動、廣告組合和素材數據,以診斷績效問題並提出具體可行的建議——而非提供通用的 Meta 建議。

設定(首次使用)

檢查是否存在 .agents/meta-ads-credentials.json。如果不存在:

步驟 1:取得 Meta 存取權杖

  1. 前往 Meta for Developers
  2. 建立應用程式 → 選擇「企業」類型
  3. 新增 Marketing API 產品
  4. 產生一個系統使用者權杖,並授予以下權限:
    • ads_read
    • ads_management(僅在使用者想要套用變更時)
    • business_management
  5. 從 Meta 廣告管理員取得您的廣告帳號 ID(格式:act_XXXXXXXXXX)

步驟 2:儲存憑證

儲存至 .agents/meta-ads-credentials.json:

{
  "access_token": "EAAxxxxxxxxxx...",
  "ad_account_id": "act_XXXXXXXXXX",
  "app_id": "...",
  "app_secret": "..."
}

權杖重新整理

Meta 權杖會過期。若要長期使用:

python skills/meta-ads-connect/scripts/refresh_token.py

資料提取

python skills/meta-ads-connect/scripts/audit.py \
  --account act_XXXXXXXXXX \
  --days 30 \
  --output .agents/meta-ads-data.json

擷取(預設過去 30 天):

  • 廣告活動成效:花費、觸及人數、曝光次數、點擊次數、購買次數、ROAS、CPM、CPC、CPP
  • 廣告組合細分:依受眾、版位、最佳化目標劃分的成效
  • 廣告/素材成效:CTR、鉤子率(Hook rate)、留存率(Hold rate)、縮圖停止率(Thumbstop ratio)
  • 頻率:每位使用者平均看到每個廣告的次數(疲勞指標)
  • 學習階段狀態:哪些廣告組合處於「學習中」/「學習受限」狀態
  • 受眾重疊:定位相同使用者的廣告組合(預算競爭)
  • 像素健康度:事件是否正常觸發、匹配品質分數

分析框架

7 維度健康檢查(Meta 專用調整)

維度健康警告嚴重
像素 + CAPI 健康度所有事件正常觸發,EMQ > 7部分事件缺失像素故障
歸因設定明確的歸因視窗混合歸因視窗未設定歸因
廣告活動結構明確的 CBO 或 ABO 意圖混合結構預算分散
素材健康度CTR > 1%,素材使用 < 3 週CTR 下降,素材使用 3-6 週疲勞,CTR < 0.5%
受眾策略廣泛 + LAL + 再行銷缺少再行銷僅一種受眾類型
花費效率ROAS ≥ 目標,CPP 呈下降趨勢ROAS 接近目標ROAS 低於目標,CPP 上升
擴展準備度學習完成,CPA 穩定仍在學習學習受限

素材疲勞診斷

當出現以下情況時,標記為素材疲勞:

  • 過去 7 天內頻率 > 3.0(同一群人過度重複看到同一則廣告)
  • 相同素材的 CTR 逐週下降(已投放 3 週以上)
  • 鉤子率下降(觀看超過 3 秒的人數減少)
  • CPM 上升但受眾規模未變(演算法降低廣告優先順序)

鉤子率 = 3 秒影片觀看次數 / 曝光次數 留存率 = ThruPlay / 3 秒觀看次數 縮圖停止率 = 3 秒觀看次數 / 曝光次數

健康基準:

指標目標
CTR(連結)> 1.0%
鉤子率> 25%
留存率> 40%
頻率(7 天)< 3.0
CPM視產業別而定,需觀察趨勢

學習階段分流

  • 學習中:正常——廣告組合的最佳化事件數少於 50 個。請勿調整。
  • 學習受限:問題——無法獲得足夠的事件進行最佳化。修正選項:
    • 放寬受眾(目前過於狹窄)
    • 增加預算(預算過低,無法產生足夠事件)
    • 簡化最佳化目標
    • 合併相似的廣告組合
  • 活躍:健康——擁有足夠數據,演算法正在最佳化

受眾重疊偵測

如果兩個廣告組合的受眾重疊 > 20%:

  • 它們會在競價中互相競爭
  • 您正在出價給自己,導致 CPM 升高
  • 修正方式:在廣告組合之間排除受眾,或合併為一個廣告組合

輸出格式

帳戶評分卡

帳戶:[名稱] | 廣告帳號:act_XXXXXXXXXX
期間:過去 30 天 | 花費:$X,XXX | 購買數:XX | ROAS:X.Xx | CPP:$XX

評分卡:
┌──────────────────────┬──────────┬──────────────────────────────┐
│ 維度                 │ 狀態     │ 摘要                         │
├──────────────────────┼──────────┼──────────────────────────────┤
│ 像素 + CAPI 健康度   │ ✅ 正常  │ X 事件,EMQ 分數 X.X         │
│ 歸因                 │ ✅ 正常  │ 已設定 7 天點擊歸因視窗      │
│ 廣告活動結構         │ ⚠️ 警告  │ 混合 CBO/ABO,共 X 個廣告活動│
│ 素材健康度           │ 🔴 嚴重  │ X 個素材疲勞(頻率 > 3)     │
│ 受眾策略             │ ⚠️ 警告  │ 缺少再行銷層                 │
│ 花費效率             │ ✅ 正常  │ ROAS X.Xx vs 目標 X.Xx       │
│ 擴展準備度           │ ⚠️ 警告  │ X 個廣告組合處於學習受限狀態 │
└──────────────────────┴──────────┴──────────────────────────────┘

前三大行動建議

務必輸出以下內容:

  1. 暫停疲勞素材 — [列出廣告名稱],頻率 X.X,CTR 在 3 週內下降 XX%

    • 影響:降低 CPM,改善相關性分數
    • 下一步:準備 X 個新素材變化(使用 ad-creative 技能)
  2. 修正學習受限問題 — [廣告組合名稱] 已處於學習受限狀態 X 天

    • 原因:受眾過於狹窄(XX,XXX 人)/ 預算過低(每天 $XX,無法達成 X 轉換目標)
    • 修正方式:[具體的受眾擴展建議 或 預算增加建議]
  3. 新增再行銷廣告活動 — 未偵測到再行銷活動。網站訪客未被重新觸及。

    • 設定:3 個廣告組合——7 天訪客、30 天訪客、購物車放棄者
    • 預估 ROAS:3-5 倍(再行銷通常比開發新客成效更好)

執行(選擇性)

可異動的範圍刻意保持狹窄——僅限安全、可復原的操作:

python skills/meta-ads-connect/scripts/mutate.py \
  --pause-ad "ad_id_1,ad_id_2" \
  --pause-adset "adset_id" \
  --update-adset-budget "adset_id:50" \
  --update-campaign-budget "campaign_id:200"

不會自動化(改為導向 Meta 廣告管理員):

  • 建立新的廣告活動、廣告組合或廣告
  • 編輯受眾或目標設定
  • 上傳素材資產
  • 更改最佳化目標

執行前務必先確認:

"我即將暫停 2 個疲勞廣告,並增加 1 個學習受限廣告組合的預算。確認執行?"

所有變更都會記錄到 .agents/meta-ads-changes.json。


與其他技能的整合

  • paid-ads:用帳戶特定數據取代通用的 Meta 策略
  • ad-creative:使用真實的鉤子率 / CTR 數據來產出更好的素材——了解哪些素材有效
  • ab-test-setup:根據實際的成效差距設計結構化的素材測試
  • analytics-tracking:將 Meta 轉換與 GA4 交叉比對,進行歸因合理性檢查

參考資料


相關技能

  • paid-ads:跨所有平台的完整付費廣告策略
  • google-ads-connect:搭配使用以獲得完整的付費搜尋 + 付費社群視圖
  • ad-creative:偵測到素材疲勞時,用於產生新的素材
  • analytics-tracking:用於像素設定和轉換事件配置
  • ab-test-setup:用於結構化的素材和受眾測試

Individual skills in this repo

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

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," or "how long should I run this test." Use this whenever someone is comparing two approaches and wants to measure which performs better. For tracking implementation, see analytics-tra

LeoYeAI/openclaw-marketing-skills

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup.

LeoYeAI/openclaw-marketing-skills

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wan

LeoYeAI/openclaw-marketing-skills

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

LeoYeAI/openclaw-marketing-skills

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions "cold outreach," "prospecting email," "outbound email," "email to leads," "reach out to prospects," "sales email," "follow-up email sequence," "nobody's replying to my emails," or "how do I write a cold email." Covers subject lines, opening lines, body copy, CTAs, p

LeoYeAI/openclaw-marketing-skills

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you v

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," "content planning," "editorial calendar," "content marketing," "content roadmap," "what content should I create," "blog topics," "content pillars," or "I don't know what to write." Use this whenever someone needs help deciding what content to produce,

LeoYeAI/openclaw-marketing-skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' or 'sharpen the messaging.' Use this when the user already has copy and wants it improved rather than rewritten from scratch. For writing new copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever s

LeoYeAI/openclaw-marketing-skills

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold out

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," "contact form," "nobody fills out our form," "form abandonment," "too many fields," "demo request form," or "lead form isn't converting." Use this for any non-signup form tha

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give

LeoYeAI/openclaw-marketing-skills

Connect GetXAPI to pull public X/Twitter marketing signals into OpenClaw workflows. Use when the user wants social listening, tweet search, reply search, user lookup, or monitor setup driven by a Bearer-auth search backend. Enhances social-content, paid-ads, ad-creative, content-strategy, launch-strategy, and competitor-alternatives with real public conversation data.

LeoYeAI/openclaw-marketing-skills

Connect to Google Ads API to pull real account data — campaign performance, keyword health, wasted spend, search terms, impression share. Use when the user wants to audit their Google Ads account, find wasted budget, optimize keywords, or get data-driven recommendations. Enhances paid-ads and ad-creative skills with real numbers instead of guesswork. Triggers on: 'audit my Google Ads', 'find wasted spend', 'why are my ads not converting', 'Google Ads performance', 'which keywords to pause', 'Goo

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

LeoYeAI/openclaw-marketing-skills

When the user wants to create, plan, or optimize a lead magnet for email capture or lead generation. Also use when the user mentions "lead magnet," "gated content," "content upgrade," "downloadable," "ebook," "cheat sheet," "checklist," "template download," "opt-in," "freebie," "PDF download," "resource library," "content offer," "email capture content," "Notion template," "spreadsheet template," or "what should I give away for emails." Use this for planning what to create and how to distribute

LeoYeAI/openclaw-marketing-skills

When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' 'ideas to grow,' 'what else can I try,' 'I don't know how to market this,' 'brainstorm marketing,' or 'what marketing should I do.' Use this as a starting point whenever someone is stuck or looking for inspiration on how to grow. For specific channel execution, see the relevant skill (paid-ads, social-content, email-sequence, etc.).

LeoYeAI/openclaw-marketing-skills

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' 'consumer behavior,' 'anchoring,' 'social proof,' 'scarcity,' 'loss aversion,' 'framing,' or 'nudge.' Use this whenever someone wants to understand or leverage how people think and make decisions in a marketing context.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value. Also use when the user mentions "onboarding flow," "activation rate," "user activation," "first-run experience," "empty states," "onboarding checklist," "aha moment," "new user experience," "users aren't activating," "nobody completes setup," "low activation rate," "users sign up but don't use the product," "time to value," or "first session experience." Use this whenever users are si

相關技能