Find Customers To Rebook
find_rebook_customersList a business's customers who booked a week last year (for example Thanksgiving week) and have not booked the same week this year, biggest last-year spend first, from the orders in the business's connected booking system. Each row has the customer's name and company, a masked phone, whether there is an email, and last year's order numbers, dates and totals. Returns email_ready_lead_ids (recorded email permission, not on the do-not-email list) to pass straight to draft_email_campaign, and call_list (name, phone, last-year total) for staff to dial by hand: Kai never calls or texts these past customers. Customers whose details have not been looked up yet show contact 'not_looked_up'; prepare_rebook_customers fills them in. Read-only; needs a connected booking system.
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": "find_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 | ||
| data | No | ||
| error | No | Present when success is false | |
| counts | No | ||
| window | No | ||
| success | Yes | Whether the tool completed successfully | |
| warnings | No | ||
| call_list | No | ||
| call_list_note | No | ||
| email_ready_lead_ids | No | ||
| email_needs_permission_lead_ids | No |