Notify the owner about new leads
dosai_add_lead_notificationMake the bot tell the OWNER about a new lead with the client's name and phone: by email (works at once) or to a WhatsApp number or group (needs the project's WhatsApp connected; the message goes from the business number). The address must be the owner's or their team's, confirm it with the owner: every future lead's contact goes there. Requires editor role.
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": {
"project_id": "<project_id>",
"via": "<via>",
"to": "<to>"
},
"name": "dosai_add_lead_notification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Email address, or a WhatsApp number like +77011234567. | |
| via | Yes | ||
| project_id | Yes | From dosai_list_projects. |