MyTrain Chatbot simplifies accessing Indian train schedules via text/voice input with multi-language support. It retrieves train options, offers seat preferences, rectifies errors, and recommends alternatives, enhancing travel planning and user experience.
MyTrain Chatbot is an AI-powered chatbot designed to facilitate users in accessing Indian train time table information conveniently. This project aims to provide a user-friendly interface for retrieving accurate and relevant train schedule details through text or voice inputs.
The objective of the MyTrain Chatbot project is to develop an AI-powered chatbot that prompts users for input regarding the "from" and "to" locations in multiple regional languages, as well as their seat/coach preferences (Optional), through text or audio inputs. Based on this input, the chatbot retrieves and displays all available trains on that route.
- Text and Voice Input: Users can interact with the chatbot through text messages or voice commands in multiple languages.
- Location Selection: Users specify their origin and destination stations.
- Train Information Retrieval: The chatbot retrieves information on available trains between the specified locations, including train name and number, departure and arrival times, travel duration, and seat availability (if possible).
- Seat/Coach Preference (Optional): Users can provide their preferred seat/coach type.
- Rectification and Recommendations: Identify bugs in Disha 2.0 and rectify those in the Rail Chatbot. Additionally, recommend alternative nearby stations if direct trains are unavailable.
- User-Friendly Interface: Interacts with users in a natural and engaging manner, providing clear instructions and informative responses.
- Error Handling: Handles erroneous inputs gracefully, guiding users to correct their input or provide clarifications as needed.
- User Interaction: Users interact with the Rail Chatbot by entering text-based queries or speaking voice commands for train time table information.
- Input Processing: The chatbot processes user inputs using NLP techniques to understand the user's intent and extract relevant information.
- Data Retrieval: Retrieves the train time table data based on the user's input parameters.
- Response Generation: Generates a response containing the available trains, their schedules, seat availability (optional), Nearby stations, and coach types (optional) matching the user's criteria.
- User Feedback: Users can provide feedback on the provided information, enabling continuous improvement of the chatbot's accuracy and performance.
To get started with MyTrain Chatbot, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/mytrain-chatbot.git
- Install dependencies:
pip install -r requirements.txt
- Run the chatbot:
python chatbot.py
We welcome contributions from the community! To contribute to MyTrain Chatbot, please follow these guidelines:
- Fork the repository and create your branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m 'Add new feature'
- Push to your branch:
git push origin feature/new-feature
- Submit a pull request
This project is licensed under the MIT License.
- Thanks to Disha 2.0 for inspiring this project.
- Special thanks to the Indian Railways for providing the train schedule data.
.