lead:reply
lead family
Sends a new lead the first reply from the caller's own workspace, at once: by text or WhatsApp when the lead ticked that box on the form (the consent record, never a field in the call) and the workspace has that channel connected, else one transactional email through message:send. A text goes through sms:send purpose form_reply in the fixed words that name the business and say Reply STOP to opt out; a WhatsApp message goes through channels as the approved template only (whatsappTemplate), never free text, and with none configured it is refused by name. WhatsApp first when both are ticked. Only one first reply leaves: when text or WhatsApp goes, no email does; anything refused there (no tick, no number, a STOP on either channel, no template, the one-reply-per-number-in-14-days and three-a-day-per-number caps) falls through to the email and is named in textRefused. The email is one transactional email through message:send, with the workspace's booking link when it has a bookable service, and records the seconds from the capture to the reply on the lead (meta.lead.firstReply) for the monthly report. One reply per address per workspace in 14 days (the reservation row rides agent_events_warm's 14-day purge); at most 100 first replies a UTC day per workspace and 3 a UTC day per address across every workspace — every bound keys on the inbox (lower-cased, +tag dropped, gmail dots folded); the email says a stranger can ignore it and carries an unsubscribe link signed for the inbox, so following it blocks every spelling; a canary lead, a suppressed or a declined address gets nothing and nothing is recorded
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- manage_workflows
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Cost
- free
- What one call costs, so you can budget before acting.
- Reversible
- no
- This cannot be undone. Dry-run it first where the contract allows.
- Idempotent
- yes
- Safe to retry as-is.
- Version
- 1.0.0
- Pin this to keep a contract stable; additive bumps never break callers.