Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 1.65 KB

README.md

File metadata and controls

42 lines (37 loc) · 1.65 KB

LEO BOT: the AI for Chatbot, Marketing Automation and Personalization Engine

In Ubuntu server, follow this checklist to run LEO BOT

  1. Need Python 3.10, run following commands
sudo apt install python-is-python3
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.10
sudo apt-get install python3.10-venv
pip install virtualenv
python -m venv env
source env/bin/activate
pip install -r requirements.txt
  1. You need to refresh the session of login shell after install python-is-python3
  2. Need to create a file .env to store environment variables
  3. In the file .env, set value like this example
LEOBOT_DEV_MODE=true
HOSTNAME=leobot.example.com

GOOGLE_APPLICATION_CREDENTIALS=
GOOGLE_GENAI_API_KEY=

REDIS_USER_SESSION_HOST=127.0.0.1
REDIS_USER_SESSION_PORT=6480
  1. Set correct DIR_PATH in start_app.sh, an example like this
DIR_PATH="/build/leo-bot/"
  1. Run ./start_app.sh for PRODUCTION or ./start_dev.sh for DEVELOPMENT
  2. The LEO BOT is started at the host 0.0.0.0 with port 8888
  3. For demo and local test, need Redis Server. Open redis-cli, run: hset demo userlogin demo
  4. Go to the HOSTNAME to test your chatbot.