Can an AI agent book a hotel on Trip.com?

Short answer. Partly, through AgentWeb. As of Oct 22, 2026, the Trip.com map (version 0.1.0) gives your agent 9 actions. It can find hotels for a destination and dates, list available rooms, read the reservation price breakdown, start the booking for a selected room, open a guest checkout session and list the payment methods on offer. Completing payment is not mapped yet.

Map: Trip (trip.com) · version 0.1.0 · 9 actions · Uses the person's own signed-in account

What your agent can do on Trip

ActionWhat it does
book_hotel_roomStarts the booking for a selected room (opens the hotel booking page).
non_member_loginOpens a guest checkout session for the hotel booking.

What your agent can read first

ActionWhat it returns
get_hotel_keywordsHotel destination keyword autocomplete/typeahead Body carries queryInfo {keyword, actionType} plus a head config block.
hotel_searchSearch hotels for a destination and date range Returns JSON data.hotelList[], where each entry's hotelInfo carries summary (hotelId, masterHotelId, hotelType).
get_city_listFetch the popular destinations / city list Returns a JSON object with data.globalCityModel.cityModelGroups[], each group carrying displayControlModel.fullName.
recommend_cityFetch popular/recommended destination cities for the homepage suggest widget Returns a JSON object with "title" (e.g. "Popular Destinations") and "cityList".
get_hotel_room_list_overseaFetch the available room list for a specific hotel and date/occupancy Returns JSON with data.quickFilter[], data.roomFilters[] (Bed type / Number of bedrooms /.
hotel_reservation_price_detailsFetch the reservation/booking price breakdown for a selected hotel room and dates Returns a JSON object with priceInfo (newTotal, prePayTotal, quantityDays.
payment_list_searchSearch the available payment methods for a pending payment Returns JSON with ResponseStatus, head {code, message}, and displayInfo describing the offered.

How the login works

The person signs in once on Trip through AgentWeb's hosted login, started with agentweb_start_connection and confirmed with agentweb_poll_connection. Your agent never sees the password. Actions then run on that person's own account, and they can disconnect at any time.

Try it

curl -s https://mcp.agentweb.us/api/execute \
  -H "Authorization: Bearer $AGENTWEB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: trip-keywords-1" \
  -d '{"domain":"trip.com","action":"get_hotel_keywords","params":{"keyword":"Lisbon"}}'

Parameter names shown are illustrative. Your agent gets the exact schema for every action from AgentWeb's list_actions tool.

What it does not cover yet

  • Paying for and confirming the booking is not mapped yet.
  • Flights and trains on Trip.com are not in this map.

Frequently asked questions

Can my agent finish a Trip.com hotel booking?

Not fully yet. It can take the user up to the booking page for a chosen room with the exact price, and the person completes payment.

What does it cost?

Each completed action costs $0.05, paid from prepaid blocks of $25, $50 or $100 that never expire. Failed actions are refunded.

Which AI tools can use it?

Any agent that speaks MCP or HTTP. Add https://mcp.agentweb.us/mcp as a remote MCP server in Claude, ChatGPT, Cursor, Codex or Grok, or call the REST endpoint directly.

Action list from AgentWeb's public sites API, snapshot Oct 22, 2026, 16:59 London time. Live coverage: mcp.agentweb.us/api/sites.

More: Sites AgentWeb can act on · All guides · Glossary · Install AgentWeb