Back to projects

Intelligent Railway Chatbot

Built a conversational railway assistant that can search for ticket options, support delay prediction, and retrieve expert disruption guidance for railway scenarios.

A railway chatbot with search, prediction, and expert guidance.

The system was designed as a practical railway assistant. It collects missing details through conversation, searches for ticket information, predicts delayed arrivals, and returns focused disruption advice from stored operational knowledge.

Three connected AI features inside one chatbot.

Each part of the project solves a different railway assistance problem, from passenger ticket search to staff-focused disruption guidance.

CapabilityWhat It DoesTechnical Approach
Cheapest ticket searchGuides users through a ticket-search conversation and returns a ticket option with a booking link.Slot filling, station validation, National Rail API data, railcard discounts, return-ticket handling, and fallback fare logic.
Delay predictionEstimates arrival time for delayed trains on the South Western Railway route.Historical train performance data, preprocessing, model comparison, and tuned regression models.
Disruption expert systemExpert systemReturns focused operational advice for line blockages and station disruption scenarios.Guided incident collection, structured contingency records in SQLite, and semantic retrieval support with ChromaDB.

Ticket search and expert-system guidance in action.

These outputs show the chatbot returning a cheapest return ticket result and retrieving focused disruption guidance for railway staff.

Railway chatbot showing the cheapest return ticket result with railcard support
Cheapest ticket search with railcard and return journey support.
Railway chatbot showing signaller guidance for a line blockage between Woking and Guildford
Expert-system guidance for a railway disruption scenario.

The chatbot combines API search, ML prediction, and expert retrieval.