Update email agent settings
update_email_agentChange the identity's hosted email agent settings; only the fields sent change, and settings take effect on the next inbound message. Every refusal leaves the previous settings in force: unknown fields and bad values are validation_failed, a playbook that does not parse is email_agent_playbook_invalid (each error with its rule), high-risk owner text is hosted_content_rejected. Any mode but off also needs the agent to be available, a paid plan with email and an email address on the identity. Returns the settings (as get_email_agent).
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": {
"identity_id": "<identity_id>"
},
"name": "update_email_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | off (default): the agent does nothing. draft: it writes replies as drafts for you to send. auto: it sends replies that pass every check and drafts the rest. Any mode but off needs the hosted email agent to be available (email_agent_unavailable otherwise) with usage billing active (email_agent_billing_inactive), a paid plan with email (email_agent_not_in_plan) and an email address on the identity (email_not_provisioned). While it is draft or auto, saves also need the agent:email.draft or agent:email.send scope; turning it on is refused past due (account_past_due). | |
| limits | No | Reply ceilings; only the limits sent change. | |
| sign_off | No | Optional plain-text name or short closing added to every hosted email agent reply before the AI disclosure line. On save with instructions, null or blank copies the identity's current name if it meets these rules; otherwise replies have no sign-off. Later renames do not change stored sign-offs. Up to 200 characters and at most 3 non-blank lines; no links, link schemes like https: or mailto:, web addresses, IP addresses or email addresses. Invalid values are refused with validation_failed naming sign_off. Screened on save with the instructions, playbook and holding reply; high-risk content is refused with hosted_content_rejected and nothing changes. | |
| allowlist | No | Addresses (pat@example.com) and @domain entries (@example.com) the agent answers when answer_scope is allowlist. Replaces the whole list. Max 200. | |
| screening | No | standard (default): suspected manipulation of the agent escalates to a person. relaxed: only high-severity manipulation escalates; the rest becomes drafts. Before relaxing it, tell the owner what it weakens and get their confirmation. Changes are logged. | |
| identity_id | Yes | Identity id from list_identities. | |
| answer_scope | No | anyone (default), or allowlist: only senders matching allowlist. | |
| instructions | No | Who the agent is, what it handles, its tone. Required unless mode is off. Screened on save with the playbook, holding reply and sign-off: high-risk content is refused hosted_content_rejected and nothing changes. | |
| ai_disclosure | No | Add a line to each reply saying an AI assistant wrote it (default true). Before turning it off, warn the owner that AI disclosure duties then become theirs and get their confirmation. | |
| holding_reply | No | Optional fixed plain text sent when a message is escalated in auto mode, e.g. "Thanks, a person will reply soon." | |
| escalation_email | No | Where escalation and draft notices go; null uses the account owner's email. Only the owner's email or an address on the identity's own email domain. | |
| sensitive_topics | No | escalate (default): payments, account changes, legal threats, complaints and medical questions go to a person. playbook_only: answer them from the playbook only. | |
| playbook_markdown | No | Per-topic rules: one "## Title" per rule, a "When:" line, and exactly one of "Answer exactly:" (a > blockquote, sent verbatim, up to 2,000 characters), "Guidance: ...", "Escalate: true" or "Never answer: true". Up to 50 rules. A playbook that does not parse is refused email_agent_playbook_invalid with every error by rule, and the previous playbook stays. null clears it. |