The playbook
Chatty answers Instagram DMs 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 account
list_accountswithplatform: "instagram". None:get_connect_linkwithplatform: "instagram", give the user theauth_url, and continue once it shows up.get_account_healthwith itsaccount_id. Anything that needs reconnecting: fix that first.
Instagram rules to tell the user: Chatty answers people who message the account. Meta allows normal replies only within 24 hours of the person's last message, so a DM older than that won't get an automatic answer. New conversations from people who don't follow the account can land as message requests.
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 the user 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), the prompts, links and keywords, plus platforms_available and the per-platform notes. Read the Instagram note. Also 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: how to answer DMs, built from Smarty: who they are, what they sell, the tone, what to never say, when to send a link, when to hand off to a human ("if someone asks about a refund, say the owner will reply personally").links:[{ label, url }]from Smarty's offers.keywords:[{ keyword, reply }]for funnels. Use Smarty's offer DM keywords, e.g.{ keyword: "APP", reply: "Here you go: https://..." }. A DM containing the word gets that exact reply.platforms: the current list plusinstagram. If the list is empty (every platform), ask whether to keep it that way or narrow it.reply_to_messages: true. Leavereply_to_commentsas it is unless the user asks.
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 and enabled left as it is (off if it was off).
5. Test
chatty_test with kind: "message" and 2 or 3 realistic DMs for this brand, e.g. a price question, the keyword ("APP"), and an off-topic or tricky one. Show each draft. Nothing is sent. Adjust message_prompt or keywords with chatty_update and test again until the user likes them.
6. Turn it on
Ask for an explicit yes: from now on Chatty answers Instagram DMs automatically. Then chatty_update with enabled: true (and reply_to_messages: true). Confirm with chatty_get.
7. Watch it
chatty_activity (limit, e.g. 20): the latest DMs and what Chatty did (replied with what, or skipped and why). Suggest checking it after the first day. Manual replies still work: list_conversations (platform: "instagram"), list_messages (conversation_id, account_id), send_message (conversation_id, account_id, message) after the user approves the text. To pause, chatty_update with enabled: false.
Pair it with a comment-to-DM automation (create_automation) so people who comment a keyword get the DM too.