Creator OS
← All skills
ChattyBeta

WhatsApp DM Agent

/whatsapp-dm-agent

Set up Chatty to answer WhatsApp Business messages automatically in the brand's voice: replies, links to offers, and keyword replies (someone texts APP, they get the link). Use when the user says answer my WhatsApp, auto reply on WhatsApp, or set up a WhatsApp agent. Explains the 24-hour rule and templates, checks the number, writes the instructions from Smarty, tests real-looking messages, turns it on after a yes, and shows how to watch it.

How to run it

Once Creator OS is connected, type /whatsapp-dm-agent in Claude Code and say what you want. Not connected yet? Follow the three steps on the Skills page.

The playbook

Chatty answers messages to the connected WhatsApp Business number for this workspace on its own, using the brand memory, the user's instructions and keyword replies. Settings are per workspace.

If the plan has several workspaces, call workspaces_list first and ask which one, then pass workspace=<id> to every tool below.

WhatsApp rules (tell the user first)

  • Free-text replies only work within 24 hours of the customer's last message. Chatty answers inside that window.
  • Starting a chat, or writing after 24 hours, needs an approved template: whatsapp_send_template. Meta bills template deliveries to the WhatsApp Business Account, so it always needs a yes, and only to people who opted in.
  • The user brings their own WhatsApp Business number.

1. Check the number

  1. list_accounts with platform: "whatsapp". None: get_connect_link with platform: "whatsapp" (default onboarding keeps the number in the WhatsApp Business app too), give the user the auth_url, and continue once it shows up.
  2. get_account_health with its account_id, and whatsapp_number_info for the number's status.

2. Read the brand

smarty_get: voice, offers with links and DM keywords, FAQs, rules. Not set up: offer the smarty-brand-kit skill first, or ask for the basics.

3. Current settings

chatty_get: whether it's on, platforms (empty = every supported one), prompts, links, keywords, platforms_available and the per-platform notes (read the WhatsApp one).

4. Draft the settings

  • message_prompt: from Smarty: who they are, what they sell, tone, what never to say, when to send a link, when to hand off to a human. WhatsApp customers expect quick, practical answers (prices, hours, orders, booking): pull them from Smarty's FAQs.
  • links: [{ label, url }] from Smarty's offers.
  • keywords: [{ keyword, reply }], e.g. { keyword: "MENU", reply: "Here's the menu: https://..." }.
  • platforms: the current list plus whatsapp. If it's empty (every platform), ask whether to keep it that way.
  • reply_to_messages: true.

keywords replaces the whole list on save: send the existing keywords from chatty_get plus the new ones, never only the new ones. Do the same for links and platforms.

Show the draft. On a yes, chatty_update with those fields, leaving enabled as it is.

5. Test

chatty_test with kind: "message" and 2 or 3 realistic messages, e.g. "do you deliver?", the keyword, and an order problem. Show each draft (nothing is sent). Tune with chatty_update and test again.

6. Turn it on

Ask for an explicit yes: Chatty will answer WhatsApp messages automatically. Then chatty_update with enabled: true and reply_to_messages: true. Confirm with chatty_get.

7. Watch it

chatty_activity (limit): the latest messages and what Chatty did (the reply, or why it skipped; a message past the 24-hour window can't get free text). Manual replies inside the window: list_conversations (platform: "whatsapp"), list_messages (conversation_id, account_id), send_message (conversation_id, account_id, message) after the user approves the text.

To reach someone outside the window: whatsapp_list_templates (account_id, status: "APPROVED"), pick one, show the user the filled text and that Meta bills it, then on a yes whatsapp_send_template (account_id, to, template_name, template_language, template_params). No approved template yet: whatsapp_create_template submits one for Meta's review (up to 24 hours). Pause Chatty with chatty_update enabled: false.