https://dagster.io/ logo
#dagster-support
Title
# dagster-support
s

Sterling Paramore

09/13/2022, 9:00 PM
Having trouble following the directions for dagster-slack. In step 2, we’re supposed to “create a bot user”. There is no such button to just create a bot user. According to the slack docs, I maybe need to add an Oauth Scope to the Bot Token Scope. However, there are a lot of different scopes that I could add. Which ones does dagster-slack need?
a

Adam Bloom

09/13/2022, 9:03 PM
that depends which actions you're trying to use. if you're only using
chat_postMessage
, then you only need
chat:write
s

Sterling Paramore

09/13/2022, 9:10 PM
Can the bot do more than just post messages?
a

Adam Bloom

09/13/2022, 9:12 PM
The slack resource is just wrapping the slack_sdk
WebClient
(https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-slack/dagster_slack/resources.py), so you can do anything in the slack SDK that you provide your bot user permission for! https://slack.dev/python-slack-sdk/web/index.html
s

Sterling Paramore

09/13/2022, 9:25 PM
I just want it to send alerts to slack, which is all the example show, and I’ve never set up a slack bot before. The instructions are very confusing. I think I’ve got something, but now my sensor is failing with:
Copy code
slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: <https://www.slack.com/api/chat.postMessage>)
The server responded with: {'ok': False, 'error': 'not_in_channel'}
Clearly I missed a step in setting up the bot that isn’t explained in the dagster slack docs.
a

Adam Bloom

09/13/2022, 9:26 PM
Been a few months since I set up my slack bot, but I believe that error is because you need to add the slack app to each channel you want it to be able to write to (or add another oauth scope that lets it add itself to channels)
I find slack's documentation to be very helpful and detailed, so you may want to check that out. I don't think dagster is attempting to document this process super thoroughly since the dagster integration is such a thin wrapper around slack's sdk/services.
s

Sterling Paramore

09/13/2022, 9:29 PM
Strange. So couldn’t invite the bot via the
+
button in the channel like I can when I want to invite people. Instead, I had to
@dagsterbot
in the channel, which sent the invite.
I don’t think dagster needs to fully document the slack sdk, but it would be nice if it provided the minimal steps to get something working.
a

Adam Bloom

09/13/2022, 9:30 PM
There's a command to "Add apps to a channel", it'll show up if you type
/add
or
/invite
too
e

erin

09/21/2022, 5:39 PM
I'm a little late to this thread, but I agree that our instructions for Slack setup could be improved.
@Dagster Bot docs [docs] - Improve instructions for dagster-slack
d

Dagster Bot

09/21/2022, 5:39 PM