Going to holidays
with Wit.ai, Hubot, and Node.js
Whoami
Giovanni Lela
Tech lead @LinkMe
@lambrojos
http://github.com/lambrojos
Trying out NLP chatbots on a real issue
● (Very) frequently asked questions
○ how do I ask for permits / holidays / refunds / whatever
?
● Let the bot answer
● Bonus side quest: Can the bot ask for holidays
for me?
Tools
● Hubot
● Wit.ai
● Google apis
Hubot
Hubot is a chatbot framework by github.
● Clean architecture with lots of
community provider scripts
● Adapters
● Generators
● Persistance
● For some reason, coffeescript :(
Wit.ai
● Natural language processing
● Free for both public and private apps :/
● Easy
● Good support for Italian and speech recognition
Google apis
Well documented, extra powerful set of APIs
Has an useful API explorer
Quite boring to set up with oauth - so we cheated
and used service tokens.
Our objectives
● integrate with slack: easy
● respond to FAQ: ok
● creating events on google calendar: semi easy
Code time
Take at home points
● Training is boring
● A real chatbot needs to maintain conversation state - this
means we have to carefully design conversations
● NLP is not an answer to all chatbot problems
Next steps
Implement sessions in order to implement conversations
https://github.com/lmarkus/hubot-conversation
Design conversations
Less NLP
Project repo
https://github.com/linkmesrl/linkmebot

Hubot + wit.ai, un chatbot aziendale per Slack