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!
Related
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 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.
I want to create a Flutter mobile application and I want to use MongoDB Atlas as a database. Is there a Flutter package available that can help me with that?
If not, is there any other way I can connect Flutter to a MongoDB Atlas Database? If there isn't, what other options do you suggest?
Thank you in advance.
you can use the package mongo_dart, here is the catch in the database URL give URL to your MongoDB atlas database and you will be able to perform all the crud operations as usual. The documentation is pretty well written so you wouldn't have to face any pro
As #JideGuru said, what you'll want is some form of API that you can then make requests to from your app.
i.e. Instead of accessing your DB directly, you'd do something in Flutter like http.get("yourserveraddress.com/getSomethingWithThisNumber/1") using the HTTP package.
I'd recommend looking at something like Node.JS (https://nodejs.org/), which is a runtime for Javascript that allows it to be ran on servers. I'm just getting started with it and for basic CRUD (Create, read, update, delete) operations on my SQL database its been perfect. I'm not a JS developer by any stretch, but it is easy enough to pick up.
You really should never have your database being directly accessed by a client, as that means leaving it exposed on the internet!
MongoDB have their own driver for NodeJS, I've used it with atlas and it seems solid.
(https://mongodb.github.io/node-mongodb-native/)
Hope this helps!
I am a bit of a newbie when it comes to databases. Ive created a Nosql db on the IBM bluemix platform and I would like to access it from unity.
I was wondering if the www class would be sufficient to query the database? Would I need to add authentication etc? I can find samples for firebase and Aws with unity easily but I'm flying in the dark a bit with regards to cloudant
has anyone done this before?
The Cloudant database doesn't require any "drivers" or any special libraries to work with Unity. As long as you can make HTTP requests from your application, then Cloudant will be able to act as a data store.
You might want to try the Unity WebRequest object which is a lower-level abstraction than the 'www' library you suggest.
The Cloudant API Reference is here.
Currently I need to create admin ui, using google cloud datastore as user storage, and google functions as controllers.
I found the Keystone JS CMS platform, which uses mongoDB for storing user data, so I am looking for the chance to use it with google cloud datastore.
Is it possible to create some driver that will redirect all the keystone db requests not to mongodb, but in Google Datastore?
The core of Keystone is built on top of Mongo (and Mongoose) functions and code. At the moment, there isn't another way to use Keystone with another database type or provider. See this GitHub issue for some more information that may be of use.