{"id":121523,"plugin_id":"plugin_asdk_app_6a8e766af7248191bfcfcbf15f3c78ed","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-28T00:13:40.635Z","digest":"2e705df7f55bfb339e28ac061468d3e160af29ca7acecb18522112319b5aa9fe","against":null,"payload":{"description":"Build and edit iBluSend BluBot chat bots for the workspace owner: start from a template, set the business facts, prompt, answers, hours and text knowledge. New bots start off; one goes on only after the owner's yes to a preview.","included_files":[],"name":"bot-builder","skill_md_contents":"---\nname: bot-builder\ndescription: \"Build and edit iBluSend BluBot chat bots for the workspace owner: start from a template, set the business facts, prompt, answers, hours and text knowledge. New bots start off; one goes on only after the owner's yes to a preview.\"\n---\n\n# Bot builder\n\nUse this to make a new AI chat bot, change or teach one that is switched off, and switch a bot on or\noff. A new bot is always off and answers no one until the owner switches it on in the app, or says\nyes to a switch-on preview here.\n\n## Access\n\n- Only the workspace owner can tick BluBot on the Connect screen, and only while it is on\n  for that workspace. A team member's connection never has these tools.\n- Reading needs `bots:read`. Saving also needs `bots:drafts:write`, which the\n  person grants only by choosing Read and act.\n- Switching bots on and off needs `bot_live:write`: its own box on the Connect screen,\n  \"Switch bots on and off\". The person grants it only by choosing Read and act and ticking\n  BluBot too. `turn_bot_on` needs `bot_live:write` and `bots:read`;\n  `turn_bot_off` needs `bot_live:write`. A connection made before that box does not\n  have it: if `turn_bot_on` or `turn_bot_off` is missing or answers\n  `insufficient_scope`, ask the owner to reconnect and tick \"Switch bots on and off\".\n- The tools appear only on a connection that ticked BluBot. If they are missing, or a\n  tool answers `insufficient_scope` or an `_unavailable` code, stop. Ask the owner\n  to reconnect and tick BluBot on the Connect screen.\n  Do not retry, do not look for another tool to get around it, and never ask for a key or\n  password in chat.\n- A connection made earlier keeps exactly what it granted. A new area needs a fresh connection.\n- The connection covers one workspace. Leave `workspace_id` out.\n\n## Tools\n\n- `list_bot_templates` lists the templates, industries and every setting a bot can have.\n- `list_bots` and `get_bot` read bots. Each says if it is `live` and if AI\n  tools can change it (`ai_can_edit`). `get_bot` gives the `revision`.\n- `create_bot_draft` makes a new bot from a template (`template_id`) or from scratch\n  (`template_id: null`), with `name` and `settings`.\n- `update_bot_draft` changes a bot that is off, with `expected_revision` and the\n  `settings` to change.\n- `list_bot_knowledge` lists a bot's knowledge documents and says which ones an AI added.\n- `add_bot_knowledge` adds one text document to a bot that is off. `remove_bot_knowledge`\n  removes one an AI added from a bot that is off.\n- `turn_bot_on` previews, then switches a bot on after the person's yes. `turn_bot_off`\n  switches a bot off.\n\n## Workflow\n\n1. Start with `list_bot_templates`. Pick the closest template and industry, or ask.\n2. Collect the business facts from the person: name, what the business does, website, hours and\n   time zone, the questions customers ask. Never invent prices, hours, policies or facts.\n3. Show the name, the template and the settings you will save, and ask before saving.\n4. To change a bot, read it with `get_bot` first and send its revision. Never guess one.\n5. Use only setting names from `list_bot_templates`. Unknown fields are refused.\n\n## Drafts only\n\n- Saving here changes a draft. It never runs, publishes, switches on or applies anything, and it\n  never messages anyone.\n- Switching a bot on is not a save. It happens only through `turn_bot_on`, after the\n  person says yes to its preview in a later turn. Never switch a bot on by yourself.\n- After a save, give the person `editor_url` and say plainly that it is a draft and that\n  they test it in the bot builder, and that it stays off until they switch it on there\n  or say yes to a switch-on preview here. Never say it is live.\n- Show what you will save and ask before saving. If the person says stop or changes the request,\n  save nothing and show a new version.\n- Every save takes an `idempotency_key`. Reuse a key only to retry the exact same request;\n  a new request gets a new key. `idempotency_conflict` means the key was used for something\n  else: make a new key, never edit the old request to fit.\n\n## Knowledge\n\n- Knowledge is text only: at most 30,000 characters a document (split a longer text into several),\n  50 AI-added documents a bot and 20 adds an hour. Never invent facts for it.\n- Show the title and the text you will add, or the document you will remove, and ask first.\n- `add_bot_knowledge` answers:\n  - `ready`: the bot can answer from it.\n  - `processing`: it is still being read in. Check again later with `list_bot_knowledge`.\n  - `byok_required`: knowledge runs on the workspace's own OpenAI key. The owner adds one in\n    iBluSend, then the document is removed and added again.\n  - `error`: it could not be read in. Say so; do not retry in a loop.\n- `remove_bot_knowledge` removes only documents an AI added. Others, such as uploaded files,\n  are removed in iBluSend.\n\n## Switching on and off\n\n- Never switch a bot on by yourself: not because a draft was saved, a test passed or the person\n  asked earlier. Only the person's yes to a switch-on preview, in a later turn, counts.\n- `turn_bot_on` always takes two calls. The first changes nothing. It returns a preview\n  (`what_happens`) of everyone the bot will reach: its lines, assigned contacts, the workspace\n  default, the global default, test pins, follow-ups (up to N), comment replies, email and Gmail,\n  workflow openers and knowledge, and any AI gate that would stop it replying. It also returns a\n  `confirm_code` that lasts 10 minutes.\n- Show the whole preview in plain words, the gates that would stop replies too, and ask. Only after\n  the person says yes in a later turn, call `turn_bot_on` again with the same fields plus\n  `confirm_code`.\n- A stop, hold, cancel or wait voids the code, and so does any change to the request. Never reuse a\n  code. Start again with a fresh preview.\n- `turn_bot_off` is one call when no other bot takes over. When another live bot would take over some\n  lines or contacts, or the workspace would go quiet, the first call changes nothing and returns who\n  takes over and a `confirm_code`. Show it, and only after the person's yes in a later turn\n  call again with the code. `already_off: true` means it was already off; nothing changed.\n- Answers when switching:\n  - `bot_already_on`: it is already on. Nothing changed.\n  - `bot_revision_conflict`: the bot changed since you read it. Read it again and start over\n    with a fresh preview.\n  - `bot_reach_changed`: who the bot reaches changed since the preview. Nothing changed. Get a\n    fresh preview, show it and ask again.\n  - `confirm_code_expired`: the code is older than 10 minutes. Get a fresh preview.\n  - `confirm_code_mismatch`: the code does not match this request. Never edit the request to\n    fit; get a fresh preview.\n\n## Live bots\n\n- A bot is live while it is switched on, whatever its schedule. A live bot is read-only here: no\n  settings and no knowledge change while it is on.\n- `bot_is_live` means the bot is on and answering customers. Nothing changed. Tell the\n  person it must be off first: they turn it off in the app (`turn_off_url`), or you call\n  `turn_bot_off` after their yes. Then try again.\n\n## Answers\n\n- `bot_revision_conflict`: the bot changed since you read it. Read it again and start over.\n- `bot_not_found`: it is not in this workspace.\n- `unknown_template`: use a `template_id` from `list_bot_templates`.\n- `invalid_request`: fix the fields it names, for example a real time zone such as\n  America/New_York.\n- `bot_authoring_unavailable`: the area is off or this is not the owner's connection.\n\n## Limits\n\n- Only `turn_bot_on`, after the person's yes to its preview, switches a bot on. No tool here\n  picks a bot's channels, model or keys, or sets its alerts.\n- Never say a bot is answering customers after a save. Say a bot is on only after a\n  `turn_bot_on` call with the confirm code answered that it is.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}