Get leads
smartwebchat_get_leadsRetrieve the leads a website chatbot captured from visitors — contact requests, appointment bookings and callback requests, with the visitor's message and contact details. Appointment requests saved as bookings come after the leads as entries with type 'booking', with the requested service and time; their status is new, forwarded, confirmed or cancelled, and smartwebchat_update_lead does not change it. Without botId, returns the leads of every chatbot in the account. Needs an API key. Also accepts an OAuth access token with scope leads:read (without botId also assistant:read).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "smartwebchat_get_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| botId | No | Optional: only return leads of this chatbot. Omit for all chatbots in the account. |