--- name: reachiz-autopilot-play description: Use when the user wants Reachiz Autopilot to design or launch an outreach play — "set up a campaign for this audience", "launch an autopilot play", "review and start my plays" — through the Reachiz MCP. --- # Design, review and launch an Autopilot play All play tools are outside the default list: call them as `call_tool { name: "", arguments: {...} }`. ## Steps 1. `get_started` → `get_autopilot` — read `blockers`, `customerTypes`, `plays[]` and `senders`. If LinkedIn senders is 0, tell the user to connect a sender first; Autopilot cannot launch without one. 2. Design a new play: `call_tool post_autopilot_plays_design` `body: { prompt: "" }`, `confirm: true` (spend-gated: it runs a paid model). On `"Confirm who Autopilot targets first. (conflict)"` the tenant has no customer types — finish Autopilot setup first (`call_tool post_autopilot_analyze` or dashboard), do not retry. 3. Review: `call_tool get_autopilot_plays_by_id` `params: { id }` — read `steps`, `sequence`, `audience`, `sample` before proposing anything. List the play to the user in plain terms. 4. Mark sample leads (optional): `call_tool post_autopilot_plays_by_id_sample` `body: { leadId, fit: "good" | "bad" }` — this marks a sampled lead's fit; it does not generate new samples. 5. Approve only after the user saw the steps and said yes: `call_tool post_autopilot_plays_by_id_approve` `params: { id }`, `confirm: true`. 6. Launch: `call_tool post_autopilot_plays_by_id_launch` `params: { id }`, `body: { when: "now" | "scheduled" }`, `confirm: true`. `"Only a play in review can launch. (conflict)"` means the play is not awaiting approval — check `status` first. 7. Monitor: `call_tool get_autopilot_alerts` and `get_autopilot` for alerts and status. Stop a play with `call_tool post_autopilot_plays_by_id_stop` `params: { id }`. ## Ask the user first - Before design (step 2): it spends credits on a model run — get approval. - Before approve (step 5): show the steps/audience and get an explicit "launch this". - Before launch (step 6): starting sends is a `send` gate — state the play name and senders, get `confirm` approval. ## Common errors (real responses) - `isError` gate refusal "…call again with confirm: true" — you forgot confirm or the user has not approved; ask first. - `"Confirm who Autopilot targets first. (conflict)"` — customer types missing; setup step, not a retry. - `"Only a play in review can launch. (conflict)"` — wrong lifecycle state; read `get_autopilot_plays_by_id` and follow its `status`. - `invalid_request` on sample — requires `body.leadId` and `fit`; sample is empty on plays that never generated one. - `isError` "Invalid params" — you forgot the `call_tool` wrapper. ## Stop rule Launch only once per user approval. After `when: "now"` succeeds, report the returned status and stop — do not keep launching or editing without a new instruction.