Skip to content

sgpy/questalliance

Repository files navigation

QuestAlliance - Chatbot

Repo for Quest Alliance chatbot

Prerequisite


  1. Install Python as per your OS

  2. Install pip (If applicable)

  3. Upgrade pip (If applicable)

  4. Download ngrok as per your OS & unzip

Verification


  1. python3 --version or python --version

    must be Python 3.7.x

    Otherwise install/upgrade python3

  2. pip --version

    must be pip 19.1.x

    Otherwise install/upgrade pip

Deploying


Building the chatbot

  1. pip install tox

    "sudo" may be required to install tox based on the OS release

  2. git clone https://github.com/sgpy/questalliance.git

  3. cd questalliance

  4. tox

    This will install all required dependencies

  5. source .tox/py3/bin/activate

    Activate the virtual environment

Running backend server (Optional)

  • generate_db;deploy_backend_server --port 5001

    Runs the mock backend server

  • deploy_backend_server --help

    Will provide help

Running relay server

  • deploy_relay_server --port 5000 --backend_host_name localhost --backend_host_port 5001

    Connects to dialogflow server

  • deploy_relay_server --help

Running ngrok

  • ngrok http 5000

    Copy the https://<sha>.ngrok.io/api/endpoint to the Fulfillment > Webhook > URL

Sandboxing

(Optional: For security sensitive developers)


Prerequisite

  1. Install Vagrant
  2. Install Virtualbox
  3. mkdir <path_to_some_dir>
  4. cd <path_to_some_dir>
  5. git clone https://github.com/sgpy/questalliance.git
  6. cd questalliance
  7. Download ngrok for linux into your <path_to_some_dir>/assets folders

Build

  1. cd <path_to_some_dir>
  2. vagrant up

Execution

  1. vagrant ssh

About

Repo for Quest Alliance chatbot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •