Skip to content

Update file flightChatbot.py

Pradyumna Acharya Marimganti requested to merge pradyumna into main

A simple interactive chatbot built with Python that helps users check flight availability and book flights to popular destinations.

Features 1)Check Flight Availability: View available flights to destinations like New York, London, and Tokyo. 2)Book Flights: Book a flight by providing destination, flight number, date, and name. 3)User-Friendly CLI: Interactive command-line interface with error handling. 4)Booking Reference: Generates a unique booking reference for each reservation.

How It Works The chatbot uses a predefined list of flights for major cities. Users can check available flights or make a booking by following prompts. Bookings are stored in-memory with a unique reference code.

Technologies Used Python (random, sys modules) Simple CLI interaction with input/output handling

Usage Run the script: python flight_booking_chatbot.py

Follow the prompts:

  1. Type flights to check available flights.
  2. Type book to make a reservation.
  3. Type quit or exit to end the session.

Future Improvements

  • Add persistent storage (database/file) for bookings.
  • Expand flight options with real-time API integration.
  • Improve natural language processing for better user interaction.

Merge request reports

Loading