I am creating slack app using bolt javascript library, I want to create message shortcut and when the user clicks on that shortcut I want to capture the message details. how can I do that using slack's blot library for javascript?
How to create message shortcut in slack app?
815 Views Asked by Harshith Gowda At
1
There are 1 best solutions below
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in SLACK
- Troubleshooting Airflow Task Failures: Slack Notification Timeout
- Sending Slack Message to channel from salesforce flow
- Slack webhook returns invalid_payload when message is a url
- How to check Slack App added in private slack channel
- Adding members to private groups using api requests in slack
- How to trigger Slack bolt app from external service
- Not getting Social Token when using SignIn with Slack
- Airflow SlackWebhookOperator to send message to slack
- Adding Slack Blocks into a workflow using the UI
- Displaying the metric value in the slack alert
- Slack Cli - How has it been broken after upgrade?
- How to send base64 encoded images to slack using webhook urls?
- how can i subscribe to message events in my slack app
- slack webhook doesnt display blocks
- How do I cross post from Automation in a Slack Workflow
Related Questions in SLACK-API
- Detect image added by user in channel
- Troubleshooting Airflow Task Failures: Slack Notification Timeout
- Adding members to private groups using api requests in slack
- How to trigger Slack bolt app from external service
- Slack Block Kit - trigger http request on modal submit
- How to send base64 encoded images to slack using webhook urls?
- how can i subscribe to message events in my slack app
- slack webhook doesnt display blocks
- Slack API - sharedPublicURL fails with UserToken of user that is not in the channel
- Unable to display buttons using slack-go Actions
- Use link as part of attachment in slack payload
- Slack CLI app vs app created in UI (https://api.slack.com/apps)?
- Verification Token or Signing Secret for AWS Lex to Slack connector?
- Mention in slack payload does not become an actual mention in the posted message
- Multiple POST Requests Triggered by Slack Messages Events Subscriptions (Slack API App)
Related Questions in SLACK-BLOCK-KIT
- Slack Block Kit - trigger http request on modal submit
- Adding Slack Blocks into a workflow using the UI
- slack webhook doesnt display blocks
- Trigger to to Send a slack message
- Unable to display buttons using slack-go Actions
- Slack CLI app vs app created in UI (https://api.slack.com/apps)?
- Mention in slack payload does not become an actual mention in the posted message
- Slack Bolt.js: How do know if the values I've sent to the client for action do not get tampered with?
- Is it possible to post a Slack message with markdown/blocks to a webhook without an app?
- Slack Block-kit Multi_users_select Show only members in the channel
- Attachements not visible in Slack Block Kit Builder
- Slack-API - How to receive button click from a block? Getting error "This App responded with status Code 404"
- slack block text input not work in mobile app (android)
- Can we add custom tabs in slack apps ? Currently it has only home, messages and about
- How to have sub-workflows with the Slack Next Gen Platform
Related Questions in SLACK-DIALOG
- Can we add custom tabs in slack apps ? Currently it has only home, messages and about
- Slack MultiExternalSelectElement block suggestion handler taking 30 sec to respond (Slack SDK for Java)
- Slack bolt Modal complex input field
- How to create message shortcut in slack app?
- Update slack view generated on a view_submission event
- Getting 'exchanged_trigger_id' error with Slack BoltJS when trying to reopen a modal
- Is opening a popup iframe or webpage using slack API supported?
- Closing Slack Modal from AWS Lambda after data submission
- Can't open modal using `trigger_id` from Slash Command in Slack Bot
- How can I open slack modal during slack workflow execution step?
- Using slack API to get conversation lists
- How to get input from a modal or dialog in a slack workflow step?
- I want to add Share to Slack feature in my web app. Facing issue in showing the popup to select the receipients
- Stuck creating a Slack App for auto deleting profanity
- Slack does not render properly a suer by userID through workflow
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

This is described in a Slack API docs on shortcuts. You should go to https://api.slack.com/apps, pick your app and open application admin, choose Features -> Interactivity & Shortcuts, enable this feature, then "Create New Shortcut" in Shortcuts section.
There are basically two options for shortcuts: global and on message, pick message, Callback ID is an action identifier where application should filter your action.
You should add a shortcut listener in your application, if you are using Slack BoltJS framework, see the Listening and responding to shortcuts, use the "Callback ID" as an identifier for your application shortcut business logic.
You probably also enable a socket mode for your app or set an interactivity endpoint in a "Request URL" form, see the Sending and responding to actions.