Skip to content

About

TravAgent is a smart travel management platform built with React, Flask, Python, and Supabase. It helps users explore places, find hotels, access transport information, and manage travel plans through a secure, user-friendly, and automation-powered system. It demonstrates full-stack development, API integration, and modular architecture.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸšŒ TravAgent - AI-Powered Conversational Travel & Bus Booking System

Not a form to fill โ€” but an intelligent conversation to have.

๐Ÿ“– Overview

TravAgent is an AI-powered conversational travel platform that transforms traditional bus booking and travel planning into a natural language experience. Instead of filling multiple forms, comparing routes manually, and repeatedly entering preferences, users simply converse with an AI assistant that understands travel requirements, recommends the best options, optimizes seat selection, and completes bookings.

The project demonstrates the integration of Large Language Models (LLMs), conversational workflow orchestration, recommendation systems, memory-aware personalization, and modern full-stack development into a unified travel intelligence platform.


๐ŸŽฏ Problem Statement

Traditional travel booking systems require users to:

  • Manually search routes and schedules
  • Compare buses individually
  • Re-enter preferences every booking
  • Navigate complex booking forms
  • Restart bookings after interruptions

Most existing platforms lack:

  • Conversational understanding
  • Personalized recommendations
  • User preference memory
  • Session restoration
  • AI-assisted decision making

TravAgent addresses these limitations through an AI-first conversational booking experience.


โœจ Features

๐Ÿ—ฃ๏ธ Conversational Bus Booking

Book buses through natural language conversations.

Example:

"Book me a bus from Pune to Mumbai tomorrow morning."

The AI extracts:

  • Source
  • Destination
  • Travel Date
  • Preferences

and handles the complete workflow automatically.


๐Ÿค– AI-Powered Recommendation Engine

TravAgent intelligently ranks buses into three categories:

โญ Best Overall

Optimal balance of:

  • Price
  • Ratings
  • Journey Duration

๐Ÿ’ฐ Budget Friendly

Lowest practical fare with acceptable ratings.

๐Ÿ‘‘ Premium Comfort

Highest-rated luxury travel option.

Each recommendation includes AI-generated reasoning to help users make informed decisions.


๐Ÿ’บ Memory-Aware Seat Optimization

The system remembers:

  • Window seat preference
  • Preferred travel timings
  • Favorite bus operators

Future bookings automatically leverage these preferences to personalize recommendations and seat selection.


๐Ÿ”„ Persistent Session Restoration

Booking progress is never lost.

TravAgent restores:

  • Chat history
  • Booking workflow state
  • Selected bus
  • Seat selection
  • Generated tickets

even after page refreshes or browser restarts.


๐ŸŽซ Smart Ticket Generation

Generate digital tickets containing:

  • Booking ID
  • Journey Details
  • Seat Number
  • Operator Information
  • QR Visualization

with a smooth animated ticket reveal experience.


๐Ÿ—บ๏ธ AI Trip Planner

Beyond bus booking, TravAgent includes a Trip Planner Agent capable of:

  • Destination exploration
  • Travel recommendations
  • Itinerary generation
  • Hotel suggestions

through conversational interactions.


๐Ÿ“Š Live Workflow Visualization

Users can view real-time booking progress through a workflow panel that displays:

  • Current stage
  • Completed steps
  • Next expected action

providing transparency and trust in AI-driven workflows.


๐Ÿ—๏ธ System Architecture

Frontend

  • React.js
  • Vite
  • Tailwind CSS
  • Zustand State Management

Backend

  • FastAPI
  • Python

Database

  • Supabase
  • PostgreSQL

AI Layer

  • Qwen Large Language Model

Development Services

  • Mock Bus API Server

๐Ÿ”„ Booking Workflow

User Request
      โ†“
Intent & Entity Extraction
      โ†“
Bus Search
      โ†“
AI Recommendation Ranking
      โ†“
Bus Selection
      โ†“
Preference Retrieval
      โ†“
Seat Optimization
      โ†“
Seat Confirmation
      โ†“
Ticket Booking
      โ†“
Ticket Generation
      โ†“
Memory Learning
      โ†“
Session Persistence
      โ†“
Session Restoration

๐Ÿง  Memory & Session Architecture

Conversational Memory

Stored User Preferences:

  • Seat Preference
  • Preferred Travel Time
  • Preferred Bus Operator

Session Restoration

Each booking stores:

  • Conversation Thread
  • Workflow State
  • Selected Bus
  • Selected Seat
  • Ticket Information

On reload:

Frontend
    โ†“
Load Session ID
    โ†“
GET Session API
    โ†“
Backend Restoration
    โ†“
State Rehydration
    โ†“
Complete UI Reconstruction

๐Ÿ› ๏ธ Technology Stack

Category Technology
Frontend React.js, Vite
Styling Tailwind CSS
State Management Zustand
Backend FastAPI
Database Supabase, PostgreSQL
AI Model Qwen LLM
APIs Mock Bus API
Language Python, JavaScript

๐Ÿ“‚ Project Structure

TravAgent/
โ”‚
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ store/
โ”‚   โ””โ”€โ”€ services/
โ”‚
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ agents/
โ”‚   โ”œโ”€โ”€ routers/
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ database/
โ”‚   โ””โ”€โ”€ api/
โ”‚
โ”œโ”€โ”€ screenshots/
โ”‚   โ”œโ”€โ”€ home.png
โ”‚   โ”œโ”€โ”€ chat.png
โ”‚   โ”œโ”€โ”€ recommendations.png
โ”‚   โ”œโ”€โ”€ workflow.png
โ”‚   โ””โ”€โ”€ ticket.png
โ”‚
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ TravAgent_Project_Report.pdf
โ”‚
โ””โ”€โ”€ README.md

๐Ÿš€ Advantages

  • AI-first booking experience
  • Personalized recommendations
  • Persistent conversational memory
  • Session recovery and restoration
  • Explainable AI decisions
  • Modular backend architecture
  • Scalable workflow design
  • Modern user interface

โš ๏ธ Current Limitations

  • Uses mock bus data
  • No real payment integration
  • Dependent on Qwen LLM availability
  • No live GPS tracking
  • English-only support
  • No real ticket validation system

๐Ÿ”ฎ Future Scope

  • Real Bus API Integration
  • Razorpay / Stripe Payments
  • Hotel Booking Integration
  • Flight Booking Module
  • Voice Assistant Support
  • Multi-Language Support
  • Real-Time Bus Tracking
  • Mobile Application
  • AI Travel Companion
  • Predictive Travel Recommendations
  • Smart Budget Planning
  • Dynamic QR Ticket Validation

๐Ÿ“ธ Screenshots

๐Ÿ‘จโ€๐Ÿ’ป Team

Name PRN
Samiksha Jadhav 12520100
Rutuja Ughade 12520108
Parth Vedante 1252080016
Prachi Ankush 1252080018

๐ŸŽ“ Academic Information

Project Title: TravAgent โ€“ AI-Powered Conversational Travel & Bus Booking System

Domain: Agentic Artificial Intelligence

Institution: Vishwakarma Institute of Technology (VIT), Pune

University: Savitribai Phule Pune University

Academic Year: 2025โ€“2026

Project Guide: Prof. Rahul Pawar


๐Ÿ“š References

  • Qwen Technical Report
  • FastAPI Documentation
  • Supabase Documentation
  • React Documentation
  • PostgreSQL Documentation
  • Tailwind CSS Documentation
  • Zustand Documentation

๐ŸŒŸ Vision

TravAgent reimagines travel booking as an intelligent conversation rather than a repetitive form-filling exercise. By combining conversational AI, personalization, recommendation systems, and persistent memory, the platform demonstrates the future of AI-driven travel experiences.

About

TravAgent is a smart travel management platform built with React, Flask, Python, and Supabase. It helps users explore places, find hotels, access transport information, and manage travel plans through a secure, user-friendly, and automation-powered system. It demonstrates full-stack development, API integration, and modular architecture.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors