Search available cars and prices
search_availabilitySearch available vehicles with real prices for a company, office and dates. Prices are identical to the company's own web chat (mandatory charges, one-way and time rules included). Returns numbered offers and the session_id of this booking session.
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": {
"company_id": "<company_id>",
"pickup_office": "<pickup_office>",
"pickup_date": "<pickup_date>",
"return_date": "<return_date>",
"driver_age": "<driver_age>"
},
"name": "search_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language of the conversation, BCP-47 (es, en, pt-BR, fr, de, it…). Defaults to 'en'. Bota also answers in the language the customer writes. | |
| company_id | Yes | Rental company id. | |
| driver_age | Yes | Main driver's age. The price and the available cars depend on it. | |
| promo_code | No | ||
| session_id | No | Booking session id returned by a previous call for this company (offers, selection, customer details). Omitted, a new session starts. | |
| pickup_date | Yes | YYYY-MM-DD, office-local. | |
| pickup_time | No | HH:MM, office-local. Default 10:00. | |
| return_date | Yes | YYYY-MM-DD, office-local. | |
| return_time | No | HH:MM, office-local. Default 10:00. | |
| pickup_office | Yes | Pickup office name or id. | |
| return_office | No | Return office name or id when different (one-way). |