Skip to content

slack - direct messaging #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Conversation

Balu-Varanasi
Copy link
Contributor

@Balu-Varanasi Balu-Varanasi commented Mar 2, 2024

Goal

This pull request introduces the ability to support direct messaging to custom Slack applications. The update focuses on enhancing user interaction with the Slack app by enabling direct messages, ensuring more personalized and direct communication channels are available.

Changes

Request Validations for Direct Messaging

  • Implemented additional request validation logic to handle direct messaging scenarios securely. This ensures that our Slack app can differentiate and correctly process incoming direct messages from users.

Callback Handler Modifications

  • Modified the callback handler to specifically allow direct messages from users while effectively ignoring any messages originating from bots. This distinction is crucial for maintaining the intended user-to-application interaction without interference from automated bot responses.

Testing

Configured Slack app scopes and events

Bot Token Scopes: app_mentions:read, channels:history, channels:read, chat:write, chat:write.customize, chat:write.public, commands, groups:history, im:history, im:read, im:write, incoming-webhook, mpim:history, mpim:read, mpim:write, users:read, users:read.email

User Token Scopes: channels.read, chat.write, users.profile:read, users:read

Bot Events: app_mention, message.channels, message.groups, message.im, message.mpim

Enable messages tab in App

Features > App Home > Show Tab > Messages > ✅

App Mentions in Channels

  • Conducted thorough testing of app mentions across various channels to ensure the Slack app responds as expected. During testing, it was noted that the bot user must be invited to that channel beforehand for the Slack app to capture app mentions in any given channel. This prerequisite was consistently met across all test scenarios to validate functionality accurately.

Direct Messaging to the App

  • Performed extensive testing of the direct messaging feature to evaluate the Slack app's ability to receive and process direct messages from users. The tests were designed to simulate real-user interactions, ensuring the Slack app can handle direct messages as intended.

Reviewers

@ajhai and @vegito22

Copy link

vercel bot commented Mar 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
llmstack ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 2, 2024 4:29am

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.

3 participants