The problem
Thai shops sell in chat: the ad that works is the one that opens a Messenger conversation, and the number that matters is the cost per chat started. Setting that up in Ads Manager means a campaign, an ad set and an ad every time, the owner never knows what each piece costs until the money is gone, and handing the ad account to a freelancer means handing over the budget too.
Architecture
- Channel
- Thai command in the agent
- Existing page post
- Agent
- Plans and validates with Meta
- Creates the ad paused
- Reports cost per chat
- Tools
- meta-message-ads skill
- Meta Marketing API
- Human
- Owner confirms every spend
Where the data stays: The token, the plans and the reports live in a folder on the owner's own computer; the ad pieces live in the owner's Meta ad account, and customer chats stay in Messenger where the admin answers them.
Design flow
- Owner picks a post and answers five questions
- Plan submitted to Meta's validate only check
- Campaign, ad set and ad created PAUSED
- Owner views the ad and confirms with the campaign idHuman checkpoint
- Budget checked against the cap, ad switched on
- Report after 2 to 3 days: keep, watch or pause
Setup
Total time: 1 h 30 min our estimate
- 15 min
Done when: The installer has copied the skill to ~/.claude/skills (Claude Code's docs list this folder for personal skills), Node.js 18 or newer is installed, and the skill shows in the slash menu.
- 30 min
The skill's rules say the token is never asked for, accepted or printed in chat; if you paste it there by mistake, revoke it and make a new one.
Done when: You created the token in Meta yourself with the four permissions the README lists, ran the setup command in your own terminal, picked the ad account and page, and the doctor command reports ready.
- 20 min
Done when: Meta's validate only check passed, the campaign, ad set and ad exist as PAUSED, and you have opened the Ads Manager link and seen the ad.
- 10 min
Done when: You wrote your confirmation with the campaign id, the agent repeated the daily budget and checked it against the cap (1,000 baht a day per ad set by default) and the status went ACTIVE or into Meta's review.
- 15 min
Done when: After two or three days the report shows spend, chats started and cost per chat against your target, and you have paused or kept each ad by your own command.
Ticks are saved on this browser.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
Use the meta-message-ads skill. I want a Click to Messenger ad from my page's latest post with a budget of [200] baht a day for [7] days, audience aged [20 to 55], [all genders], in Thailand. Walk me through it one question at a time: show me the recent posts and let me choose, run the plan and read me Meta's check result in full, then create everything PAUSED and give me the Ads Manager link so I can look at the ad first. Do not activate anything until I write 'confirm' and give you the campaign id, and tell me the daily budget you will switch on before you do. After 3 days, run the report with a target cost per chat of [50] baht and tell me which ads to keep, watch or pause. Never ask me for my token in this chat.
Risks and data
Data
The access token can spend your money and read your page; the skill keeps it on your machine and refuses it in chat, so follow that rule, use a token with only the four listed permissions, and revoke it if a laptop is lost. Chat contents never leave Meta; the report holds counts and costs.
How it goes wrong
The expensive failure is an ad switched on with the wrong budget or the wrong post. The skill makes you type the campaign id and checks the cap, but the cap is a default you can raise, so keep it low, look at the ad in Ads Manager before confirming, and read the report before adding budget; the author warns that 'created (PAUSED)' is not 'running' and that results depend on the post, the audience and the product.
How the agent works
It starts
The owner installs the open source meta-message-ads skill into Claude Code or Codex and runs its setup once in their own terminal, where the Meta access token is typed hidden and stored on the machine; the skill's rules forbid asking for or accepting a token in chat.
The agent works
From then on the owner talks to the agent in Thai: 'run a message ad from my latest post, 200 baht a day for 7 days'. The agent lists the page's recent posts, asks one question at a time (budget, age range, gender, days, campaign name), submits a plan to Meta's validate only check that creates nothing, then on the owner's go creates the campaign, ad set and ad as PAUSED and shows the Ads Manager link so the owner can see the ad before it spends. Switching the ad on needs the owner's explicit confirmation in the latest message and the campaign id typed back, and the skill checks the real daily budget against a cap (default 1,000 baht a day per ad set) first. After two or three days the report command shows spend, conversations started and cost per chat against the owner's target and ranks each ad as continue, watch or pause; pausing or changing a budget is again an owner command.
The result
The skill refuses special ad categories (housing, jobs, credit, politics) and never signs up accounts, adds cards, pays or accepts terms for the owner.
Worked example
The meta-message-ads repository by Thai practitioner พี่ง้วง (School of AI Agent Automation, which teaches AI agent, automation and LINE OA classes) is a skill for Claude Code and Codex that the owner drives in Thai. Its SKILL.md sets seven safety rules: no token in chat, money leaves only on the account owner's command (every live change needs an explicit execute flag, the plan step is Meta's validate only check that creates nothing), every new piece is created PAUSED, activating needs the campaign id as confirmation and a budget check against a cap of 1,000 baht a day per ad set by default, the agent never signs up, adds a card, pays or accepts terms for the user, special ad categories are refused, and 'created (PAUSED)' is never reported as 'running'. The report command computes cost per chat as spend divided by conversations started, ranks ads as continue, watch or pause against the owner's target, and the author says to let an ad run two or three days before judging. No business results are published; the repository shows the build, not a customer's numbers. Claude Code's docs list ~/.claude/skills for personal skills and say skills can bundle scripts; Codex's docs list $HOME/.agents/skills and say a skill packages instructions, resources and optional scripts.
The skill ships for Claude Code and Codex only: its installer copies it to ~/.claude/skills and ~/.agents/skills, the folders both products' docs name for skills, and nothing in its README covers other agents. Meta Ads here means the owner's own ad account and page through the Meta Marketing API (v26.0, the README says). Written for Thai page owners: Thai commands, a baht budget cap by default and the cost per chat metric Thai chat commerce runs on.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://raw.githubusercontent.com/pgnoung/meta-message-ads/main/README.md
- https://raw.githubusercontent.com/pgnoung/meta-message-ads/main/skills/meta-message-ads/SKILL.md
- https://code.claude.com/docs/en/skills
- https://learn.chatgpt.com/docs/build-skills
Published: 2026-11-29