Skip to content

feature(slack): slash commands support #176

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Balu-Varanasi
Copy link
Contributor

Goal

The goal of this pull request is to enhance our system's functionality by adding support for slash commands.

Changes

Frontend

  • Implemented optional support for adding a slash command name and description.

Backend

  • Implemented validation for Slack callback requests to ensure they originate from valid a slash command configured within our system.
  • Prepared internal input data to facilitate the postMessage function, ensuring seamless communication within the Slack environment.

Testing

Configured Slack App Scopes

Bot Token Scopes: It is essential to ensure that the bot has access to the commands scope under Features > OAuth & Permissions.

Multiple Channels

  • Tested the command across multiple channels, using the defined signature to ensure its functionality across diverse communication contexts.

Reviewers

@ajhai and @vegito22

Dependency PR

#175

Copy link

vercel bot commented Mar 4, 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 6, 2024 6:34am

Comment on lines +808 to +815
data={
"response_type": "in_channel",
"text": result["message"],
},

Check warning

Code scanning / CodeQL

Information exposure through an exception

[Stack trace information](1) flows to this location and may be exposed to an external user.
@Balu-Varanasi Balu-Varanasi force-pushed the feature/slack-slash-commands-support branch from 35e60da to 32e224e Compare March 6, 2024 06:34
@Balu-Varanasi Balu-Varanasi changed the title slack - slash commands support feature(slack) - slash commands support Mar 14, 2024
@Balu-Varanasi Balu-Varanasi changed the title feature(slack) - slash commands support feature(slack): slash commands support Mar 14, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant