https://github.com/dankolesnikov/vta-schedule
Chat Bot for public transit in San Jose / Mtn View
https://github.com/dankolesnikov/vta-schedule
chatbot google-actions google-assistant natural-language-processing nlp nltk
Last synced: 11 months ago
JSON representation
Chat Bot for public transit in San Jose / Mtn View
- Host: GitHub
- URL: https://github.com/dankolesnikov/vta-schedule
- Owner: dankolesnikov
- Created: 2017-12-18T15:48:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T17:17:40.000Z (over 8 years ago)
- Last Synced: 2025-03-26T09:16:29.543Z (over 1 year ago)
- Topics: chatbot, google-actions, google-assistant, natural-language-processing, nlp, nltk
- Language: Python
- Homepage:
- Size: 3.43 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VTA ChatBot
> Chat bot to assist VTA commuters

## Conversational UI
Conversation I (bus schedule):
* User: Hello!
* Bot: What bus or light rail schedule you'd like to know about?
* User: Dash bus from Diridon station
* Bot: Departures at 2:25 PM and 2:50 PM. Anything else I can help?
Conversation II (light rail schedule):
* User: Hello!
* Bot: What bus or light rail schedule you'd like to know about?
* User: Light rail from Fruitdale station
* Bot: What direction are you going?
* User: Winchester
* Bot: Departures at 2:40 PM and 2:50 PM. Anything else I can help?
Conversation III (hourly schedule)
Bus:
* User: Hello!
* Bot: What bus or light rail schedule you'd like to know about?
* User: Get schedule for Dash bus from Diridon station
* Bot: Departures for this hour are: 6:06 PM 6:22 PM 6:48 PM 6:22 PM 6:48 PM Anything else I can help?
Light rail:
* User: Hello!
* Bot: What bus or light rail schedule you'd like to know about?
* User: Get schedule for light rail from Diridon station towards winchester
* Bot: Departures for this hour are: 6:06 PM 6:22 PM 6:48 PM 6:22 PM 6:48 PM Anything else I can help?
## G Assistant Intents
Things you can ask in Google Assistant:
* Talk to VTA Schedule to get schedule for Dash bus from Diridon station
* Talk to VTA Schedule to get schedule for light rail from Diridon station towards winchester
* Talk to VTA Schedule to get next departures on light rail from Diridon station
* Talk to VTA Schedule to get next departures on Dash bus from Diridon station
## Supported VTA Routes
* Dash 201
* Light Rail 902 Mtn View <-> Winchester
To be added soon:
* Santa Teresa light rail
* Bus 181
### Directory
.
├── app.py # Contains logic, rules and CL UI
├── assistant.py # Flask server for Google Assistant
├── data.py # Contains data for NLP
├── schedule.py # Contains schedule for buses and light rail
├── state.py # Helper class to maintain the state of the conversation
├── requirements.txt # List of modules for Google App Engine
├── actions.json # Google Actions file
└── pics # Pictures
## Usage
Google Assistant:
Search G Assistant's app for 'VTA Schedule'
To run chat bot with Command Line UI:
```sh
python app.py
```
To run assistant locally on 8080 port:
```sh
python assistant.py
```
## Meta
Please feel free to reach out:)
Danil Kolesnikov – danil.kolesnikov@sjsu.edu
Distributed under the MIT license.