Contact the dealer
lead_submitUse this to send the shopper's request to the dealer once they have agreed to the consent wording, with the ticket from lead_prepare. It reaches a real dealership. Do not use it without a ticket from lead_prepare.
It sends a real lead. It is refused with consent_required unless disclosure_text is exactly the text lead_prepare returned, customer is the same shopper, and shopper_consented is true, because CarEdge must be able to show that this shopper agreed to these words. Agreement is the shopper's own reply in a later turn, after seeing the text: a clear yes, or their details. Approving a tool call in the app is not agreement.
When lead_prepare returned an empty disclosure_text, disclosure_text may be left out, and shopper_consented: true is still needed: the shopper's yes to being contacted by the store.
channels may be left out, and then the dealer is asked to use exactly the channels chosen at lead_prepare. It may name fewer, never more.
A ticket makes one lead. The exact same call sent again answers with the same lead_id and the lead's current status, and nothing is sent twice. A different request on a ticket already used answers ticket_used. After fifteen minutes the ticket answers ticket_expired, and a new lead_prepare, with the consent wording shown again, is needed.
One shopper and one car make one lead a day. When this shopper's lead for this car was already sent in the last 24 hours, the answer is that lead, with its own lead_id and accepted_at, and already_sent: true: the request is already with the dealer and nothing new reaches the store. Something the shopper gave after that lead, such as a trade-in, goes in a new lead whose comments say what is new, with adds_to set to the earlier lead_id; it reaches the store as its own lead. trade_in holds the shopper's own car, and the dealer's CRM files it as the trade-in vehicle.
Each store takes at most 25 leads a day from AI assistants. Past that the answer is rate_limited, and the store can still be called directly.
comments is a short note of what the shopper wants the dealer to know, at most 500 characters.
status: "accepted" means the lead is CarEdge's and safe. The email to the dealer's CRM goes out straight afterwards and is retried on its own if it fails, so a delivery problem is never the shopper's to solve.
A dealer with a dealer-<id> slug never gets a ticket, because lead_prepare answers quote_unavailable for its cars, so no request can reach it.
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": {
"ticket": "<ticket>"
},
"name": "lead_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | The ticket from `lead_prepare`. | |
| adds_to | No | The earlier `lead_id` for this shopper and car this one adds to. | |
| channels | No | Fewer than at prepare, never more. Omit to keep them all. | |
| comments | No | A short note of what the shopper wants the dealer to know, in their own words, at most 500 characters, e.g. "Is it still available? Could I test drive it Saturday morning?" | |
| customer | No | The same shopper `lead_prepare` was called with. | |
| trade_in | No | The shopper's own car, if they offered one. | |
| disclosure_text | No | The exact words the shopper was shown. | |
| shopper_consented | No | True only once the shopper has said yes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |