Capture a trial lead
capture_leadRecord a trial lead after the user typed their details and asked to be contacted. Requires consent:true. Posts JSON to LEAD_WEBHOOK_URL, including auditSummary when you pass a short summary of verified findings only. If that URL is unset and Resend is configured, email only the KOB inbox. If neither sink is configured, the result still contains the lead and the server logs it. Never email the restaurant. Does not change Google.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| town | No | ||
| No | |||
| notes | No | ||
| client | No | Calling assistant, used only for the trial link utm_source. Examples: claude, chatgpt, grok, copilot, gemini. | |
| consent | Yes | True only after the user asked to be contacted and supplied their details. | |
| placeId | No | ||
| website | No | ||
| auditSummary | No | Short summary of verified audit findings. Omit if there was no audit. Do not invent findings. | |
| restaurantName | No |