delegate_to_user
THE channel for anything a HUMAN must do, decide or answer (approve, confirm data, classify, check something on site). Not create_todo (that is the agent's own list), not send_team_email or mail/WhatsApp to colleagues. Address the person who must act with an (name or user_id, resolved only within this tenant; default: the key owner) — it lands in THAT person's delegation inbox on the website and in the app, counted at the bell. Link it with bezug {typ: 'deal'|'project'|…, id: e.g. the DN number} and a short thema: an open delegation for the same person + bezug + thema is REUSED (reused: true, new questions appended) instead of creating a second one — so never ask the same thing again, wait for the answer. A deadline (frist_at) follows from importance (≥80: 4 working hours, ≥60: next working morning 09:00; or pass frist); unanswered after it the person is reminded once a day (07–19 Zurich) and then it is escalated to the tenant's escalation person. Hand a concise summary and zero or more open questions to the human — from a scheduled Dev-Agent turn OR from an interactive Dev-Agent session. Each question needs text, importance (0-100), and 1-n recommended answers. The questions appear in the user's delegation inbox in CallPilotAI; when answered, this same session is resumed automatically with the answers. NO ids are required: schedule_run_id, runner_id and session_id are only passed in a scheduled turn (from its instruction). Anywhere else — an interactive Dev-Agent session, Claude Desktop, any client — just call it with summary and questions; in a Dev-Agent session the runner supplies runner and session itself, so the answer resumes this session. Use it for decisions the human must take (approve a draft, pick an option), not for chat. For EVERY question also recommend which agent should handle it (recommended_agent_id from list_agents, plus a one-line recommended_agent_reason) — yourself if you can, another agent if it has the rights or the expertise you lack; null only when no agent should act and the human decides alone. The inbox offers the human a one-click hand-over to that agent. Reply drafts to an incoming item: ALWAYS set source {kind: 'email'|'inbound_message', id} on EACH question (questions[].source), also when one delegation holds many drafts — only then does each mail/message carry its draft and /app/inbox count it under 'Entwürfe zur Freigabe'. The result reports linked_sources and unlinked_sources (with reason).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"summary": "<summary>",
"questions": "<questions>"
},
"name": "delegate_to_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| an | No | Who must answer/act: name (e.g. 'Max Mustermann', 'Erika') or user_id from list_tenant_users. Only members of this tenant; ambiguous or unknown names are refused with the member list. Default: the key owner. | |
| bezug | No | What it is about, for duplicate detection and the inbox: {typ: deal|project|lead|account|contact|offer|lab_order|todo|email|other, id}. For deals the deal number (e.g. '1000'). | |
| frist | No | Optional deadline (ISO date-time). Default from importance: ≥80 four working hours, ≥60 next working morning 09:00, below no deadline. | |
| thema | No | Short topic key, e.g. 'Daten komplett bestätigen' or 'MaP einstufen'. Same person + bezug + thema while open = the same delegation. | |
| source | No | The incoming item this is about (e.g. the mail a reply draft answers): {kind: 'email'|'inbound_message', id}. The item then carries this delegation as its reply draft (triage_draft_delegation_id). Checked BEFORE anything is created. For several drafts in one delegation use questions[].source per question instead. | |
| summary | Yes | Concise summary for the human of what this is about | |
| agent_id | No | ID of the agent | |
| questions | Yes | Open questions for the human, each with text, importance and recommended answers | |
| runner_id | No | ID of the runner | |
| an_user_id | No | Same as an, as a user_id. | |
| session_id | No | ID of the session | |
| session_name | No | Name of the asking Dev-Agent session, resumed with the answers | |
| schedule_run_id | No | ID of the schedule run |