Convert lead
convert_leadConvert a lead into a customer on a gig and mark the lead Won. It writes three things: the customer, that customer on the gig, and the lead stage. Returns the customer, the event_id and the updated lead. A Won lead cannot be reopened with save_lead, so check the lead and the gig with the user first. Confirmation-gated.
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": {
"lead_id": "<lead_id>",
"event_id": "<event_id>"
},
"name": "convert_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes | id of the lead to convert, from list_leads | |
| event_id | Yes | the gig to attach the new customer to, an id from list_events, open_gigs or my_agenda | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { customer { email, id, name, phone }, event_id, lead { inquiry_date, referred_by, guest_count, budget, company, customer, customer_id, email, and 19 more fields } } } | |
| error | No | when ok is false |