A test project (actually, this is a webhook) using:
- Facebook messenger chatbot tutorial with nlp enabled
- Dialogflow SmallTalk feature
- Create
.envwith following content:
PAGE_ACCESS_TOKEN='PAGE_ACCESS_TOKEN'
VERIFY_TOKEN='VERIFY_TOKEN'
- Create
controller/config.jswith following content:
module.exports = 'APIAI_TOKEN';I don't know why but include this token in
.envdoesn't work
# install dependencies
npm install
# build for production with minification
npm run build
# push /build, package.json, package-lock.json to Heroku or any cloud platform