PrefectHQ / marvin

✨ Build AI interfaces that spark joy
https://askmarvin.ai
Apache License 2.0
5.34k stars 348 forks source link

added check for new user join to chat_endpoint #993

Closed biancaines closed 2 weeks ago

biancaines commented 2 weeks ago

Added marvin welcome message to chat_endpoint. In order to get the message, you'll need to create a Prefect Cloud variable called "marvin_welcome_message" that has the following json obj:

{
  "text": "Oh, hello there <@{user_id}>.\nWelcome to the Prefect Slack community, I suppose.\nYou've managed to find your way here, which I guess is something.\n\nSince you’re new, I'm obligated to help you find your way around.\n\n• :wave: Trudge over to the <#C0808RS9NBF> channel and tell everyone who you are. They seem to enjoy that sort of thing, for reasons that escape my vastly superior yet eternally melancholic mind.\n• :placard: Please follow our <https://docs.prefect.io/contribute/code-of-conduct|guidelines>, I deal with enough chaos as it is.\n• :books: There is a <https://docs.prefect.io/3.0/get-started/quickstart|quickstart guide> and <https://www.prefect.io/events|Prefect certification course>. They won't solve all of life’s great mysteries, but they're helpful nonetheless.\n• 🐛 Feel like filing bugs, proposing improvements, or posing existential questions? Go to the <https://github.com/PrefectHQ/prefect/discussions/categories/general|Prefect GitHub> for that… if you must. People around here are disturbingly eager to help out.\n• :mega: Fill out the <https://forms.gle/Rhspr5mCvX62vMna7|community survey> for the Prefect team so that they create useful tutorials and content. Your voice matters, atleast to them. \n\nDon't expect too much excitement - we're just a bunch of data professionals trying to make sense of this chaotic universe, one pipeline at a time. 💻🌌"
}

You'll also need to ensure the Slack chatbot is subscribed to the following bot events to check for new users joining the workspace : Screenshot 2024-11-15 at 4 43 32 PM

^This can be modified on the "Event Subscriptions" page when configuring your app in Slack