Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Starter Agents ·Easy

AI Travel Agent

About this app

This Streamlit app is an AI-powered travel Agent that generates personalized travel itineraries using OpenAI GPT-4o. It automates the process of researching, planning, and organizing your dream vacation, allowing you to explore exciting destinations with ease.

  • Complete open-source code
  • Step-by-step tutorial
  • Runs on your computer

Technical sheet

Category
Starter Agents
Difficulty
Easy
Models
OpenAI, Llama
Frameworks
Agno, Ollama (local)
Runs locally?
Yes (Ollama)
Required keys
None

License Apache-2.0 · content curated and maintained by Doutor AI.

Full tutorial

🛫 AI Travel Agent

This Streamlit app is an AI-powered travel Agent that generates personalized travel itineraries using OpenAI GPT-4o. It automates the process of researching, planning, and organizing your dream vacation, allowing you to explore exciting destinations with ease.

Features

  • Research and discover exciting travel destinations, activities, and accommodations
  • Customize your itinerary based on the number of days you want to travel
  • Utilize the power of GPT-4o to generate intelligent and personalized travel plans
  • Download your itinerary as a calendar (.ics) file to import into Google Calendar, Apple Calendar, or other calendar apps

How to get Started?

  1. Clone the GitHub repository
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd awesome-llm-apps/starter_ai_agents/ai_travel_agent
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Get your OpenAI API Key
  • Sign up for an OpenAI account (or the LLM provider of your choice) and obtain your API key.
  1. Get your SerpAPI Key
  1. Run the Streamlit App
streamlit run travel_agent.py

For local LLM usage (with Ollama):

streamlit run local_travel_agent.py

How it Works?

The AI Travel Agent has two main components:

  • Researcher: Responsible for generating search terms based on the user's destination and travel duration, and searching the web for relevant activities and accommodations using SerpAPI.
  • Planner: Takes the research results and user preferences to generate a personalized draft itinerary that includes suggested activities, dining options, and accommodations.

Using the Calendar Download Feature

After generating your travel itinerary:

  1. Click the "Download Itinerary as Calendar (.ics)" button that appears next to the "Generate Itinerary" button
  2. Save the .ics file to your computer
  3. Import the file into your preferred calendar application (Google Calendar, Apple Calendar, Outlook, etc.)
  4. Each day of your itinerary will appear as an all-day event in your calendar
  5. The complete details for each day's activities are included in the event description

This feature makes it easy to keep track of your travel plans and have your itinerary available on all your devices, even offline.

Local vs Cloud Version

  • travel_agent.py: Uses OpenAI's GPT-4o for high-quality itineraries (requires OpenAI API key)
  • local_travel_agent.py: Uses Ollama for local LLM inference without sending data to external APIs (requires Ollama to be installed and running)

From the same category

Starter AgentsEasy

AI Blog To Podcast Agent

This is a Streamlit-based application that allows users to convert any blog post into a podcast. The app uses OpenAI's GPT-4 model for summarization, …

  • OpenAI
Starter AgentsEasy

Breakup Recovery Agent Team

This is an AI-powered application designed to help users emotionally recover from breakups by providing support, guidance, and emotional outlet messag…

  • Gemini
Starter AgentsEasy

AI Data Analysis Agent

An AI data analysis Agent built using the Agno Agent framework and Openai's gpt-4o model. This agent helps users analyze their data - csv, excel files…

  • OpenAI

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans