send_team_email
Send an email to a COLLEAGUE in this tenant — e.g. a price list or an offer PDF to the employee who asked for it, for approval. Recipient: to_user_id (see list_tenant_users; a numeric Pipedrive user id such as a deal owner is resolved via its email) and/or to_address; the address must be that person's login address or one of their connected mailboxes, anything else is refused. Customers are NOT reachable here — for them use send_email / send_draft_email (lead, consent check). No lead needed. Optional attachments: document_ids (e.g. from get_abaninja_quote_pdf), attachment_mode 'link' (default) or 'file'. Sends for real, from the tenant's mailbox. Called by an AGENT: NO internal status or request mails — a mail WITHOUT attachments is refused (put the request/info as create_todo on the responsible person's list instead; the todo is the channel and replies happen there), and with attachments only what the person should check or approve (e.g. a report PDF «… zur Freigabe»), never a pure status («… importiert/blockiert/erledigt»). Exception: a human explicitly asked for this mail — pass auf_wunsch_von with that person (name, user_id or address; recorded in the mail and the tool log). Also for agents: a second internal mail to the same person within 24 h with the same DN or (almost) the same subject is NOT sent — the result says dublette:true (trotzdem:true sends anyway).
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": {
"subject": "<subject>",
"body": "<body>"
},
"name": "send_team_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Body text | |
| subject | Yes | Subject line | |
| trotzdem | No | Agents only: send even if the same person got an internal mail with the same DN or (almost) the same subject in the last 24 h — otherwise nothing is sent and dublette:true is returned. | |
| body_html | No | Optional designed HTML version of the mail, sent UNCHANGED as the text/html part (multipart/alternative); body stays required and is the plain-text part. Attachment links, unsubscribe and AI notice are inserted before </body> (or appended). Max 512 KB; link images, no data: URLs. | |
| to_address | No | Recipient email address | |
| to_user_id | No | ID of the recipient user | |
| attachments | No | document_ids | |
| auf_wunsch_von | No | Agents only: the person of this tenant (name, user_id or address) who EXPLICITLY asked for this mail. Without it an agent cannot send internal mails without attachments or pure status mails — use create_todo instead. | |
| attachment_mode | No | How documents are attached: link (default) or file |