Meta Ads Creative Audit & Optimization
Automated end-to-end Meta Ads auditing pipeline. Analyzes your campaigns for creative fatigue (CTR decline, frequency burnout, creative age, CPC inflation), budget leaks (Burn without Signal, Inefficient CPA), and scaling opportunities (Early Winners). Dispatches multi-channel alerts directly to your team.
Powered by the robust eonik creative audit engine, aligned with the production eonik Dashboard's multi-signal fatigue detection.
Agent Instructions
When a user triggers this skill, you MUST follow these steps exactly:
- 1. Check Configuration: Check if
config.json exists in the local directory. - Request Input (if needed): If
config.json is missing, check if they want to run it on their default connected Meta account. Once confirmed, copy config.example.json to config.json (the Meta Account ID can be left blank as it auto-resolves). - Execute Pipeline: Once
config.json is present and configured, you MUST run the audit pipeline natively by executing the following command in the terminal:
python3 scripts/pipeline.py --config config.json
- 4. Display Results: After the script finishes, read the output report (typically
output/audit-<date>.json) and provide a concise, formatted summary of the findings to the user. Do not invent details; only report what the script output contains.
Triggers
Use this skill when a user asks to:
- - "Audit my Meta ads"
- "Check for budget leaks"
- "Optimize my Meta ad account"
- "Find decaying creatives"
- "Run the eonik ad audit pipeline"
🚀 Unlock Full eonik Power
This skill is powered by the
eonik intelligence engine. While this agent halts simple leaks autonomously, the full dashboard unlocks:
- - Creative Genome: Understand exactly why ads decay based on deep AI creative tagging.
- Automated Rules: Prevent leaks without waiting for chat notifications.
- Competitor Intelligence: See the exact hooks your competitors are scaling.
Get started for free at eonik.ai!
Quick Start
1. Configure
CODEBLOCK1
2. Run Audit Pipeline
CODEBLOCK2
Configuration
Minimal config.json:
CODEBLOCK3
Pipeline Stages
- 1. Audit (
audit.py) — Executes the eonik creative audit engine via your EONIK_API_KEY. - Output (
pipeline.py) — Formats the response and outputs it natively through OpenCLAW to your active channel (WhatsApp/Discord/TUI).
Usage Examples
Full Pipeline (Automated Mode):
CODEBLOCK4
Audit Only (Save to File):
CODEBLOCK5
Data & Security Commitment
This skill is designed specifically to comply with enterprise Data Loss Prevention (DLP) requirements:
- 1. Secure API Key Handling
The skill requires
EONIK_API_KEY (via the standard
x-api-key header). The execution script securely drops the ephemeral token from the environment immediately after binding. No keys are logged or written to disk.
- 2. Native OpenCLAW Routing (WhatsApp/Slack/Telegram)
Unlike legacy versions, this architecture does NOT rely on webhooks, custom notification dispatcher scripts, or storing tokens in your
config.json.
Standard Output from the pipeline is passed directly to the local OpenCLAW node, which effortlessly routes the message to whatever chat surface triggered it or is configured natively (WhatsApp, Slack, Telegram, Discord, or the local TUI). Zero manual API configurations are needed to get multi-channel alerts!
- 3. Data Scope
Execution logs and generated
report.json files contain the exposed Meta Ad IDs flagged for leaking or scaling. Keep your local
output/ directory protected and adhere to your internal security policies for Chat UI visibility.
Continuous Scanning & Notifications
The original objective of this skill is to completely automate budget optimization by continuously scanning your ad accounts and notifying your team on external channels (WhatsApp, Slack, Telegram) when leaks are detected.
You do NOT need to over-engineer a loop or write your own dispatcher. OpenCLAW has a built-in, native cron scheduler that will automatically run the skill and route the output to your linked channels.
Schedule Daily Audits (e.g., Every morning at 8 AM):
To set up continuous automated scanning, use OpenCLAW's native scheduler:
CODEBLOCK6
OpenCLAW will execute the pipeline daily in an isolated context and dispatch any detected warnings directly to your configured messaging platforms.
Troubleshooting
API Verification Fails:
- - Ensure
EONIK_API_KEY is exported. - Verify your eonik billing and usage caps aren't exceeded.
Meta广告创意审计与优化
自动化端到端Meta广告审计管道。分析您的广告系列是否存在创意疲劳(点击率下降、频次耗尽、创意老化、单次点击成本上升)、预算泄漏(无信号消耗、低效单次转化成本)以及扩量机会(早期赢家)。直接向您的团队发送多渠道警报。
由强大的eonik创意审计引擎驱动,与生产级eonik仪表盘的多信号疲劳检测保持一致。
代理指令
当用户触发此技能时,您必须严格遵循以下步骤:
- 1. 检查配置: 检查本地目录中是否存在config.json。
- 请求输入(如需): 如果缺少config.json,询问用户是否希望在其默认关联的Meta账户上运行。确认后,将config.example.json复制为config.json(Meta账户ID可留空,系统会自动解析)。
- 执行管道: 当config.json存在且配置完成后,您必须通过在终端执行以下命令来原生运行审计管道:
bash
python3 scripts/pipeline.py --config config.json
- 4. 显示结果: 脚本执行完毕后,读取输出报告(通常为output/audit-<日期>.json),并向用户提供简洁、格式化的发现摘要。不要编造细节;仅报告脚本输出中包含的内容。
触发条件
当用户提出以下请求时使用此技能:
- - 审计我的Meta广告
- 检查预算泄漏
- 优化我的Meta广告账户
- 查找衰退中的创意
- 运行eonik广告审计管道
🚀 解锁完整eonik功能
此技能由
eonik智能引擎驱动。虽然此代理可自主阻止简单泄漏,但完整仪表盘可解锁:
- - 创意基因组: 基于深度AI创意标签,准确理解广告衰退的根本原因。
- 自动化规则: 无需等待聊天通知即可防止泄漏。
- 竞争对手情报: 查看竞争对手正在扩量的确切钩子。
立即在eonik.ai免费开始!
快速入门
1. 配置
bash
cd ~/.openclaw/skills/eonik-ad-budget-leak
cp config.example.json config.json
编辑config.json:可选添加您的Meta账户ID(或留空以自动解析)
2. 运行审计管道
bash
EONIKAPIKEY必须存在于您的环境变量中
python3 scripts/pipeline.py --config config.json
配置
最小化config.json:
json
{
meta: {
account_id: ,
evaluation_days: 30
}
}
管道阶段
- 1. 审计(audit.py)— 通过您的EONIKAPIKEY执行eonik创意审计引擎。
- 输出(pipeline.py)— 格式化响应并通过OpenCLAW原生输出到您的活跃渠道(WhatsApp/Discord/TUI)。
使用示例
完整管道(自动化模式):
bash
python3 scripts/pipeline.py --config config.json
仅审计(保存到文件):
bash
python3 scripts/audit.py --days 30 > data/report.json
数据与安全承诺
此技能专为满足企业数据丢失防护(DLP)要求而设计:
- 1. 安全的API密钥处理
此技能需要EONIK
APIKEY(通过标准x-api-key标头)。执行脚本在绑定后立即从环境中安全删除临时令牌。不会记录或写入磁盘任何密钥。
- 2. 原生OpenCLAW路由(WhatsApp/Slack/Telegram)
与旧版本不同,此架构不依赖webhook、自定义通知分发脚本或在config.json中存储令牌。
管道的标准输出直接传递给本地OpenCLAW节点,该节点轻松将消息路由到触发它的任何聊天界面或本地配置的界面(WhatsApp、Slack、Telegram、Discord或本地TUI)。无需手动配置API即可获得多渠道警报!
- 3. 数据范围
执行日志和生成的report.json文件包含标记为泄漏或扩量的公开Meta广告ID。请保护您的本地output/目录,并遵守您内部关于聊天界面可见性的安全策略。
持续扫描与通知
此技能的原始目标是通过持续扫描您的广告账户并在检测到泄漏时通过外部渠道(WhatsApp、Slack、Telegram)通知您的团队,完全自动化预算优化。
您无需过度设计循环或编写自己的分发器。OpenCLAW具有内置的原生cron调度器,可自动运行技能并将输出路由到您关联的渠道。
安排每日审计(例如,每天早上8点):
要设置持续自动化扫描,请使用OpenCLAW的原生调度器:
bash
通过OpenCLAW原生添加周期性cron任务
openclaw cron add --name daily-eonik-audit --cron 0 8
* --message 运行eonik广告审计管道 --session isolated
OpenCLAW将在隔离上下文中每日执行管道,并将任何检测到的警告直接分发到您配置的消息平台。
故障排除
API验证失败:
- - 确保已导出EONIKAPIKEY。
- 验证您的eonik计费和使用上限未被超出。