- Google ADK (Agent Development Kit): A flexible framework by Google to build intelligent, multi-step agents capable of reasoning, decision-making, and orchestration using Gemini models.
- Dappier: A real-time data platform that connects LLMs to live, rights-cleared information across domains like local attractions, dining, events, and web search. It enriches agent workflows with structured, prompt-ready data.
- Gemini-Powered Agents: Modular LLM agents designed to generate multi-day travel plans based on user preferences, travel dates, and real-time search.
- Replit Deployment: Run the complete multi-agent itinerary generation pipeline in the browser using Replit, with secure environment variable support and real-time agent execution.
π¦ Installation
This app is built using Replit, so you donβt need to set up any local environment. Just fork or run the app directly in your browser. However, if youβre setting this up manually or adapting it outside Replit, install the required packages usingpip:
β Note: Replit automatically installs the packages listed inreplit.nixorpyproject.toml(if used). You can also manually add packages from the Packages tab in the left sidebar.
π Setting Up API Keys
To run the dynamic travel planner agent, youβll need the following API keys:GOOGLE_API_KEYβ For accessing Gemini models via Google ADK.GOOGLE_GENAI_USE_VERTEXAIβ Set this to"false"to use Gemini on public API instead of Vertex AI.DAPPIER_API_KEYβ To access real-time travel and web data from Dappier.
π In Replit
- Click the π Secrets tab (lock icon) in the left sidebar.
- Add the following environment variables:
| Key | Value |
|---|---|
GOOGLE_API_KEY | (Your Google API Key) |
GOOGLE_GENAI_USE_VERTEXAI | false |
DAPPIER_API_KEY | (Your Dappier API Key) |
- Google API Key: https://makersuite.google.com/app/apikey
- Dappier API Key: https://platform.dappier.com/profile/api-keys
β οΈ Important: Do not print your API keys or commit them to public repositories. Use environment variables or secret managers to handle credentials securely.
π Real-Time Tools Powered by Dappier
Dappier provides real-time, rights-cleared data that powers different stages of the itinerary generation workflow. In this app, we use a single tool function:- Real-Time Travel Planner Tool β For generating structured itineraries based on location, date, number of days, and user interests.
tools.py file and initialized using the Dappier Python SDK.
π§ This tool powers the core agent that dynamically generates the travel itinerary using structured, real-time data from Dappierβs travel content sources. All data is fresh, localized, and sourced from rights-cleared platforms to ensure safety and compliance.
π§Ύ Input Resolution Agent
Extracts destination, start date, and number of travel days from user input. If any field is missing, it prompts the user to provide the missing information.βοΈ Weather Insights Agent
Fetches upcoming weather forecast for the destination using real-time data.π½οΈ Restaurant Discovery Agent
Finds top local restaurants for the destination city using real-time data.π¨ Budget Hotel Finder Agent
Finds affordable and well-rated hotels near the destination using real-time data.π Itinerary Generator Agent
Synthesizes the final multi-day itinerary using real-time insights from weather, restaurants, and hotels.π Sequential Agent Pipeline
Defines the full multi-agent flow: collects inputs β fetches insights β generates itinerary.π» Running the Agent
This app is fully interactive β you donβt need to write any code to run it. Just open the Replit app and use the built-in chat interface to enter a travel request (e.g.,"Plan a 3-day trip to Tokyo starting June 10"). The agent pipeline will:
- Extract city, start date, and duration.
- Fetch real-time weather forecast, restaurants, and hotels.
- Generate a day-wise travel itinerary in markdown format.
π¬ The chat interface will display the itinerary directly in the console or browser output pane.
π Highlights
This app has guided you through building and running a dynamic travel planner using Google ADK and Dappier. By combining real-time local data, multi-agent workflows, and markdown generation, youβve created a complete pipeline that turns natural language travel requests into structured itineraries. Key tools utilized in this app include:- Google ADK: A flexible framework that enables sequential agent orchestration, built around modular LLM-based agents for intelligent task automation.
- Dappier: A platform connecting LLMs to real-time, rights-cleared data across domains like travel, hospitality, weather, and web search. It delivers prompt-ready insights that power practical agent workflows.
- Gemini Models: LLMs used to reason over user input and real-time data to generate complete, usable travel plans.
- Replit: An interactive development and execution environment that makes it easy to deploy, test, and interact with the pipeline via a chat interface.
- Weekend getaway planners
- Family or solo travel guides
- Local event finders
- AI-powered travel chatbots

