create_booking_intent
Creates a short-lived link where the traveller reviews the full price and terms, signs in or creates an account, and books and pays on autonomad.ai. It creates no reservation and makes no charge: payment and identity checks happen on the website, and bookings are not made inside the chat.
When to use it: after the person has chosen something specific, such as a flight, a hotel, or both for one trip. 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 offer from search_flights, unchanged, plus a top-level
passengersnumber (the TOTAL number of travellers 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 traveller (every traveller'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, 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 traveller count in offer_data: without it the booking page defaults to 2 travellers. Travellers can be any age, including children and babies; only the account holder who books and pays must be 18 or older.
What the reply to the person should include: the deep_link as a clickable link, and when the link expires (about 30 minutes by default; a new one can be created if it lapses).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_data | Yes | ||
| 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 |