The AgentivUse cases

Marketing · An afternoon · Thailand

Ads that open a chat, live only when you say so

Click to Messenger ads built from an existing Facebook post by a Thai language skill for Claude Code and Codex, every piece created paused, switched on only when the page owner confirms, with a cost per chat report that says which ads to keep

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

  1. Channel
    • Thai command in the agent
    • Existing page post
  2. Agent
    • Plans and validates with Meta
    • Creates the ad paused
    • Reports cost per chat
  3. Tools
    • meta-message-ads skill
    • Meta Marketing API
  4. 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

  1. Owner picks a post and answers five questions
  2. Plan submitted to Meta's validate only check
  3. Campaign, ad set and ad created PAUSED
  4. Owner views the ad and confirms with the campaign idHuman checkpoint
  5. Budget checked against the cap, ad switched on
  6. Report after 2 to 3 days: keep, watch or pause

Setup

Total time: 1 h 30 min our estimate

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Download the kit (zip)

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.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). The access token stays on the owner's machine and the agent never sees it in chat. Customer conversations stay inside Meta; the report carries counts and costs only. Audience targeting by age and gender follows Meta's rules, and the skill refuses the special categories where Meta restricts targeting.

How the agent works

  1. 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.

  2. 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.

  3. 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 Club

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-29

Related use cases

A marketing plan for every stop

A marketing plan for every tour stop, the week before, show week, show day and after, drafted by ChatGPT from the venue, the local audience and the organiser's channels, for a two founder touring stunt show

MarketingEffort: An afternoon
ChatGPTAlso works with:ClaudeGemini

A touring show, a market stall circuit or a pop up business lands in a new town every week, and each stop needs its own announcement, an ask to the local organiser, a small paid push, something for guests to do on the day and a thank you afterwards. With two people running everything, the plan gets written after midnight or not at all.

Creator campaign dashboard without a dev

Live influencer marketing dashboard built by Claude Cowork from a Zapier Table of creator deals, scraped view counts, Bitly clicks and warehouse conversions, with the marketing manager confirming every iteration before it goes live

MarketingEffort: About a week
Claude CoworkZapierBitly+1Also works with:Claude CodeOpenAI Codex

A marketing team that pays creators for posts knows the fee and the launch date but rebuilds a spreadsheet before every review to see what each deal returned: views sit on the platforms, link clicks in the shortener, conversions in the data warehouse. By the time the sheet is done the numbers are old.

Customers find your next market in one search

A third generation family tamale company with no coder on staff used ChatGPT to build a searchable farmers market tracker for its website in one afternoon, so customers can find where to buy this week, with the family checking the week's dates and locations before each update goes live

MarketingEffort: An afternoon
ChatGPTAlso works with:ClaudeGemini

A food business that sells at markets, pop ups or weekend fairs answers the same question all week: where are you this Saturday. The schedule lives in someone's head or a social post that scrolls away, and a proper page on the website never gets built because nobody on the team writes code.