Skip to content

Latest commit

 

History

History
executable file
·
41 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

executable file
·
41 lines (32 loc) · 1.7 KB

WxT-QA-BOT

This Webex Teams bot is being developed to help Cisco and IBM volunteers that will be supporting teachers and charities, across the UK, to access free video conferencing through the use of Cisco Webex Meetings

Starting the service

To start the API service, use the script start_flask.sh.

Front-end Information

Back-end Information

  • Flask
  • Two functions currently implemented:
    • getAnswer() (/getAnswer or /getAnswer/<question>) returns the answer given a question, as well as the location of an associated resource
    • addEntry() (/addEntry) inserts a new row into qanda given a tag, question, answer, and (optionally) a location
  • Default limit is 100 requests per day, 10 requests per hour (per IP address)
  • getAnswer() is additionally limited to 1 request per minute
  • addEntry() is exempt from limits

GCP SQL Info

  • Database Name : qanda | Database Table : qanda

Database

If the API throws an error, check that the MySQL service is running. You can restart the service with the following command:

sudo /etc/init.d/mysql start

The table structure is as follows:

id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
tag VARCHAR(50) NOT NULL,
question VARCHAR(2000) NOT NULL,
answer VARCHAR(2000) NOT NULL,
location VARCHAR(255)