The basic pattern
- The assistant starts a
phone_run_taskand waits on the monitor. - The agent drafts the message and pauses for your approval - either in your
AI client’s conversation, or as a
needs_user_controlhandoff if the phone itself needs confirmation. - Only after your OK does the message go out.
Prompt patterns that work
Be explicit about recipient, content, and the gate:When the phone hands control back
If the messaging app throws something sensitive - a login screen, a verification prompt - the task completes withterminal: "needs_user_control" rather than the agent pushing through. Your assistant relays what is needed; you complete the step on the device or answer in chat, and the workflow continues as a continuation task. The full loop is in Task lifecycle.
Multi-message workflows
Keep related sends in one session so the workflow stays on one device:session_id. See Session management.
Related
Task design
Confirmation gates, disambiguation, output contracts
Security
Why sends should always be supervised