FocusedDiversity / synaptiq-hppo

The truth-aware document manager
GNU General Public License v3.0
0 stars 0 forks source link

#12 Build chatbot code to interact with slack from databricks #17

Closed rdmontgomery closed 1 year ago

rdmontgomery commented 1 year ago

12

This PR creates a chatbot module that divorces our slack integration from the MLC infrastructure that was part of chatbae. The app connects to slack via slack_bolt using three API keys that have been stored in a Databricks secret scope called hippo, using the following CLI commands from my macbook.

databricks secrets create-scope hippo
databricks secrets put-secret hippo SLACK_APP_TOKEN
databricks secrets put-secret hippo SLACK_BOT_TOKEN
databricks secrets put-secret hippo SLACK_SIGNING_SECRET

I'm running the Databricks Job via notebooks/driver.py to make easier use of dbutils.secrets, which is not generally available outside of a Databricks notebook. It is possible to authenticate against a workspace using databricks.sdk, but I could not figure out how to hide any secrets for that authentication in the Jobs UI.

rdmontgomery commented 1 year ago

Comments addressed and driver.py is cleaned up to use code from chatbot.bot.