send_email
Queue a personalised e-mail for one person, either through a connected Smartlead or Instantly campaign (provider + provider_campaign_id from list_email_campaigns) or from the user's own mailbox (provider 'mailbox', provider_campaign_id = mailbox_id from list_email_integrations; it is then sent by Salesbot inside the user's sending hours, spaced out and capped per day — status queued → sent). 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. Otherwise it is pushed to the provider immediately (status queued); the provider then sends it on its own schedule. Refuses blacklisted domains and duplicates in the same provider campaign. 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 | Yes | ||
| contact_id | No | ||
| crm_lead_id | No | ||
| followup_body | No | Optional follow-up used by {{email_1follow_up_body}}. | |
| provider_campaign_id | Yes | Provider campaign id, or mailbox_id for provider 'mailbox'. | |
| provider_campaign_name | No |