Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@samcorky
Copy link
Contributor

@samcorky samcorky commented Sep 7, 2025

When a user joins the Slack workspace, a private message from SMIB is sent detailing useful information.

This can also be triggered by a user by using the /welcome comamnd in slack.

closes #57

- Introduce a plugin to send welcome messages to new members on Slack.
- Add `/welcome` Slack command and `users:read` scope to manifest.
- Include `welcome.json` for structured welcome message content with links and information.
…vent handling

- Introduce `/welcome` Slack command to send welcome messages on-demand.
- Extract `send_welcome_message` as a reusable async function.
- Add `pprint` for debugging team join events.
- Update `team_join` event to acknowledge and use the refactored message function.
- Enhance `/welcome` description in the manifest.
- Add `team_join` event to event subscriptions.
- Redesign welcome message with a table for better readability.
- Introduce logging for new user join events.
- Refactor `get_welcome_message_blocks` with a cache size limit.
- Fix `/welcome` command to restrict non-DM usage and improve feedback.
@samcorky samcorky linked an issue Sep 7, 2025 that may be closed by this pull request
@sjefferson99 sjefferson99 requested a review from Copilot September 7, 2025 12:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Implements a welcome message system for new Slack workspace members with a private message from SMIB containing useful workspace information and links. The feature can also be manually triggered by users via the /welcome command.

  • Creates a comprehensive welcome message template with workspace links, opening hours, and useful channels
  • Adds automatic welcome messaging for new team members joining the workspace
  • Implements a manual /welcome command for users to retrieve the welcome information

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/plugins/space/welcome/welcome.json Defines the Slack block kit template for the welcome message with workspace information
src/plugins/space/welcome/init.py Implements the welcome plugin with team_join event handler and /welcome command
slack-manifest.yaml Adds required permissions and command registration for the welcome functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sjefferson99
Copy link
Member

@sam57719 Could do with a docs update to note the new feature and also example content and how to edit the correct JSON so someone can come in and do that without understanding the whole plugin system as I see it as an IT admin function likely to be updated outside of smib development.

Also be good to post the formatted content into trustees and get approval for the feature to be enabled or any content to be adjusted.

@sjefferson99
Copy link
Member

@sam57719 Tested with dummy account and all looks fine, will approve on documentation update and we can plan deployment to prod SMIB with trustees.

samcorky and others added 3 commits September 7, 2025 14:13
- Update README with a link to detailed instructions.
- Introduce a new README file explaining how to modify the welcome message using Slack Block Kit Builder.
Copy link
Member

@sjefferson99 sjefferson99 left a comment

Choose a reason for hiding this comment

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

All looks good and works as expected.

@samcorky samcorky merged commit 6b72715 into master Sep 7, 2025
@samcorky samcorky deleted the 57-private-message-when-user-joins-workspace branch September 7, 2025 14:17
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.

Private message when user joins workspace

3 participants