Questions tagged [slack-block-kit]

Block Kit is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack.

172 questions
2
votes
0 answers

PDF file in slack

I'm trying to add file to slack message in my interactive app using List in java I have PDF file in azure storage and link to the file that look like that https://azure.blob.core.windows.net/path/file.pdf I also have the file in File object…
2
votes
1 answer

Not receiving block_action payload when interacting with a Slack Block Kit modal

I've been working on a Slack bot to help handle emergency engagement for my team. It works really well, but all the configuration is in JSON files and it's time to make it "more interactive." The other day we ended up with an email storm that…
Timothy Grant
  • 141
  • 3
  • 10
2
votes
0 answers

slack unfurling link with attachment blocks included

So my goal is to include an image, with buttons, in a message. However, the file is not public and files_upload method takes away the functionality of the buttons, issue similar to this https://github.com/slackapi/bolt-python/issues/411. While…
cozzymotto
  • 83
  • 1
  • 2
  • 13
2
votes
2 answers

I am getting invalid_blocks_format while trying to post a message to slack

I am trying to post a message to slack using node.js but I got invalid_blocks_format error. In the slack API reference says that: this error occurs because of invalid JSON or wrong Block KIT syntax. I have checked both and everything seems correct.…
xxlali
  • 996
  • 2
  • 15
  • 43
2
votes
0 answers

Slack API triggering action event for element in input block

My Slack app sends a radio-button question to the users. The app is built using bolt-js. The radio buttons are inside an input block (ref: Slack Block Kit). According to bolt-js reference for the method app.action: ... Note that action elements…
dryairship
  • 6,022
  • 4
  • 28
  • 54
2
votes
1 answer

How can I add unfurl_links in Slack message

In the Slack message format example block below, how can I add unfurl_link option? { "type": "section", "text": { "type": "mrkdwn", "text": "New Paid Time Off request from \n\n
Sunday Ezeilo
  • 175
  • 1
  • 10
2
votes
2 answers

How to get the field value when clicking on a button on a Slack app?

I've studying Slack Bolt Framework and I created a very simple app that works with a slash command. When I type '/cep' the following screen appears: printscreen How can I get the input value field when I click the button? I'm usind Bolt Framework…
2
votes
1 answer

Slack Bolt Python: how to make the input field in modal optional?

I'm using modal to collect data. I opened a view by the following code: view = { "type": "modal", "title": { "type": "plain_text", "text": "My App", "emoji": True }, "submit": { "type": "plain_text", …
Rachel Dong
  • 179
  • 1
  • 3
  • 11
2
votes
1 answer

How to return selected option value of static_select block element in slack bolt

I am working with slack_bolt and trying to make different responses according to static_select in block element. How to print the value from selected_option? the block is like this { "type": "section", "text": { …
Solsupungi
  • 29
  • 2
2
votes
1 answer

Slack app opening new modal after previous modal submit is inconsistent, why?

I created a new free slack workspace to learn the slack bot app API. I have an action handler that listens to a global shortcut and opens an input modal in response. There is another action handler that listens to the modal input submit callback_id,…
danludwig
  • 46,965
  • 25
  • 159
  • 237
2
votes
2 answers

Slack Block-kit Multi_users_select Remove defaults app

I implemented a slack bot with um field of type input(multi_users_select). I would like to remove defaults apps from the list select? { type: 'input', element: { type: 'multi_users_select', …
1
vote
0 answers

Slack socket mode reconnecting

I am running a JS application which uses bolt to connect to slack via socket mode. I am running the application on a docker container and I noticed that the the socket mode connection disconnects after some time and reconnects on its own I see below…
Syed Irfan
  • 179
  • 1
  • 1
  • 6
1
vote
1 answer

Google Cloud Build Slack Notifier message "no preview available"

The problem: I have configure a "Slack Notifier" service in Google Cloud Run, following this guide: https://cloud.google.com/build/docs/configuring-notifications/configure-slack Every thing is working pretty well, builds are triggered automatically…
1
vote
1 answer

How to create message shortcut in slack app?

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? like this
1
vote
1 answer

Access slack files

I'm currently working on a Python Slack bot and I've encountered an issue with sharing attachments across channels. My goal is to have any texts and attachments sent by a student in channel A automatically shared in another channel. However, the…
Dummy Cron
  • 143
  • 2
  • 11
1
2
3
11 12