concept Facebook Messenger in category deep learning

appears as: Facebook Messenger, Facebook Messenger,   Facebook Messenger
Deep Learning with Structured Data

This is an excerpt from Manning's book Deep Learning with Structured Data.

  • Facebook Messenger deployment: contains the code for a deployment of the trained deep learning model as a chatbot in Facebook Messenger, as described in chapter 8.
  • The user experience with web deployment is simple but it has some serious limitations. First, the user has to go to a specific website. Second, they have to enter all the information about their trip (nothing is assumed). Finally, the entry of the trip parameters and the prediction appear on separate web pages. We could address all of these issues in the web deployment directly by spending more time refining it, but there is a better way to improve the user’s experience: deployment in Facebook Messenger. Figure 8.7 shows how simple it is for the user get a prediction on their trip in the Facebook Messenger deployment:

    Figure 8.7 new data points scored with the deployed model

    Contrast the scoring experience that the user has with Facebook Messenger deployment with the experience with web deployment. Using the model deployed with Facebook Messenger, the user just has to enter an English sentence in Facebook Messenger and they get back a prediction. The user can provide minimal information and still get a prediction back. Best of all, the user enters the request and gets back the prediction in Facebook Messenger, a natural environment for this kind of lightweight interaction.

    Another benefit of the model being deployed via Facebook Messenger with Rasa is flexibility.

    The other key file in the Rasa framework is actions.py, the file that contains the Python custom actions. If Facebook Messenger is the pretty face of the deployment, and Rasa’s NLP capability is its lovely voice, then actions.py is the brains of the deployment. Let’s take a closer look code in actions.py that gets the slot values that Rasa sets.