Get the code
View the demo
By Scott D'Angelo | Published September 25, 2017
If you’ve used Watson Assistant and needed to have the user input data, you’ve noticed that the process can be cumbersome. Each time you added a field required a node, and validating the required logic was done on another node. Error handling, adding help, optional fields, and other logic would require even more nodes. Just creating a user profile or data form resulted in a large graph and extensive application logic. With the new Watson Assistant Slots feature, you can reduce that down to a single node. This code pattern shows how to create an online pizza order for a chatbot using a single node for input. After implementing this code, you will have the knowledge to create your own Watson Assistant Slots. This code pattern now includes instructions on how to use the IBM Cloud Kubernetes Service, too!
In this code pattern, we’ll create a simple chatbot with Node.js and Watson Assistant. There will be only a thin application layer, which provides the bare bones of a basic chatbot, with all the logic pushed into Watson Assistant via the new Watson Assistant Slots feature. The chatbot will take a pizza order, filling in slots for the various information required. A similar approach could be used for a user profile or other online form.
When you complete this code pattern, you will be able to:
The code pattern lets you also choose how to deploy the application, using Cloud Foundry on IBM Cloud, or the IBM Cloud Kubernetes Service.
Find the detailed steps for this pattern in the README. Those steps will show you how to:
Think is IBM's flagship technology conference. This year, one of our leading containers dev advocates will be live streaming on…
July 12, 2019
September 7, 2019
Back to top