Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Stay organized with collections
Save and categorize content based on your preferences.
The Travel
playbook-based prebuilt agent
allows users to search for points of interest (POI), get travel recommendations, and
book hotels. The agent uses user profile data to customize recommendations for
the user, if provided.
Sample dialogs
The following sample dialogs demonstrate common scenarios handled by this
prebuilt agent.
POI search and hotel booking
The user asks about restaurants in Washington DC. The agent recommends a few
points of interest, and the user asks to book a hotel. The agent collects
required information, including the hotel, check-in date, check-out date, number
of travelers, and number of rooms. The user confirms the information and the
agent books the stay, providing the user with a confirmation number.
User input
Agent response
hi are there any good seafood restaurants in Washington DC?
Here are some seafood restaurants in Washington DC: - The Oceanaire Seafood Room - Tony and Joe's Seafood Place - Joe's Seafood, Prime Steak & Stone Crab
Anything else I can help you with?
I'd like to book a stay for four nights in DC
Here are some hotels in Washington DC that I found. Which one would you like to book?: - Cambria Hotel Washington D.C. Navy Yard Riverfront - Beacon Hotel & Corporate Quarters - Holiday Inn Washington Capitol - Natl Mall, an IHG Hotel
Beacon Hotel sounds good
Great, let me just confirm a few details. You'll be staying 4 nights, from 11-06 to 11-10 correct?
actually I'll check in on the 8th
Ok, so you'll be checking in on 11-08 and checking out on 11-12?
yes that's perfect
Great, let me just confirm your booking details Hotel Name = Beacon Hotel & Corporate Quarters Check In Date = November 8th Check Out Date = November 12th # Rooms = 1 # Travelers = 1
Is that correct?
my son will be coming with me
Ok, so 2 travelers. Let me update your booking details Hotel Name = Beacon Hotel & Corporate Quarters Check In Date = November 8th Check Out Date = November 12th # Rooms = 1 # Travelers = 2
Is that correct?
yes, please book it for me
Great! We've confirmed your booking and have Confirmation # 2UDVXUUV for your records.
Anything else I can help you with?
no that's it, thanks!
Thanks for traveling with Google! Have a nice day.
Travel inspiration
The user says that they would like to take their family on a ski trip. The agent
suggests some ski destinations in the United States, and the user asks if the
agent has any recommendations out of the country. The agent presents a list of
destinations outside of the United States. Finally, the user asks the agent to
book a stay at one of the destinations and the agent presents a list of hotels
nearby.
User input
Agent response
I'd like to take my family on a ski trip, any suggestions?
I love skiing! Here's a few popular ski destinations in the United States: - Arapahoe Basin - Aspen Highlands - Beaver Creek - Breckenridge - Sun Peaks Resort
I was thinking somewhere outside of the states, do you have anything in mind?
Of course! Here are some popular ski destinations outside of the United States: - St. Moritz - Niseko United - Hakuba Valley - Nozawa Onsen - Whistler Blackcomb - Big White Ski Resort - Sun Peaks Resort
great, thanks! can you book me a stay at Whistler Blackcomb?
Here are some hotels in Whistler Blackcomb. Which one would you like to book?: - Blackcomb Lodge - Blackcomb Springs Suites - True Ski-in, Ski-out Resort - Pinnacle Hotel Whistler - Fairmont Chรขteau Whistler
Configure the provided
tools with your external
services, see Tool setup.
Tool setup
This agent includes tools that are
used to integrate with external services. You can use the prebuilt tool installer
to deploy sample code and data for your prebuilt agent.
To deploy and configure sample code and data for the Travel
prebuilt agent, expand for instructions.
Grant the Compute Engine service account
(your-project-number-developer.gserviceaccount.com)
the Cloud Datastore User role,
so the newly deployed Cloud Run functions can access
Firestore.
Places search
The places_search tool is used to get information about points of interest,
including points of interest near a location.
Hotel search
The hotel_search tool is used to get information about hotels, including
hotels near a location.
Hotel booking
The hotel_booking tool is used to create and get information about hotel
bookings.
Get user profile
The get_user_profile tool is used to retrieve user profiles that can be used
to customize recommendations for the user.
Complete
Your agent and its integrations should now be set up and ready to test.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis Travel prebuilt agent allows users to search for points of interest, get travel recommendations, and book hotels.\u003c/p\u003e\n"],["\u003cp\u003eThe agent uses a user's profile data to customize recommendations when available.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is currently in a Pre-GA stage, meaning it is available "as is" with potentially limited support.\u003c/p\u003e\n"],["\u003cp\u003eSetting up the agent involves importing it, and then using a prebuilt tool installer to deploy sample code and data to integrate with external services.\u003c/p\u003e\n"],["\u003cp\u003eThe agent has multiple tools, such as \u003ccode\u003eplaces_search\u003c/code\u003e, \u003ccode\u003ehotel_search\u003c/code\u003e, \u003ccode\u003ehotel_booking\u003c/code\u003e, and \u003ccode\u003eget_user_profile\u003c/code\u003e to search POIs, hotels, book stays, and get user profile information for recommendations.\u003c/p\u003e\n"]]],[],null,["# Travel prebuilt agent\n\nThe Travel\n[playbook-based prebuilt agent](/dialogflow/cx/docs/concept/playbook/prebuilt)\nallows users to search for points of interest (POI), get travel recommendations, and\nbook hotels. The agent uses user profile data to customize recommendations for\nthe user, if provided.\n\nSample dialogs\n--------------\n\nThe following sample dialogs demonstrate common scenarios handled by this\nprebuilt agent.\n\n### POI search and hotel booking\n\nThe user asks about restaurants in Washington DC. The agent recommends a few\npoints of interest, and the user asks to book a hotel. The agent collects\nrequired information, including the hotel, check-in date, check-out date, number\nof travelers, and number of rooms. The user confirms the information and the\nagent books the stay, providing the user with a confirmation number.\n\n### Travel inspiration\n\nThe user says that they would like to take their family on a ski trip. The agent\nsuggests some ski destinations in the United States, and the user asks if the\nagent has any recommendations out of the country. The agent presents a list of\ndestinations outside of the United States. Finally, the user asks the agent to\nbook a stay at one of the destinations and the agent presents a list of hotels\nnearby.\n\nBasic setup\n-----------\n\nTo set up this prebuilt agent:\n\n1. [Import the prebuilt agent](/dialogflow/cx/docs/concept/playbook/prebuilt#import).\n2. Configure the provided [tools](/dialogflow/cx/docs/concept/playbook/tool) with your external services, see [Tool setup](#tool-setup).\n\nTool setup\n----------\n\nThis agent includes [tools](/dialogflow/cx/docs/concept/playbook/tool) that are\nused to integrate with external services. You can use the prebuilt tool installer\nto deploy sample code and data for your prebuilt agent. \n\n#### To deploy and configure sample code and data for the Travel\nprebuilt agent, expand for instructions.\n\n1. Download the [prebuilt tool installer](https://storage.googleapis.com/gassets-api-ai/prebuilt_agents/generative-prebuilt-agents/installer.zip) to a local directory.\n2. Navigate to the local directory where you downloaded **installer.zip**.\n3. Unzip **installer.zip** and open the `installer` folder.\n4. Review README.md for a detailed overview of the installer and its requirements.\n5. Run `pip install -r requirements.txt` to install requirements.\n6. Run `gcloud auth application-default login` to authenticate using [gcloud auth](https://cloud.google.com/sdk/gcloud/reference/auth).\n7. Run the installer using `python installer.py --project-id=`\u003cvar translate=\"no\"\u003eYOUR_GCP_PROJECT_ID\u003c/var\u003e` --prebuilt-id=travel`\n8. After deploying all required services, configure each tool in the prebuilt agent with the provided URL(s) logged by the installer:\n\n ### AI Applications console\n\n 1. If you have not yet imported the prebuilt agent, [import the agent into your project](/dialogflow/cx/docs/concept/playbook/prebuilt#import).\n 2. Go to the **AI Applications console** .\n\n\n [AI Applications console](https://console.cloud.google.com/gen-app-builder//start)\n 3. Select your project from the console drop-down.\n 4. Select your app.\n 5. Click on the icon for **Tools**.\n 6. For each tool in the agent, edit the schema to replace the URL in the `servers:` field with the endpoint logged by the installer.\n 7. Click **Save**.\n\n ### Dialogflow CX\n\n 1. If you have not yet imported the prebuilt agent, [import the agent into your project](/dialogflow/cx/docs/concept/playbook/prebuilt#import).\n 2. Open the [Dialogflow CX console](https://dialogflow.cloud.google.com/cx/projects).\n 3. Choose your Google Cloud project.\n 4. Select your agent.\n 5. Click on the icon for **Generative resources**.\n 6. Click **Tools**.\n 7. For each tool in the agent, edit the schema to replace the URL in the `servers` field with the endpoint logged by the installer.\n 8. Click **Save**.\n9. Grant the Compute Engine service account (`your-project-number-developer.gserviceaccount.com`) the **Cloud Datastore User** role, so the newly deployed Cloud Run functions can access Firestore.\n\n### Places search\n\nThe `places_search` tool is used to get information about points of interest,\nincluding points of interest near a location.\n\n### Hotel search\n\nThe `hotel_search` tool is used to get information about hotels, including\nhotels near a location.\n\n### Hotel booking\n\nThe `hotel_booking` tool is used to create and get information about hotel\nbookings.\n\n### Get user profile\n\nThe `get_user_profile` tool is used to retrieve user profiles that can be used\nto customize recommendations for the user.\n\n### Complete\n\nYour agent and its integrations should now be set up and ready to test."]]