send_email
Queue a personalised e-mail for one person from the user's own mailbox (provider 'mailbox', provider_campaign_id = mailbox_id from list_email_integrations). Salesbot sends it inside the user's sending hours, spaced out and capped per day (status queued → sent). In the Czech Republic an unsolicited commercial e-mail needs the recipient's prior consent (§ 7 of Act 480/2004 Coll.); without consent e-mail only existing customers or people who replied or asked for it — use LinkedIn for first contact with new people. Before sending to someone new, ask the user whether the person consented or is an existing customer. Pass crm_lead_id or contact_id, subject and body (placeholders like {{first_name}}, {{company}}, {{oslovení}} are filled per person). If the person has no address, pass email — it is saved to the contact. When approval is required (see list_email_integrations) the e-mail waits in Salesbot for the user (status pending_approval) — tell the user, never claim it was sent. Refuses blacklisted domains, people on the do-not-contact list and duplicates. Every e-mail is checked by Salesbot first (the person's name and gender in the greeting, their company, leftover placeholders like {{company}} or (název firmy), Czech grammar, and no signature in the body when the mailbox appends its own): on error AI_CHECK_FAILED nothing is sent — fix exactly what the error says and call send_email again; a second failure goes to the user's manual approval. Statuses: pending_approval (waits for the user in Salesbot → CRM → E-maily), approved (approved, not yet in the provider — usually a temporary provider error; retry by approving again), queued (in the provider campaign, or waiting for its slot in the user's own mailbox), sending, sent, replied, bounced, unsubscribed, paused, completed, failed (see error), rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Plain-text e-mail body. | |
| No | Recipient address; required when the person has none saved. | ||
| subject | No | ||
| provider | No | Always 'mailbox' (the user's own Outlook or IMAP/SMTP mailbox). | |
| contact_id | No | ||
| crm_lead_id | No | ||
| provider_campaign_id | Yes | mailbox_id from list_email_integrations. |