--- name: reachiz-inbox-triage description: Use when the user asks to work through their Reachiz unibox — "triage my replies", "who answered my campaign", "mark the interested ones", "draft a reply" — through the Reachiz MCP. --- # Triage the unibox Inbox tools are outside the default list: call them as `call_tool { name: "", arguments: {...} }`. ## Steps 1. `call_tool get_conversations` — returns `{ data: [...], nextCursor }`. Empty `data` means nothing to triage; say so and stop. Page with `nextCursor` if the user wants more. 2. For each thread worth reading: `call_tool get_conversations_by_id` `params: { id }` and `call_tool get_conversations_by_id_messages` `params: { id }` — read before flagging or replying. 3. Update thread state: `call_tool post_conversations_by_id_flags` `params: { id }`, `body: { field: "read" | "archived" | "starred", state: true | false }`. Bulk flagging uses `call_tool post_conversations_flags` with a list of ids. 4. Summarize for the user: who replied, sentiment, which threads need a human. Present candidate replies as drafts in the chat first. 5. Reply only for threads the user named: `call_tool post_conversations_by_id_messages` `params: { id }`, `body: { text }`, `confirm: true` — this sends for real (send gate). ## Ask the user first - Before step 5: quoting or drafting in chat is free; sending is a `send` gate. Show the exact reply text and the thread, get approval, then `confirm: true`. - `archived` is reversible but still changes what the user sees — confirm intent when bulk-archiving. ## Common errors (real responses) - `isError` "conversations N not found (not_found)" — stale id; refresh with `get_conversations`. - `invalid_request` on flags — `body.field` must be `read`, `archived` or `starred`, `state` must be a boolean. - Gate refusal on reply — you forgot `confirm`; never retry without asking. - `isError` "Invalid params" — you forgot the `call_tool` wrapper. ## Stop rule One pass: list, read, flag, summarize, send approved replies. Do not send replies the user did not explicitly approve, and do not loop the inbox looking for more work.