AI Travel Assistant avatar
AI Travel Assistant
Deprecated

Pricing

Pay per usage

Go to Apify Store
AI Travel Assistant

AI Travel Assistant

Deprecated

AI Travel Assistant is a powerful AI-powered tool that helps users plan their trips effortlessly. It integrates flight search, hotel booking, and sightseeing recommendations to generate a structured travel itinerary using LangChain, Apify, and OpenAI

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Balaji Seetharaman

Balaji Seetharaman

Maintained by Community

Actor stats

0

Bookmarked

19

Total users

1

Monthly active users

8 months ago

Last modified

Categories

Share

๐ŸŒ AI Travel Assistant

AI Travel Assistant is a powerful AI-powered tool that helps users plan their trips effortlessly. It integrates flight search, hotel booking, and sightseeing recommendations to generate a structured travel itinerary using LangChain, Apify, and OpenAI.


โœˆ๏ธ Features

  • ๐Ÿ›ซ Flight Search: Finds the best flight options based on departure and arrival cities.
  • ๐Ÿจ Hotel Search: Suggests accommodations with pricing, ratings, and amenities.
  • ๐Ÿ“ Sightseeing Recommendations: Lists must-visit places at the destination.
  • ๐Ÿ“… AI-Generated Itinerary: Creates a day-wise structured travel plan.
  • ๐Ÿ“œ Markdown Report Generation: Saves itinerary in a readable markdown format.
  • โšก Apify Actor Integration: Uses Apify actors for web scraping travel data.
  • ๐Ÿ”— LangChain & OpenAI: Ensures intelligent, natural language processing.

๐Ÿš€ Installation

1๏ธโƒฃ Clone the repository

git clone https://github.com/yourusername/ai-travelassistant.git
cd ai-travelassistant

2๏ธโƒฃ Create a Virtual Environment (Optional)

python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate

3๏ธโƒฃ Install Dependencies

$pip install -r requirements.txt

4๏ธโƒฃ Set API Keys

Create a .env file and add your API keys:

OPENAI_API_KEY=your-openai-key
SERPAPI_KEY=your-serpapi-key

๐ŸŽฏ How to Run Locally

$apify run --input-file=input.json

๐Ÿ“œ Example input.json

{
"ticker": "Plan a 7-day trip to Bali from New York, staying in a beachfront hotel."
}

ai-travelassistant/
โ”‚โ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ main.py # Apify Actor entry point
โ”‚ โ”œโ”€โ”€ tools.py # Flight, hotel, sightseeing scraping tools
โ”‚ โ”œโ”€โ”€ models.py # Pydantic data models
โ”‚ โ”œโ”€โ”€ prompts.py # AI prompt templates
โ”‚ โ”œโ”€โ”€ report.md # Generated travel itinerary report
โ”‚โ”€โ”€ .venv/ # Virtual environment (optional)
โ”‚โ”€โ”€ requirements.txt # Python dependencies
โ”‚โ”€โ”€ README.md # Project documentation
โ”‚โ”€โ”€ input.json # Example input format
โ”‚โ”€โ”€ .env # API keys (gitignore this file)

๐Ÿ“Š Example Report Output

โœˆ๏ธ AI Travel Assistant Report

๐ŸŒ Travel Itinerary Summary

  • Destination: Bali
  • Departure Date: 2025-03-17
  • Return Date: 2025-03-24

๐Ÿ“ AI-Generated Itinerary

Day 1:

  • ๐ŸŒ… Morning Activities:

    • Arrival in Bali
    • Check-in at Villa Karma Loka
  • ๐Ÿฝ Lunch:

    • Enjoy a traditional Balinese meal at a local warung
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Visit Sacred Monkey Forest Sanctuary
    • Explore Ubud Market
    • Dinner at a local restaurant
  • ๐Ÿš– Transport:

    • Private car or taxi to attractions
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $1001
    • Hotel: $60
    • Attractions: $10
    • Food: $20
    • Total: $1091

Day 2:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at Villa Karma Loka
    • Visit Uluwatu Temple
  • ๐Ÿฝ Lunch:

    • Enjoy seafood by the beach at Jimbaran Bay
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Explore Ceking Rice Terrace
    • Relax at the beach
    • Dinner at a beachfront restaurant
  • ๐Ÿš– Transport:

    • Rent a scooter for the day
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $60
    • Attractions: $15
    • Food: $30
    • Total: $105

Day 3:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at The Kirana Ungasan
    • Visit Campuhan Ridge Walk
  • ๐Ÿฝ Lunch:

    • Try local Balinese cuisine at a village restaurant
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Visit Ulun Danu Beratan Temple
    • Explore Bedugul Botanical Gardens
    • Dinner at a lakeside restaurant
  • ๐Ÿš– Transport:

    • Hire a private driver for the day
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $30
    • Attractions: $20
    • Food: $25
    • Total: $75

Day 4:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at Prasi Sunset Bungalows
    • Visit Waterbom Bali
  • ๐Ÿฝ Lunch:

    • Have a poolside lunch at a resort
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Relax at the beach
    • Sunset dinner cruise
  • ๐Ÿš– Transport:

    • Shuttle or taxi to attractions
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $19
    • Attractions: $50
    • Food: $50
    • Total: $119

Day 5:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at Masna House
    • Visit Pura Tirta Empul
  • ๐Ÿฝ Lunch:

    • Try Indonesian cuisine at a local restaurant
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Visit Tegenungan Waterfall
    • Explore Ubud Palace
    • Dinner at a rooftop restaurant
  • ๐Ÿš– Transport:

    • Rent a car for the day
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $18
    • Attractions: $15
    • Food: $35
    • Total: $68

Day 6:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at The Laguna, a Luxury Collection Resort & Spa, Nusa Dua, Bali
    • Visit Bali Safari and Marine Park
  • ๐Ÿฝ Lunch:

    • Enjoy a buffet lunch at the park
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Relax at the resort
    • Dinner at a fine dining restaurant
  • ๐Ÿš– Transport:

    • Shuttle to the park
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $128
    • Attractions: $50
    • Food: $40
    • Total: $218

Day 7:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at Sumberkima Hill Retreat
    • Visit Besakih Great Temple
  • ๐Ÿฝ Lunch:

    • Try traditional Balinese cuisine at a local restaurant
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Visit Bali Zoo
    • Sunset dinner at a beach club
  • ๐Ÿš– Transport:

    • Private car hire for the day
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $33
    • Attractions: $30
    • Food: $45
    • Total: $108

Day 8:

  • ๐ŸŒ… Morning Activities:

    • Breakfast at The Anvaya Beach Resort Bali
    • Visit Penataran Agung Lempuyang Temple
  • ๐Ÿฝ Lunch:

    • Enjoy a seafood lunch by the bay
  • ๐ŸŽญ Afternoon & Evening Plans:

    • Visit Tirta Gangga
    • Relax at a natural hot spring
    • Farewell dinner at a beachfront restaurant
  • ๐Ÿš– Transport:

    • Private transfer to sights
  • ๐Ÿ’ฐ Approximate Daily Costs:

    • Flight: $0 (no flight on this day)
    • Hotel: $112
    • Attractions: $20
    • Food: $40
    • Total: $172

Overall Trip Cost:

  • Total Flight Cost: $1001
  • Total Hotel Cost: $460
  • Total Attractions Cost: $220
  • Total Food Cost: $265
  • Grand Total: $1946 USD

This itinerary provides a comprehensive plan for your trip to Bali, covering flights, hotels, attractions, and daily activities. Enjoy your vacation in Bali! ๐ŸŒด๐ŸŒž๐Ÿน


๐Ÿ“Œ This report was generated automatically by AI Travel Assistant. Please verify details before booking.

๐Ÿš€ Contributing

We welcome contributions! Feel free to:

  • Open Issues for bug reports or feature requests.
  • Submit Pull Requests to improve the code.

๐Ÿ“œ License

This project is licensed under the MIT License.