Update lead status
smartwebchat_update_leadChange the status of a captured lead, for example to mark it as contacted or closed. Writes to the account. Needs a key with full access; a read-only key gets 403 here. Also accepts an OAuth access token with scope leads:write.
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": {
"botId": "<botId>",
"leadId": "<leadId>",
"status": "<status>"
},
"name": "smartwebchat_update_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| botId | Yes | ID of the chatbot the lead belongs to | |
| leadId | Yes | ID of the lead | |
| status | Yes | New status: 'new', 'contacted' or 'closed' |