This repository is built from Forsta's end-to-end-encrypted messaging bot template. The Forsta messaging-bot provides for for autonomous receipt, processing, storage, and transmission of messaging data in conjunction with the Forsta web messenger and iPhone/Android apps. Please fork it or one of our several projects based off of it!
The live chat bot provides an easy way to configure a question set whose terminal questions send a connection request to a specified user or group of users. Once a terminal question is reached, the user can request a connection to a live chat operator. The request will be in the form of a librelay message with a "Connect" button and a complete history of the chat so far. Once the live chat operator clicks "Connect" they will be added to the existing thread so they can talk to the user.
The bot also records all incoming/outgoing messages for debugging purposes.
git clone https://github.com/ForstaLabs/forsta-live-chat-bot.git cd live-chat-bot export RELAY_STORAGE_BACKING=postgres export USER=postgres make docker-db-run make run
Once running, the default port and listening address are
you are running locally you can access the web interface by opening
You can change the listening address by setting
LISTEN_ADDR to a valid host
address for your server, E.g. something like
127.0.0.1 to only
accept local connections.
The default listening port can be changed by setting
PORT to any valid
numeric port, e.g.
Storage is managed through Forsta librelay which currently supports local filesystem and Redis. For more information about setting up custom storage see: https://github.com/ForstaLabs/librelay-node#storage.
Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html