Skip to content

z3roai/ai-llm-travel-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Travel Agent

A production-ready AI travel assistant built with LangGraph that helps users find flights, book hotels, and manage travel plans through intelligent multi-agent interactions.

Features

  • Multi-Agent Architecture: Leverages different LLMs for specialized tasks
  • Stateful Conversations: Maintains context across interactions
  • Human-in-the-Loop: User approval for critical actions
  • Email Integration: Automated travel plan delivery
  • Real-time Data: Live flight and hotel information

Quick Start

Prerequisites

  • Python 3.11+
  • Poetry

Installation

  1. Clone the repository:
git clone [email protected]:zeroai/ai-travel-agent.git
cd ai-travel-agent
  1. Set Python version (if using pyenv):
pyenv local 3.11.9
  1. Install dependencies:
poetry install --sync
poetry shell

Configuration

Create a .env file in the root directory:

OPENAI_API_KEY=your_openai_api_key
SERPAPI_API_KEY=your_serpapi_api_key
SENDGRID_API_KEY=your_sendgrid_api_key
LANGCHAIN_API_KEY=your_langchain_api_key
LANGCHAIN_TRACING_V2=true
LANGCHAIN_PROJECT=ai_travel_agent

Usage

Start the application:

streamlit run app.py

Example request:

"I want to travel to Amsterdam from Madrid from October 1st to 7th. Find me flights and 4-star hotels."

Architecture

The system uses LangGraph to orchestrate multiple AI agents:

  • Flight Finder: Searches and compares flight options
  • Hotel Finder: Locates accommodation based on preferences
  • Email Generator: Creates personalized travel summaries
  • Coordinator: Manages workflow and user interactions

License

MIT License - see LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages