hero_create_lead
Create a new customer enquiry or project in HERO from phone, email, or website form, requiring email and ZIP code; HERO de-duplicates by email.
Instructions
Create a new customer enquiry/project in HERO via the Lead API (e.g. from a phone call, email or website form). Requires customer email and ZIP code. HERO de-duplicates customers by email. Requires HERO_ALLOW_WRITES=true. Always confirm the details with the user before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>",
"address": "<address>"
},
"name": "hero_create_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| comment | No | Description of the request; added to the project logbook. | |
| measure | No | Trade/measure code, default 'PRJ'. Available codes depend on the HERO account. | |
| project | No | ||
| customer | Yes | ||
| status_code | No | Initial status: 201 first contact (default), 400 site visit, 601 quote, 801 order, 1111 in progress. | |
| projectaddress | No | Job site address if different from the customer address. |