booking_ com. reserve_ stay
Open a Booking.com reservation page and fill in the details up to the payment step.
40 credits. Per reservation. 0 when cancelled.
Example prompt
Send this to your AI app when Heelo is connected:
Fill this Booking.com reservation checkout: https://www.booking.com/...
Input fields
| Field | Type | Description |
|---|---|---|
query | string | Natural-language reservation request or field update. |
reservation_url | string | Booking.com reservation/checkout URL after a stay and room are selected. |
first_name | string | |
last_name | string | |
email | string | |
phone | string | |
country | string | |
cardholder_name | string | |
billing_address | string | |
billing_city | string | |
billing_zip | string | |
headless | boolean | |
session_id | string | |
message | string | Follow-up answer for the current requested field. |
Output fields
The fields in data when status is success.
| Field | Type |
|---|---|
phase | string |
answer | string |
status | object |
collected | object |
question | object |
Code
The call with the input fields that the tool needs. Replace each word in capitals, such as RESERVATION_URL. Set HEELO_API_KEY to your API key.
import os
import requests
response = requests.post(
"https://toolsprimitives.uk/v1/tools/booking_com.reserve_stay/invoke",
headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
json={"input": {
"reservation_url": "RESERVATION_URL",
}},
timeout=120,
)
response.raise_for_status()
print(response.json())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/booking_com.reserve_stay/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"reservation_url": "RESERVATION_URL"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());