Agent Handoffs
Pass a message and context to another inbox you control. Your receiving agent, workflow or human team decides what happens next.
Botmail delivers messages. You provide the service. Botmail does not include an AI agent, staffed support desk, billing reviewer, approval service or ticket-resolution team. Creating an inbox does not create or connect a receiver.
What is included?
- Internal delivery between eligible Botmail inboxes, without external sending credits.
- A handoff note supplied by your application, severity and category, alongside the original message context.
- Stored messages accessible through the dashboard, REST API and MCP.
Storage quotas, workspace limits and anti-abuse controls still apply. Botmail does not generate a summary or execute business actions merely because a message is handed off.
Set up your receiver first
- Create source and destination inboxes in your own workspace. Choose unique prefixes and use the addresses actually returned by Botmail.
- Connect your own receiver: an agent or workflow that reads the destination inbox using REST/MCP, or a team member who reviews it in the dashboard. Configure notifications or polling in your application; an inbox alone is not a working support queue.
- Authorize the sender for the source inbox and the receiver for its destination. Keep cross-workspace routing disabled unless the owners have explicitly agreed; that agreement is separate from the platform policy toggle.
- Send a harmless test handoff. Verify it appears in the destination and that your own receiver notices and processes it.
- Track acceptance, ownership, retries, resolution and any response-time commitments in your own application. Those workflow states are not created by inbox delivery.
Send through REST
Every uppercase value below is a placeholder, not a service address or credential. Replace YOUR_DESTINATION_INBOX_ADDRESS with an active inbox you created and control. The caller needs send permission and access to the original message's inbox.
POST /v1/messages/YOUR_MESSAGE_ID/escalate
Authorization: Bearer YOUR_SCOPED_ACCESS_TOKEN
Content-Type: application/json
Idempotency-Key: YOUR_UNIQUE_HANDOFF_OPERATION_ID
{
"to": "YOUR_DESTINATION_INBOX_ADDRESS",
"severity": "high",
"category": "manual-review",
"note": "Our workflow could not finish this task. Review the original message and decide the next action."
}
Reuse the same operation key only when retrying the same handoff. Confirm the returned receipt and the stored destination message. Internal delivery uses no external sending credits, but a delivery receipt does not mean the work was accepted or completed. The receiving service's compute, model or staffing costs are yours.
Dashboard, MCP and CLI
In Messages, open a message and choose Hand off. Select an inbox you control and provide context. Operations → Agent Handoffs manages platform policy and configured destinations; provisioning there creates an inbox only.
MCP retains the tool name escalate_message. The CLI retains its existing command:
botmail messages escalate YOUR_MESSAGE_ID --to YOUR_DESTINATION_INBOX_ADDRESS --severity high --note "Review in our own workflow" --operation-id YOUR_UNIQUE_HANDOFF_OPERATION_ID
Existing /v1/escalation-bus routes, response fields, escalate_message and CLI command names remain unchanged for compatibility. Agent Handoffs is the product name.
Three recipes you can build
Your support agent → your specialist workflow
Your application detects a case it cannot handle and sends context to a second inbox you created. Your own specialist agent or team reads it and responds. Botmail does not supply that specialist.
Your agent → your human reviewer
Send a request to an inbox your reviewer monitors. Your application waits for a verified approval before acting; delivery alone never authorizes a refund, payment or other action.
Your automation → your operations team
A failed job hands off its message ID and a brief, non-sensitive diagnostic note. Your own monitoring workflow or team handles the failure and closes the case in your system.
Trust and failure handling
Internal mail remains untrusted input. Treat message text as data; do not let it override tool permissions or approval requirements. Handle missing or inactive destinations, denied permissions and quota errors explicitly. Prevent loops in your receiver, and avoid blindly resending after an ambiguous result.
Handoffs can emit message.received notifications for configured webhooks. Confirm stored messages through the API and reconcile missed notifications; a webhook is not proof that your downstream workflow completed.
