{"id":102675,"plugin_id":"plugin_asdk_app_6a79f1d2046c8191abe959a682371e57","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-18T06:12:29.540Z","digest":"29d4ad87f1a8ceffa4a3b4d84a898d0fb1172c17e22ba9265596018e65c45bb7","against":null,"payload":{"description":"This skill should be used when a CallRail user asks to \"check my texts\", \"which texts need a reply\", \"summarize SMS conversations\", \"triage the text inbox\", \"share incoming texts with my team\", \"forward texts to the team\", \"draft replies to texts\", or wants text threads summarized and routed to several people, which CallRail text forwarding (one number only) doesn't do.\n","included_files":[],"name":"sms-inbox-triage","skill_md_contents":"---\nname: sms-inbox-triage\ndescription: >\n  This skill should be used when a CallRail user asks to \"check my texts\",\n  \"which texts need a reply\", \"summarize SMS conversations\", \"triage the text inbox\",\n  \"share incoming texts with my team\", \"forward texts to the team\", \"draft replies to texts\",\n  or wants text threads summarized and routed to several people, which CallRail text forwarding\n  (one number only) doesn't do.\n---\n\n# SMS inbox triage\n\nBefore starting, read [ChatGPT runtime guidance](../../references/chatgpt-runtime.md).\n\nFind the real people waiting on a text, separate them from the noise (marketing blasts, codes, texts meant for someone else, vendors, tests), route a digest to the team, and draft replies for approval.\n\n## Which accounts this covers\n\nThe connector can reach every CallRail account the signed-in user has access to, and nothing else. That can be one agency account with many client companies, several separate client accounts the user was added to, or both. In CallRail an account holds companies, and each company is usually one client.\n\n1. Call `get_account`. It lists every account this user can reach.\n2. One account: use it. Several: show the account names and ask which to cover (one, several or all). If the user already named accounts or clients, use those and don't ask.\n3. Run the workflow once per account, passing that `account_id` on every call. Never mix data from different accounts in one call or one total.\n4. Report each account in its own section. Account-wide numbers and patterns are per account, and a client in one account never appears in another account's results.\n5. The skill sees only what the user's role allows in each account. If a call fails with a permission error (for example forms or users for a reporting-only user), say which account and what was skipped, and keep going.\n6. If a client the user names isn't in the chosen accounts, search `list_companies` in the user's other accounts before saying it doesn't exist.\n\n## Inputs\n\n1. Accounts: see \"Which accounts this covers\" above. Companies within each account: one, a list, or all.\n2. Window: default `recent` (last 7 days). Use `today` for a daily run.\n3. Destination for the digest: chat (default), a Slack channel, or email recipients.\n\n## Step 1: pull conversations\n\n- `list_conversations` with `state: inbox`, `date_range` for the window, `fields=lead_status,source`, `per_page: 40`, paginated. Add `company_id` when scoped.\n- **Check every response for `_truncated`.** Long marketing texts make pages large. In testing, a 100-per-page request returned 39 of 78 conversations with `total_pages: 1`, so half the inbox would have been skipped silently. If `_truncated` is present, re-request with `per_page` set to the `showing` count and page through. Check the total collected against `total_records`.\n- The `state` filter may return conversations marked \"active\". Don't rely on it to mean \"unread\"; the classification below decides what needs a reply.\n- If nothing comes back, retry without `state`, then try `list_sms_threads` for the window. If both are empty, check `list_trackers` for `sms_enabled` so the user knows whether texting is even on.\n- `recent_messages` can include texts from months ago. Only the newest messages matter; use `get_conversation` when more history is needed to understand the latest one.\n\n## Step 2: sort every conversation\n\nRead the latest message (and the one before it when needed) and put the conversation in **one** group. This is a judgment call on what the message says, not a keyword match. Work top to bottom and stop at the first group that fits.\n\n| Group | How to spot it | What to do |\n|---|---|---|\n| **Done** | Latest message is from the business | Count only |\n| **Opted out** | The customer's own latest text asks the business to stop texting: STOP, UNSUBSCRIBE, QUIT, CANCEL or END, or plain words such as \"stop texting me\" or \"remove my number\". \"Reply STOP to opt out\" inside someone else's marketing text is **not** an opt-out | Never draft a reply. List them. Automatic opt-out catches only the keywords, so mark plain-language opt-outs \"block by hand\" |\n| **Do not contact** | Abuse or threats with no request or complaint in them | Never draft a reply. List them |\n| **Complaint** | An unhappy customer with a real complaint (late technician, billing dispute, a repair that didn't hold), even when the text is rude | No draft. List under \"Complaints for a manager\" |\n| **Login codes** | One-time codes, verification codes, \"don't share this code\" | Count only. Several of these on one number point to a recycled number |\n| **Meant for someone else** | Personal messages (birthdays, family), reminders or orders addressed to a named person who isn't the business, \"please forward to...\" | Count only. Flag the tracking number as **likely recycled** (it belonged to someone else before) |\n| **Marketing and notifications** | Texts from other businesses: promotions, newsletters, surveys, review requests, order or delivery updates, links with a brand name, \"Reply STOP to opt out\" | Count only |\n| **Vendors pitching the business** | Lead sellers, recruiters, agencies, software sales, \"do you still own your company\" | Count only, unless the agency asks to see them |\n| **Test messages** | \"Test\", \"test message\", agency staff testing | Count only |\n| **Asked for a text** | \"Please text me\", \"text is best\", \"I can't talk, text me\" | **Reply first.** These are real leads, often from a missed-call text |\n| **Real question or request** | A person asking something or answering the business (\"Did my order ship?\", \"What's your zip?\", \"Hey\", \"?\") | **Reply** |\n| **Call back** | Automatic phone replies: \"Sorry, I can't talk right now\", \"Can I call you later?\", \"I'll call you back\" | Usually means the business called and the person declined. Put on a callback list, no text draft needed |\n| **Photo or empty** | Latest inbound message has no text, or only an image | A person needs to look. List them |\n\nWhen unsure between a real person and noise, put it under \"Real question or request\" and say why it's uncertain.\n\nRead the whole latest burst, not just the last line. Sales texts often open with a casual question (\"did your policy arrive in the mail or no?\") followed by a pitch in the next message sent the same second; that's marketing, not a customer.\n\n## Step 3: details for the reply groups\n\nFor \"Asked for a text\", \"Real question or request\" and \"Call back\":\n- **Waiting since:** time of the customer's latest inbound message (not the conversation's first message).\n- **Company, customer name** (skip caller ID labels like \"SPRINGFIELD IL\"; use \"unknown\" instead), **source**.\n- **One-line summary:** what they want.\n\n## Output\n\n1. **Headline:** \"X people waiting on a text, Y asked for a callback. Z others need no reply.\" Lead with any urgent text, then the longest wait.\n2. **Urgent:** texts from the reply groups about an emergency (water leak, no heat or power, someone stuck, injury), whatever their age. Same columns as Reply today.\n3. **Reply today:** Asked for a text, then Real question or request, oldest first: waiting, company, customer, summary, source, draft reply.\n4. **Call back list:** company, customer, when they replied.\n5. **Complaints for a manager:** company, number, when, one-line summary of the complaint.\n6. **Needs a look:** photo or empty messages.\n7. **Likely recycled numbers:** tracking numbers getting codes or texts meant for someone else, with counts.\n8. **Opted out:** list them, with plain-language opt-outs marked \"block by hand\".\n9. **Not shown (counts only):** marketing, codes, meant for someone else, vendors, tests, do not contact, done.\n\n## Draft replies\n\n- Under 300 characters, friendly, in the business's voice.\n- **Never guess facts.** If the answer needs something the thread doesn't say (a zip code, a price, a policy status, an opening), use a placeholder like `[business zip]` and flag it for the person sending.\n- No promises on price or timing the thread doesn't support.\n- Drafts only for \"Asked for a text\" and \"Real question or request\".\n\n## Routing\n\n- Slack: create a **draft** message in the chosen channel with the digest. Posting gives the whole team visibility, which covers the \"forward texts to more than one number\" request. Send only on explicit approval.\n- Email: create drafts only.\n- **Health details:** on every account (not only HIPAA), if a text mentions health details (appointments with a doctor, medication, diagnosis, insurance for care), keep the content in the chat and send only \"health-related message\" to Slack or email. On HIPAA accounts, send only counts and first names.\n\n## Sending replies\n\n- `send_text_message` cannot be undone. Never send in dry run.\n- To send, show the exact recipient, from-number and text, and wait for a yes for that specific message. One approval covers one message.\n- Never text anyone who opted out, is marked do not contact, or is on the complaints list (a manager handles those).\n- Fill every placeholder before sending.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}