Simple Voice AI Bot with Web Speech API
You need to have installed NodeJS with npm
You need to create an .env file in the project root with the following environment variables configured:
-
Port:
PORT=3000
-
Api token:
APIAI_TOKEN=XXXXXX
-
Api AI Session:
APIAI_SESSION_ID='random_string'
-
NODE_TLS_REJECT:
NODE_TLS_REJECT_UNAUTHORIZED=0
npm install
$ npm start
To obtain the API.ai apikey go here
Source: @girliemac