In this section, two fast and simple ways of deployment are introduced. You can deploy on

Note that these services have limited free dynos. If your bots need to be up 24/7, you should consider paid plans or other services.


You can set vars in bottender.config as environment vars and secrets.


$ now secret add my_verify_token 1qaz2wsx

You can list, rename and remove your secrets by following commands:

$ now secret ls
$ now secret rename my_verify_token verify_token
$ now secret rm my_verify_token

Environment Variables

Use @var to set the environment variable with your now secrets.

$ now -e VERIFY_TOKEN=1qaz2wsx
$ now -e VERIFY_TOKEN=@verify_token


$ now

List Project

$ now ls


Make alias to set your customized domain.

$ now alias workshop //
$ now alias // upgrade plan


You can deploy your bot on Heroku simply using Heroku CLI after creating a new app.

$ heroku login

Creating a new Git repository

$ cd my-project/
$ git init
$ heroku git:remote -a your-app-name // for existing repositories, simply add heroku remote

Setting Node version

Make sure your Node version on Heroku is higher than 7.6.0. These lines can be added in package.json to specify the Node version.

"engines": {
  "node": ">= 7.6.0"


$ git add .
$ git commit -am "make it better"
$ git push heroku master