slackbotkit

why Botkit stores data in json_file_store?


So, we are trying to implement slack integration with our product, botkit uses json_file_store to store channel, team, user related information, why does botkit stores such data? Is there way to avoid storing such data on production environment? or should I use any other slack bot client?


Solution

  • You can read more about how and why Botkit stores data here: https://botkit.ai/docs/storage.html

    Youll want to use at least the simple storage to keep track of things like team/user/channel id in slack, especially if the bot is to be installed or interact with multiple teams or users. This data does not persist like using a dedicated storage connector, and if you are worried about data leakage you can use the Events API in concert with Botkit middleware to limit the data that is sent to the app too and from slack. https://botkit.ai/docs/readme-pipeline.html