Successfully reported this slideshow.

Ondrisek @ DevTernity "Insights into Chatbot Development - Implementing Cross-Platform Chatbots"



1 of 25
1 of 25

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Ondrisek @ DevTernity "Insights into Chatbot Development - Implementing Cross-Platform Chatbots"

  1. 1. @electrobabe Insights into Chatbot Development - Implementing Cross-Platform Chatbots
  2. 2. 1.12.16 DevTernity @electrobabe1.12.16 Background
  3. 3. 1.12.16 DevTernity @electrobabe Chatbots
  4. 4. 1.12.16 1.12.16 DevTernity @electrobabe Natural Language Processing
  5. 5. 1.12.16 DevTernity @electrobabe1.12.16 Chatbots are new?
  6. 6. 1.12.16 1.12.16 DevTernity @electrobabe Messenger Apps
  7. 7. 1.12.16 1.12.16 DevTernity @electrobabe Usage numbers
  8. 8. 1.12.16 1.12.16 DevTernity @electrobabe Platforms per region
  9. 9. 1.12.16 1.12.16 DevTernity @electrobabe
  10. 10. 1.12.16 1.12.16 DevTernity @electrobabe Mica, the Hipster Cat Bot
  11. 11. 1.12.16 DevTernity @electrobabe Facebook Messenger
  12. 12. 1.12.16 DevTernity @electrobabe Many different implementations
  13. 13. 1.12.16 DevTernity @electrobabe Skype
  14. 14. 1.12.16 1.12.16 DevTernity @electrobabe Commercial Chatbots Mica <3 SwellyAustrian Airlines Mr. Hokify
  15. 15. 1.12.16 1.12.16 DevTernity @electrobabe Commercial Chatbots (2) Sophie YodelRecord Bird ZoomBot
  16. 16. 1.12.16 1.12.16 DevTernity @electrobabe Non-Commercial Chatbots MemeGenerator Bot Toni Nela Artemis
  17. 17. 1.12.16 DevTernity @electrobabe Implementation Details
  18. 18. 1.12.16 1.12.16 DevTernity @electrobabe Chatbot Architecture
  19. 19. 1.12.16 1.12.16 DevTernity @electrobabe Processing Pipeline
  20. 20. 1.12.16 1.12.16 DevTernity @electrobabe Features per Platform
  21. 21. 1.12.16 1.12.16 DevTernity @electrobabe Features per Platform (2)
  22. 22. 1.12.16 1.12.16 DevTernity @electrobabe Features per Platform (3)
  23. 23. 1.12.16 DevTernity @electrobabe Lessons Learned * Do it! * No common standards * Limited Functionality * Fast changing APIs * Personality * UI/UX
  24. 24. 1.12.16 1.12.16 DevTernity @electrobabe
  25. 25. 1.12.16 DevTernity @electrobabe Any Questions?

Editor's Notes

  • Hi guys!
    My name is Dr. Barbara Ondrisek and today I&amp;apos;m going to give a talk about my experience developing cross-platform chatbots. I created one of the very first chatbots on Facebook – and definitely Austria’s first Facebook Messenger and Skype chat bot.
    About me: I’ve made my PhD at the University of Technology Vienna – so this is my Alma Mater – and been working as a consultant and freelancer for more than 15 years for different mostly big companies mostly as a Backend developer on web projects (most recently for George / Erste Bank).
  • I’ve been working as a freelancer and consultant for more than 15 years for different mostly big companies. I have a strong Java Dev Backend background and in the last couple of years I’ve been working as a Senior Backend developer with a disposedness to full stack and mobile.
    I also love to play around with other technologies - lately with Ionic or AngularJS (especially in my last project George for the Erste Group, Austria’s largest bank). I also was working as a freelancer and consulant for several years, but I was always lacking this one super idea to found my own startup.
    And as Facebook announced on their F8 conference mid of April to open up their Messenger platform to bots I was eager to try their API!
    So I created one of the very first chatbots on Facebook – and definitely Austria’s first Facebook Messenger and Skype chat bot: Mica, the Hipster Cat Bot.
  • What are chatbots?
    A chatbot is a service that enables you to interact with a service or company through a conversational interface. So it is a interactive program embedded in a program, the messenger app.
    Bots are also referred to as “virtual assistants”, “virtual agents”, “conversational UI” or “conversational commerce”. Or “Conversation as a Service”.
    The idea (and opportunity) behind chatbots is that there is no huge barrier to use it in contrast to apps, which have to be installed separately. You’d need a phone with an app store, also have to remember your password in order to install an app, need to have free space on the device and a good connection to download it etc. - only to mention some of the obstacles getting your app delivered to the user. In contrast to that 1 billion people worldwide are already using Facebook Messenger (and 300 million use Skype) and now with a chat bot I can reach all of them easily on a platform they already know.
  • Microsoft announced end of March at their BUILD conference the bot-support on Skype. Two weeks later Facebook announced at their F8 conference that they finally opened their messenger API for bots and the first bots started to be approved by Facebook. Only a few days later Hi Poncho, a Facebook Messenger weather bot, raised 2M of funding.
    Further Google presented at their Google I/O (mid May) another innovative chat platform Allo that also should support NLP. Further they announced in mid July their Cloud Natural Language API as a Natural Language Processing (NLP) and Machine Learning framework.
    IBM also released their NLP framework Watson. Facebook bought, Google bought, a machine learning framework. Amazon / Alexa has Microsoft started Bot Framework and LUIS (short for “Language Understanding Intelligent Services”), a machine learning framework.
    So all of the big players in the field are pushing the topic.
  • Chatbots are not a super new thing! Ok, FB and Google announced something, but not every new project becomes a success... what about Google Glass for instance?
    Historically speaking the very first chatbot was developed at the MIT AI Lab by the computer scientist Joseph Weizenbaum in the mid–1960s. This bot, ELIZA, simulated a Rogerian psychiatrist and Weizenbaum wanted to find out with this project, how natural language can be used in human-computer-interfaces. ELIZA was programmed to analyze the input of key words and to respond with a number of canned phrases containing therapeutical language.
    Also the first computers where designed in this manner: A question-answer system.
    And there were also text based computer games in the 80s such as Zork.
  • (c) Benjamin Keyser
    Why are we doing this?
    1 minute of 3 online spent minutes is spent mobile, but we see that the usage of numbers of apps is dropping (80% of time is spent in only 3 different apps), but not messenger apps!
    The current app trend is to go away from social media to messengers.
    This graph is already outdated, ...
  • (c) Tosh
    WhatsApp: 1 Billion monatlich aktive User (MAU)
    Facebook Messenger: 1 Billon
    QQ („ICQ“ China): 900 MAU
    WeChat („WhatsApp“ in China): 800 MAU
    Viber: 800 mio registered (!) user
    Twitter: 310 MAU
    Skype: 300 MAU
    Line App (Asien) : 220 MAU
    Telegram: 100 MAU
    Kik (USA): 300 Millionen registrierte User (gesamt)
    Slack: 4 Millionen täglich aktive User
    iMessage (Apple): 250 mio users
    Kakao: 160 mio
    BBM: 100 mio MAU
  • (c) david pichsenmeister
    Different messenger platforms are used in different countries.
    Kik for instance is super popular in the US (especially for teenages), Viber is very popular in Slavik countries, Central Eastern Europe and South East Asia, Line is popular in Asian countries. So if you decide to launch a bot in a certain region take this regional differences in account.
    The advantage of chatbots is that you attract the users where they usually are: In messenger apps. Not download or install of apps is needed, you can present your company on a channel where all these people spend their time!
    However, messengers are widely used, but what about China?
  • The same is already happening in China with WeChat and QQ, where people integrate the messenger app far more in their intimate personal life through micro-payments to friends, or paying their electronic bills or rents in WeChat.
    WeChat pay offers a lot of different services and became a single medium for all transactions — and Messenger wants to become this for the West.
  • However, after Facebook announced to open up their Messenger platform to bots I was eager to try their API and started to develop Mica, the Hipster Cat Bot, which started as a chatbot for Facebook Messenger and Skype, that helps you discover the best places near by.
    Mica started as a spin-off of LIKE A HIPSTER, an app that shows you trendy places.
  • This is the Facebook Messenger implementation - We designed her personality like this:
    She is a cat and a bot. She likes funny cat pictures and milk, but doesn&amp;apos;t like water. She also enjoys hanging out in hip coffee shops and knows the the best places worldwide.
    The internet loves cats ... so I created Mica, the Hipster Cat Bot as fictional character and my chatbot got a face. First I thought I use my cat&amp;apos;s face as fb page icon, but than I thought an abstraction would fit better.
  • So, why only stay with one platform? There are so many such as Kik, Line App, Telegram… and so I thought I implement it on Skype!
    Microsoft announced end of March – two weeks earlier than Facebook - at their BUILD conference the bot-support on Skype. Facebook Messenger has 1 billion unique users per month, but Skype still has 300 mio!
  • ... and so I decided to implement it on Skype!
    Skype implementation is missing some features. Meanwhile there are structured messages (buttons), carousel lists, but still no animated content (gifs, videos)...
  • Here you see a list of Austrian homemade commercial chatbots:
    - Mica, of cause, venue recommendation service, restaurants or coffeeshops
    - Austrian Airlines: service bot
    - Swelly: Helps you with A/B decision making
    - Mr. Hokify: Jobsearch bot
  • - Record bird: music recommendation bot
    - Sophie from Mon Style: shopping assistant
    - ZoomBot from Zoomsquare: Real estate seach engine
    - Yodel: Telephone service bot for Slack
  • Successful non-commercial bots are:
    - Meme Generator Bot by David Pichsenmeister
    - Toni: Football games bot by Klemens
    - Nela: Language Trainer by Liechteneckers
    - Artemis: Machine Learning by
  • To implement a bot for Facebook Messenger or Skype you simply have to implement a Webhook that can be written in any language you want. I chose Java because I like the object oriented language most.
    In Java you have to write DTOs to handle the different REST resp. Json objects.
    The backend is hosted on AWS EC2 and uses also a simple MySQL database to store basic data about the user such as the user’s name or last city.
    - Mica on Facebook, on Product Hunt
    - Mica on Skype, on Product Hunt
    - Mica on WeChat
    - Mica on Telegram, on Product Hunt
    - Mica on Kik
    developing the character, learnings, personality far more important than thought
  • Different platforms have different properties and features.
  • First of all:
    - Just do it! It&amp;apos;s not so complicated to implement basic chatbot!
    - No common standards. “hi”, “bye”, stop notifications etc.
    - Bot functionality is still limited. App developers are laying early groundwork on user experience, getting access to data, developing algorithms, improving NLP, and many more challenges.
    - The APIs are still in BETA, although the FB API is more stable than the Skype version. Skype, especially the iOS version, was so buggy that after the day of my Product Hunt launch one of the Skype Skype (!) developers contacted me to go through the bugs ;)
    - Create a bot personality, a personas. Assumption of service bots does not work. Create a character!
    - User Experience is extremely important. Otherwise users get frustrated. So a UX-Designer joined my team!
  • I founded the Chatbots Agency, the first agency for chatbots with (paying!) international customers.
  • Any questions?
  • ×