Summary
In this code pattern, learn how to create a Node.js chatbot application that uses Watson Assistant and Elasticsearch. The chatbot application, which the user interacts with from a mobile app, can run on either Kubernetes or Cloud Foundry.
Description
This code pattern is based on the chatbot that is being used for the IBM Developer mobile application, available in your mobile App Store.
The chatbot that you build with this code pattern uses TV shows data from TV Maze to make recommendations and provide show information.
After completing this pattern, you will understand how to:
- Create a chatbot, from end to end
- Deploy and run a Node.js application on Kubernetes or Cloud Foundry
Flow
Flow for Cloud Foundry
- The user interacts with the chatbot from the React UI of the mobile application by asking a question via text.
- The React UI sends the user’s message to the Node.js backend on Cloud Foundry.
- The Node.js backend sends the message to Watson Assistant to determine the intent and entities of the user’s message.
- The Node.js backend queries the Elasticsearch database based on the intents and entities processed by Watson Assistant.
- The response and results are sent to the React UI.
Flow for Kubernetes
- The user interacts with the chatbot from the React UI of the mobile application by asking a question via text.
- The React UI sends the user’s message to the Node.js backend on Kubernetes.
- The Node.js backend sends the message to Watson Assistant to determine the intent and entities of the user’s message.
- The Node.js backend queries the Elasticsearch database based on the intents and entities processed by Watson Assistant.
- The response and results are sent to the React UI.
Instructions
Find the detailed steps for this code pattern in the readme file.
Max Shapiro