This demo shows a way to integrate Dasha in web browser chat.
The communication between the Dasha application and local server is provided by socket.io
.
- Setup environment (see doc)
- Run
npm i
in a current folder. - Create
.env
file in current directory - Set environment variables
DASHA_SERVER
andDASHA_APIKEY
in.env
file (see.env-example
) - Optionally you may also set
DASHA_CONCURRENCY
variable to change max number of conversations to run at once (default value is2
)
- Run
node server.js
for launching local server. - Open
http://localhost:8080
in browser.