Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api.ai-chatbot

Learning project - simple chatbot written in Node.js using Express.js and Dialogflow API, running on Heroku.

Heroku deployment hints

Configuration of Heroku environment variables

heroku config:add VARIABLE_NAME=variable-value

  • heroku config:add PAGE_ACCESS_TOKEN=page-access-token-string

Local configuration (Windows PowerShell) link

  • $env:DIALOGFLOW_PRIVATE_KEY='"private key"' (yes, with double single and double quotes)
  • $env:DIALOGFLOW_CLIENT_EMAIL="client email"

Problem with Heroku keys

  1. do we have some keys?
$ heroku keys
  1. delete all keys
$ heroku keys:clear
  1. generate the key
ssh-keygen -t rsa
  1. add the key
heroku keys:add
  1. -> profit

Heroku debugging

link

Linking Heroku with existing app

git remote add heroku git@heroku.com:project_name.git

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages