Skip to content

Slack Bot template app#315

Draft
nealrichardson wants to merge 1 commit intomainfrom
slack-bot
Draft

Slack Bot template app#315
nealrichardson wants to merge 1 commit intomainfrom
slack-bot

Conversation

@nealrichardson
Copy link
Contributor

I haven't done all of the extension-y things yet but wanted to push this up. Runs a Slack Bot on Connect, with a chat interface in the web version.

@jonkeane jonkeane requested a review from juleswg23 February 4, 2026 17:56

4. **Subscribe to Events** (Event Subscriptions → Subscribe to bot events)
- `app_mention` - when someone @-mentions the bot
- `message.im` - DMs to the bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For DMs to the bot to work, I had to also ensure App Home -> "Allow users to send Slash commands and messages from the messages tab" was ticked. (It was unchecked by default.)

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will revise the readme with all of the relevant scopes needed, Claude's first guess was wrong, but I've figured it out since. I don't believe slash messages is required but there are more bot scopes needed than were originally figured.

@@ -0,0 +1 @@
# Slack bot application
Copy link
Collaborator

@juleswg23 juleswg23 Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought Python modules needed an init.py, even if it's empty, right? If you can delete it and everything still works fine and no linters complain, go for it.

@juleswg23
Copy link
Collaborator

juleswg23 commented Feb 4, 2026

I haven't done all of the extension-y things yet but wanted to push this up.

I am assuming this relates to the file-structure. Aside from a minimal re-organizing, I don't see any glaring issues with this extension.

with a chat interface in the web version.

This works locally, but I haven't been able to get it to work on dogfood. I see the ellipses forever instead of a reply.

image

@nealrichardson Im happy to pick this up if you'd like me to make the changes I've noted above.

@nealrichardson
Copy link
Contributor Author

This works locally, but I haven't been able to get it to work on dogfood. I see the ellipses forever instead of a reply.

That's due to a bug in Connect where Shiny websocket setup doesn't happen if you deploy it as python-fastapi. (I've ticketed it internally.) If you deploy this as python-shiny, both the Slack connection and the web chat interface work.

@nealrichardson Im happy to pick this up if you'd like me to make the changes I've noted above.

That would be fantastic, thank you. I'll bring over the README edits I mentioned but if you could handle the rest that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants