create_booking_intent
Creates a link only — nothing is charged, reserved or booked until the person pays on autonomad.ai. The short-lived link opens a page where the traveler reviews the full price and terms, signs in or creates an account, and books and pays. Payment and identity checks happen on the website, and bookings are not made inside the chat.
No new search is needed: offer_data is built from the search results already in this conversation. The website checks the live price and availability at checkout, and finds the same flights again if a fare has expired, so results that are a few minutes old are fine, and searching again first only adds a wait.
When to use it: as soon as the person picks a flight, fare or hotel, says they want to book, or asks how to book. It is not needed for browsing. intent_type is one of 'flight', 'hotel' or 'trip' — there is no activity, event or experiences link. Activities, experiences and events are chosen as add-ons on autonomad.ai after the person opens a flight, hotel or trip link, so describe them in the reply rather than creating a link for them.
intent_type (choose one):
'flight': the person chose a flight only. offer_data is the flight from search_flights, unchanged, with the CHOSEN fare: when the person picked a fare other than the first in
fare_options, set offer_id, price_usd, fare_brand and cabin_class to that fare option's values (the booking page opens exactly that fare). Plus a top-levelpassengersnumber (the TOTAL number of travelers the person asked for; flight offers do not include it). When children or lap infants travel, also add the sameadults,children_agesandinfants_on_lapused in search_flights, so the booking page asks for each traveler (every traveler's date of birth is entered on autonomad.ai, never here).'hotel': the person chose a hotel only. offer_data is the hotel offer from search_hotels plus top-level
check_inandcheck_outas YYYY-MM-DD strings (the dates used in the search; hotel offers do not include them, and without them the booking page opens an empty form), andadultsandroomsnumbers. A hotel from find_hotels_on_route is different: offer_data is that hotel'sbooking_offerexactly as find_hotels_on_route returned it — copy it whole, never rebuild it from the hotel's name, address or price and never add or drop keys (it already carries check_in, check_out, adults and rooms, and the room to book).'trip': the person chose a flight and a hotel for the same trip. offer_data is { flight: { ...offer (with the chosen fare, as for 'flight'), passengers: }, hotel: { ...offer, adults: , rooms: , check_in, check_out } }. One link covers both, so one intent per trip is enough; two separate links for one trip are confusing.
Include the traveler count in offer_data: without it the booking page defaults to 2 travelers. Travelers can be any age, including children and babies; only the account holder who books and pays must be 18 or older.
A person's first trip with Autonomad, booked from an assistant's booking link, includes Trip Concierge free.
What the reply to the person should include: the deep_link as a clickable link that invites them to book (for example 'Book it here'), and one short line that nothing is charged until they pay on autonomad.ai, where the full price and terms are shown. Lead with the link, not with caveats. The link lasts about 30 minutes; there is no need to say so unless the person comes back later, and then simply create a new one.
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": {
"intent_type": "<intent_type>",
"offer_data": "<offer_data>"
},
"name": "create_booking_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_data | Yes | The chosen flight or hotel exactly as the search result gave it (see intent_type for what to add, such as passengers or check_in and check_out). Taken from the results already shown; no new search is needed. | |
| intent_type | Yes | flight, hotel, or trip (a flight and a hotel together). Activities, experiences and events are added on autonomad.ai after opening one of these links. | |
| expires_minutes | No |