Repo for Quest Alliance chatbot
-
Install Python as per your OS
-
Install pip (If applicable)
-
Upgrade pip (If applicable)
-
Download ngrok as per your OS & unzip
-
python3 --version
orpython --version
must be Python 3.7.x
Otherwise install/upgrade python3
-
pip --version
must be pip 19.1.x
Otherwise install/upgrade pip
Building the chatbot
-
pip install tox
"sudo" may be required to install tox based on the OS release
-
git clone https://github.com/sgpy/questalliance.git
-
cd questalliance
-
tox
This will install all required dependencies
-
source .tox/py3/bin/activate
Activate the virtual environment
-
generate_db;deploy_backend_server --port 5001
Runs the mock backend server
-
deploy_backend_server --help
Will provide help
-
deploy_relay_server --port 5000 --backend_host_name localhost --backend_host_port 5001
Connects to dialogflow server
-
deploy_relay_server --help
ngrok http 5000
Copy the https://<sha>.ngrok.io/api/endpoint to the Fulfillment > Webhook > URL
(Optional: For security sensitive developers)
- Install Vagrant
- Install Virtualbox
- mkdir <path_to_some_dir>
- cd <path_to_some_dir>
- git clone https://github.com/sgpy/questalliance.git
- cd questalliance
- Download ngrok for linux into your <path_to_some_dir>/assets folders
- cd <path_to_some_dir>
- vagrant up
- vagrant ssh