matchLead
Matches a lead to members based on category, location, and service area, and sends notification emails.
Instructions
Auto-match lead to members - Triggers automatic matching - system finds members matching category, location, and service area, then sends notification emails.
Use when: you've just created a lead (or need to re-distribute an existing one) and want BD to automatically email eligible members in matching category + location + service area. SIDE EFFECT: sends real emails to real members. Confirm with the user before calling on production data.
Required: lead_id.
Parameter interactions:
Side effect: sends notification emails to ALL members whose category, location, and service area match the lead
Not a dry-run - emails go out immediately. Not rate-limited per lead
lead_idmust reference an existing lead created viacreateLead
Returns: { status: "success"|"error", message: ... } - BD's standard response envelope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes |