assign_email
Assign a mail AFTER THE FACT to a person (contact_id), a lead (lead_id) or an organisation (account_id) — e.g. a mail sent with send_email before the contact existed, or an incoming mail with assignment_state 'none'/'ambiguous'. Required: email_id (incoming/fetched mail from list_emails) OR draft_id (mail sent via send_email, from list_email_history), and exactly one of contact_id / lead_id / account_id. The mail then appears in that record's communication timeline with its ORIGINAL date; who assigned it and when is recorded (audit log, record history). Optional: also_thread=true assigns the other mails of the same conversation too (same subject without Re:/AW:/Fwd: AND the same counterpart address) — mails already assigned to someone else are left alone and listed as skipped. Needs write access to the mailbox (incoming) or visibility of the sent mail.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "assign_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | No | ID of the lead | |
| draft_id | No | ID of the draft | |
| email_id | No | ID of the email | |
| account_id | No | ID of the account (company) | |
| contact_id | No | ID of the contact | |
| also_thread | No | true also assigns the other mails of the same conversation |