Overview
Meta Ads Kit is designed as an OpenClaw skill, giving you natural language control over your Meta advertising campaigns. Instead of clicking through Ads Manager or writing API scripts, you can talk to your ad account.What is OpenClaw?
OpenClaw is an agent framework that lets you interact with tools and services using natural language. Meta Ads Kit integrates as a skill within OpenClaw, enabling conversational ad management.Installation
Meta Ads Kit registers automatically as an OpenClaw skill when installed:Natural Language Commands
Once installed, you can use natural language to manage your ads:Daily Monitoring
Ad Creation
Campaign Actions
Command Processing Flow
When you issue a natural language command:- Intent Recognition - OpenClaw analyzes your request and routes to the appropriate skill
- Context Loading - Reads
workspace/brand/files (stack.md, learnings.md, assets.md) - Skill Execution - Runs the ad-upload, meta-ads, or ad-copy-generator skill
- Approval Gate - Asks for confirmation before any actions that affect spend
- Logging - Saves results to
memory/YYYY-MM-DD.mdand updates brand files
Approval Gates
OpenClaw respects approval gates defined in the skill metadata:Proceeds automatically for:
- Running reports and insights
- Analyzing data
- Generating recommendations
- Creating ads in PAUSED status
- Logging learnings
Automation with Cron
Schedule daily checks using cron:Daily Morning Briefing
crontab -e
Hourly Spend Checks
Weekly Performance Report
Creative Fatigue Check
Environment Configuration
Set up your environment for automated runs:.env
Authentication is handled by social-cli’s token management. Your token is stored in
~/.social-cli/config.json after running social auth login.Brand Memory Integration
OpenClaw skills can read and write to your brand memory files:Files Read
| File | Purpose |
|---|---|
workspace/brand/stack.md | Stored ad account ID, default ad set IDs, target CPA |
workspace/brand/assets.md | Index of existing creatives and their IDs |
workspace/brand/learnings.md | Past patterns, what’s worked |
workspace/brand/voice-profile.md | Brand voice for copy generation |
Files Written
| File | Content |
|---|---|
workspace/brand/assets.md | Appends uploaded creative IDs and ad IDs |
workspace/campaigns/{name}/ads/{creative}.upload.json | Full API response from uploads |
memory/YYYY-MM-DD.md | Daily activity log |
Example: Automated Workflow
Combine multiple commands in a scheduled workflow:daily-ads-workflow.sh
Skill Metadata
The ad-upload skill declares its requirements in metadata:Error Handling
When OpenClaw encounters errors:| Error | OpenClaw Response |
|---|---|
| Not authenticated | Guides you through social auth login |
| No ad account set | Runs social marketing accounts, helps you pick one |
| Rate limited | Waits and retries with exponential backoff |
| Token expired | Prompts for re-authentication |
| Missing environment variable | Shows exact variable name and how to set it |
Advanced: Custom Skill Development
You can extend Meta Ads Kit with custom OpenClaw skills:custom-ad-skill.js
Debugging
Enable verbose logging to see what OpenClaw is doing:- Intent recognition results
- Which skill was invoked
- API calls made
- File reads/writes
- Decision points
Next Steps
Batch Operations
Upload multiple ads at once
Graph API
Direct API usage and rate limits