Bot builder with Mongo Db custom storage
Note: This video was recored using version 1 and is a little out of date.
https://www.npmjs.com/package/botbuilder-mongodb
npm install --save botbuilder-mongodb@3.1.1
You can find npm code into directory called npm_Code
The example code shows how you can store bot session and user data into MongoDB
Microsoft bot builder stores data (by default) internally in Microsoft storage which has a 64 Kb limit per user. Alternatively data can be stored to Microsoft Azure Table and Microsoft Cosmos DB (formerly Microsoft Document Db) which do not have any data limit per user. An opensource custom solution is to use MongoDB as storage layer for the same.
-
Install node js and npm
-
npm install
-
provide configuartion(MongoDb IP address, collection name, database name) on mongoOptions (Check app.js)
-
node app.js (It will create the collection automaticallly)
Note:If you are testing your bot in an environment other than the Emulator, then App ID and Password is required. This can be set in app.js of the application.