I am trying to connect IBM Watson Assistant to IBM Db2.
The use case is the user will input data through a channel and the data will be inserted in Db2.
I am under the impression that Node.Js would be needed and I am confused on how to get Data inputted into Db2 through the Watson Assistant.
Any help would be greatly appreciated. Thanks in advance!
this Assistant Db tutorial shows how to call from Assistant to a cloud function and then into a database.
Although it is querying the database with information from Assistant, the Nodejs code could instead update the database with information from Assistant. You would have to write this update code for your use case.
I recommend the same architecture to work with your database.
Related
I am creating a chatbot that integrates Mongodb as its database. I have been looking for code that connects a MongoDB database to Dialogflow so that I could create functions for the intents I have been making. I will put the code via the in-line editor of Dialogflow. How do I make this connection? Thank you in advance!
I have created a DB instance using AWS RDS and was successful to connect the DB instance using DBeaver DB Tool. Also, created a simple table with few columns and inserted record in the table using DBeaver.
Now I am trying to develop dialog flow in Watson Assistant skill, where the Bot will ask the user some specific question and the user will provide the answers. The user input may be string or number anything. These inputs should be stored in the external DB like AWS RDS DB table and when user wants he/ she will ask the Bot and the Bot should be able to retrieve the stored data.
In a nutshell, need to create successful integration between Watson Assistant and AWS RDS DB for storing & retrieving the data.
I am quite new to WA and AWS both and hence need to know on how to build up the integration between Watson Assistant and AWS RDS DB and how to store/ retrieve the user inputs (as described above).
Can anyone kindly help me in this regard in detail with specific steps?
There is an IBM Cloud tutorial to hook up Watson Assistant to a database and the input is available as $input.
To connect to any external data source (except Watson Discovery, see "search skill"), you would need to define a webhook as shown in the linked tutorial. Implement a dispatch function (Cloud Functions, AWS Lambda, IBM Cloud Code Engine, ...) that takes the input and connects to the data source and performs the desired action.
I currently have a Watson chatbot set up and also have a DB2 database with some tables set up.
Could someone please assist me in how to develop a code in the IBM Cloud function to connect both the chatbot and DB2 services, as well as how the code in the Dialog nodes needs to be to either read or write to the tables in DB2?
This IBM Cloud solution tutorial shows how to build a Db2-driven chatbot with IBM Watson Assistant and IBM Cloud Functions for the app code. The related GitHub repository has working code for serverless actions that either insert a new record into Db2 on Cloud or retrieve data based on criteria entered within the chat.
The file eventFetchDate.js would search for a specific event record within a given date range. You can use any supported programming language. The most important part is to pack the result into the structure expected by Watson Assistant. The workspace file has the full set of dialog nodes and demonstrates how to interact with the user and Db2.
Reading the documentation at https://github.com/watson-developer-cloud/conversation-enhanced#local
it states "Ensure that you have a Bluemix account. While you can do part of this deployment locally, you must still use Bluemix.". If I use a custom dataset will any of this data be sent to IBM's servers ?
Specifically I think im referring to step circled red ('Create or import training data') :
I plan to build a similar app to conversation-enhanced (https://github.com/watson-developer-cloud/conversation-enhanced) but want to ensure local data will not be sent to IBM.
Yes, you will need to send data to IBM.
If you are planning on using the IBM BlueMix services, then I recommend you read the terms of use, found here, to understand your full agreement:
http://www-03.ibm.com/software/sla/sladb.nsf/pdf/6606-08/$file/i126-6606-08_05-2016_en_US.pdf
I am building a application where I am trying to use IBM Watson question & answer API.
Currently I see only corpus for Healthcare and Travel, but I would like to ingest Custom dataset suiting my needs. Can anyone please point me to right direction or exact API which does that or IBM already built explorer which I can use to upload the data files directly.
Thanks for the help
At this time you can not ingest corpus data into IBM Watson. That is coming in the future.