Coder Social home page Coder Social logo

vta-schedule's Introduction

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:

python app.py

To run assistant locally on 8080 port:

python assistant.py

Meta

Please feel free to reach out:)

Danil Kolesnikov – [email protected]

Distributed under the MIT license.

vta-schedule's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.