$30 off During Our Annual Pro Sale. View Details »

The PHP Developer Stack for Building Chatbots (SAE)

The PHP Developer Stack for Building Chatbots (SAE)

Facebook Messenger, WhatsApp, WeChat, Skype, and Telegram have more than three billion active users combined! This led messenger platforms to open their doors for application development on their chats and started the rise of these applications. We all know them today as chatbots.

Chatbots are much more than a hype. They change the way we communicate with companies and are bringing customer support and personalization to a new level. But what does the technology behind look like?

In this talk, I will show you all the tools it takes to build a chatbot in PHP. You will see what it’s like developing and testing chatbots for multiple platforms and how NLP (Natural Language Processing) services can help you to understand the user.

Christoph Rumpel

October 12, 2018
Tweet

More Decks by Christoph Rumpel

Other Decks in Technology

Transcript

  1. The PHP Developer
    Stack for Building
    Chatbots

    View Slide

  2. Me right now

    View Slide

  3. THE STACK
    1.
    2.
    3.
    4.
    5.

    View Slide

  4. ABOUT ME

    View Slide

  5. CHRISTOPH RUMPEL
    Web Developer

    View Slide

  6. CHRISTOPH RUMPEL
    Web Developer
    PHP / Laravel
    Chatbots
    Talks
    @christophrumpel
    christoph-rumpel.com

    View Slide

  7. CHATBOT BASICS

    View Slide

  8. A chatbot is just a service behind a chat
    interface.

    View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. TIM

    View Slide

  13. Slack Notification from a user who needs help

    View Slide

  14. LARAVEL
    QUIZBOT

    View Slide

  15. LARACON EU

    View Slide

  16. View Slide

  17. WIENER
    STÄDTISCHE

    View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. Why became chatbots so popular?

    View Slide

  24. View Slide

  25. FACEBOOK MESSENGER
    1.3 BIL.
    Whatasapp
    1.3 BIL.
    Wechat
    889 MIL.
    Skype
    300 MIL.
    Telegram
    100 MIL.

    View Slide

  26. #installation
    #relationship #costs
    #automatic
    #24/7
    #beWhereYourUsersAre
    #history
    #naturalLanguage
    BENEFITS

    View Slide

  27. Reach people you usually couldn't
    To use a better interface
    MAIN USE-CASES

    View Slide

  28. THE STACK
    1.
    2.
    3.
    4.
    5.
    Chatbot Basics

    View Slide

  29. PROGRAMMING LANGUAGE

    View Slide

  30. Facebook is recommending Node.js.
    Do I have to use it as well?

    View Slide

  31. Some kind of account
    HTTP-based API
    Platform-based features
    HOW MESSENGERS WORK

    View Slide

  32. Facebook Curl Command
    Telegram Curl Command

    View Slide

  33. Insomnia REST Client - Send Telegram Message

    View Slide

  34. PHP can send HTTP requests
    Messengers don't care
    PHP is great again
    Use a language you already know
    REASONS TO USE PHP

    View Slide

  35. THE STACK
    1.
    2.
    3.
    4.
    5.
    Chatbot Basics
    PHP

    View Slide

  36. PHP FRAMEWORK

    View Slide

  37. A chatbot looks different,
    but still is like other applications.

    View Slide

  38. Databases
    Caching
    Routing
    Authentication
    ...
    POSSIBLE REQUIREMENTS

    View Slide

  39. THE STACK
    1.
    2.
    3.
    4.
    5.
    Chatbot Basics
    PHP
    PHP Framework

    View Slide

  40. CHATBOT FRAMEWORK

    View Slide

  41. BotMan PHP Library

    View Slide

  42. One Codebase
    Multiple Messengers
    Expressive Syntax
    3900 GitHub
    FEATURES

    View Slide

  43. Marcel Pociot
    Creator Of BotMan
    Open Source Fan
    30+ PHP Packages

    View Slide

  44. Syntax
    Drivers
    Conversations
    Testing
    BOTMAN EXAMPLE

    View Slide

  45. THE STACK
    1.
    2.
    3.
    4.
    5.
    Chatbot Basics
    PHP
    PHP Framework
    BotMan

    View Slide

  46. NLP SERVICE

    View Slide

  47. Natural language processing is about
    how to program computers to understand
    natural human language.

    View Slide

  48. View Slide

  49. View Slide

  50. Dialogflow Intro
    Intents / Training
    Dialogflow + BotMan
    NLP EXAMPLE

    View Slide

  51. THE STACK
    1.
    2.
    3.
    4.
    5.
    Chatbot Basics
    PHP
    PHP Framework
    BotMan
    DialogFlow

    View Slide

  52. RESOURCES

    View Slide

  53. My Blog
    BotMan Docs
    BotMan Course
    Chatbots Magazine
    Build Chatbots with PHP
    RESOURCES

    View Slide

  54. store.christoph-rumpel.com

    View Slide

  55. THANKS

    View Slide