BotHub CLI 0.1.20 /SDK 0.1.30 version released with improvements


#1

BotHub CLI 0.1.20 /SDK 0.1.30 version released with improvements

Let’s go over the various improvements:

  1. Added Dialogflow API V2 to support NLU
  • Dialogflow API V2 is newly added.
  • Dialogflow API V1 will be disabled officially on 23, October 2019.
    So if make a new project with Dialogflow, please use API V2.
  • BotHub.Studio also will stop to service API V1 on October 2019.
  1. Added environment variables
  • If need environment variables in your project, add in .bothubenv file.
  • It can use like this in .bothbenv file:
    GOOGLE_APPLICATION_CREDENTIALS=./sample.json
  1. Added Ignore file to exclude unnecessary files when deploying
  • When deploy , it can exclude unneeded files like .pyc .
  • Write file pattern of the file wants to exclude in .bothubignore file.
  1. Added Git Ignore file
  • When working with Git, .gitignore is provided as a default template so that unnecessary files in BotHub Project are not included.
  1. Added Send photo function
  • It can send photo by calling self.send_photo(url) method.
  • It is only available in Facebook Messenger, Telegram. Other platforms will be supported.
  1. Added Send Facebook template function
msg = Message(event).add_template(payload)
self.send_message(msg)
  • Our existing users need to upgrade BotHubCLI/SDK according to your version.
$ pip install --upgrade bothub-cli or bothub

If you have any questions, please contact bothub@bothub.studio!