Prepare Customers To Rebook
prepare_rebook_customersFor the customers find_rebook_customers lists as 'not_looked_up', read their name, phone and email from the business's booking system and save them as past customers, so the list can be emailed and called. Past customers raise no new-lead alerts and are never put in Kai call or text campaigns. Reads a few customers a minute (the booking system's limit), so one call may not finish: when remaining is above 0, call again. A customer that cannot be read stays on the list. Sends nothing. Requires an admin of the business.
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": "prepare_rebook_customers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Optional with holiday: the year to fill (default: this year). Last year's week is the year before. | |
| holiday | No | Compare this holiday's week last year with the same week this year (Monday to Sunday around the holiday; Memorial Day and Labor Day take the seven days ending on the holiday; new-years is the week of New Year's Eve). Use this or this_year_start/this_year_end. | |
| business_id | No | Required when the account has more than one business. | |
| last_year_end | No | Optional: last day of the earlier range. | |
| this_year_end | No | Last day, YYYY-MM-DD (inclusive, at most 92 days). | |
| last_year_start | No | Optional: first day of the earlier range. Default: the same weekdays 52 weeks before. | |
| this_year_start | No | Optional instead of holiday: first day, YYYY-MM-DD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| done | No | ||
| list | No | ||
| error | No | Present when success is false | |
| success | Yes | Whether the tool completed successfully | |
| prepared | No |