This is an example of a full stack chatbot created with Amazon Lex, Loopback and React.
Clone the repo and, in the root directory:
$ npm i
$ npm run build
$ touch .env
You'll need to connect to a chatbot built with Lex using your AWS credentials; put those credentials in ./.env
:
AWS_access_key_id=<your aws access key id here>
AWS_secret_access_key=<your aws secret access key here>
Update common/models/utterance.js
to reflect your changes; specifically, botAlias
and botName
on lines 18-19 must match your bot's values.
Once you have that setup:
$ node .
Your bot should be up and running at localhost:3000.
View the article where I go through the whole process of building this chatbot on Medium.