Skip to content
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

feature(slack): slash commands support #176

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

llmstack/apps/apis.py Fixed Show fixed Hide fixed
Comment on lines +808 to +815
data={
"response_type": "in_channel",
"text": result["message"],
},

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
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
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.

None yet

1 participant