watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
207 stars 255 forks source link

Where is the context stored? #160

Closed developer-bz closed 5 years ago

developer-bz commented 5 years ago

Hi,

This is not an issue, more of a query. I would like to know where the context is stored when you say middleware.storage(). Can i have a look into the storage?

Thanks in advance

Naktibalda commented 5 years ago

https://botkit.ai/docs/storage.html

developer-bz commented 5 years ago

Thanks @Naktibalda can i see the json file locally? Or if i have hosted my application on aws, where can i find the storage file?

Naktibalda commented 5 years ago

JSON files are only used if you have json_file_store setting present in bot configuration. If you have no such setting and you aren't passing custom storage, then in-memory storage is used. You should see this message in console when you start your bot: No persistent storage method specified! Data may be lost when process shuts down.

developer-bz commented 5 years ago

Thanks @Naktibalda I got it when I read the documentation link you sent, properly. Thanks a lot again