The playbook
Chatty answers messages sent to the connected Facebook Page 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.
1. Check the Page
list_accountswithplatform: "facebook". None:get_connect_linkwithplatform: "facebook", give the user theauth_url(they pick the Page at the end), and continue once it shows up.get_account_healthwith itsaccount_id. Anything that needs reconnecting: fix that first.
Facebook rules to tell the user: it's the Page's inbox (Messenger), not a personal profile. Meta allows normal replies only within 24 hours of the person's last message, so an older thread won't get an automatic answer.
2. Read the brand
smarty_get: the voice (tone, use, avoid, examples), offers with links and DM keywords, FAQs and rules. If Smarty isn't set up, offer the smarty-brand-kit skill first, or ask for the basics (what they sell, the main link, how they talk).
3. Current settings
chatty_get: whether it's on, platforms (empty = every supported one), prompts, links and keywords, plus platforms_available and the per-platform notes (read the Facebook one). list_automations: if a comment-to-DM automation already answers DMs with the same keyword (also_match_in_dms), say so, so two things don't answer the same message.
4. Draft the settings
message_prompt: built 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. Pages often get practical questions (hours, location, prices, booking): pull those answers from Smarty's FAQs.links:[{ label, url }]from Smarty's offers.keywords:[{ keyword, reply }]for funnels, e.g.{ keyword: "APP", reply: "Here's the link: https://..." }.platforms: the current list plusfacebook. If it's empty (every platform), ask whether to keep it that way.reply_to_messages: true. Leavereply_to_commentsas it is unless asked.
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 for this Page, e.g. "are you open Sunday?", the keyword, and a complaint. 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 Page 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). Check after the first day. Manual replies: list_conversations (platform: "facebook"), list_messages (conversation_id, account_id), send_message (conversation_id, account_id, message) after the user approves the text. Pause any time with chatty_update enabled: false.
The Messenger greeting and ice breakers (the buttons people see before they type) can be set through api_request on /v1/accounts/{acc_id}/messenger-greeting and /messenger-ice-breakers, after a yes.