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
1
vote
0 answers

I would like to use Blocks instead of Attachments in my Slack App but the app fails to return the message

I recently made my first Slack app - a sort of Tech Support FAQs tool for my workplace workspace. I originally wanted the responses to be much more complex using the Slack Block Kit, and having trawled the documentation on the Slack API site it…
1
vote
0 answers

Trying to see if I can run the same Slack message payload multiple times in Google scripts via data from a spreed sheet

I have a spreadsheet of data where I pull data from an array of data. After I declare the data, I run the code and it sends a message to slack using their block kit. Issue is I have to manually input what values of the data should be. I was…
1
vote
0 answers

How to use the block "select menu with external options" while using the socket mode in slack bot?

So I have created a slack-bot using the bolt-python framework and I have enabled socket mode for better security as it won't expose public endpoints. This bot is intended for my company to integrate it's APIs with slack. The internal API should send…
1
vote
0 answers

Linter for Slack Block Kit

when sending blocks to Slack some rules apply. Currently I'm aware of two: hard rule - max 50 blocks in a single message (https://api.slack.com/reference/block-kit/blocks) soft rule/hint - send a text as fallback with your blocks I'm sure there…
Nachtgold
  • 539
  • 1
  • 6
  • 27
1
vote
0 answers

Responding in thread to a slack workflow post

My goal is to have my bot respond in thread to a workflow post in the channel. The response will be based on what is inside of the workflow post. For example, the workflow post will contain Topic:Canvas Data and the bot will respond in thread. Here…
Kyle Cole
  • 41
  • 5
1
vote
1 answer

how to clear slack input element after submission?

I have a slack input element that I want to clear after user has submitted it. Is that possible? the block: { dispatch_action: true, type: "input", element: { type: "plain_text_input", action_id: "some-action-id", }, …
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
1
vote
1 answer

Slack Actions API not sending entire payload

I'm building a slack app using the slack Bolt API, and I want to open modals from my App's home page when a button on the home page is clicked. Here's the relevant bit of the action listener that is connected to the…
MrMystery
  • 13
  • 3
1
vote
0 answers

Slack API won't generate bulleted list layout

I'm trying to send a bulleted list as a Slack message. However this structure is pretty verbose (as explained in this answer) and for some reason I get an invalid_blocks error as a response. RichTextBlock.builder() .elements( listOf( …
GalAbra
  • 5,048
  • 4
  • 23
  • 42
1
vote
0 answers

slack block add confirmation only for one option in static_select

Is it possible to have confirmation dialogue just on any one options from slack's static_select? I'm at the situation where i have static_select drop-down with 3 options send, duplicate, delete. And i just want confirmation dialogue to show up only…
1
vote
1 answer

Use slack modal to update message

Here's my need : I want that, depending on a user's message (for instance, a message with an url, or some code, ...), a modal window (or an ephemeral message, or whatever) allows the user to select some keywords. These keywords will be added to the…
Julien.h
  • 11
  • 2
1
vote
0 answers

Request URL not being hit from interactive button Press in slack

I am wanting to create a slack app that listens for a message to be posted by a user and then responds with an ephemeral message for that user in the channel with some suggestions and buttons. I have a lambda subscribed to the Events API and it is…
Thomas S.
  • 85
  • 10
1
vote
0 answers

Is it possible to preview a Slack Template built with the block kits in app?

We have been building a slack alerting feature made available to our users. At the moment they have to format the template by themselves using the slack block kit and to test it they can send the message via our bot but as you can imagine it's very…
1
vote
1 answer

Format an f-string for each dataframe object

Requirement My requirement is to have a Python code extract some records from a database, format and upload a formatted JSON to a sink. Planned approach 1. Create JSON-like templates for each record. E.g. json_template_str = '{{ "type":…
jconnor198
  • 13
  • 3
1
vote
1 answer

Prevent Slack from sending requests after each radio button click

I have a form with multiple inputs on Slack. Radio buttons appear to work as 'Submit' buttons. I want to send the form at the end when pressing the Submit button. Code example: { "blocks": [ { "type": "section", "text": { …
Alex Busuioc
  • 992
  • 1
  • 11
  • 24
1
vote
2 answers

Passing additional data to the action listeners along with the block_actions payload in Slack Bolt python

I am new to Slack APP development, I am developing the app using Slack bolt python. In my app I have configured the slack interaction using the button click, on clicking the button I am calling the corresponding listener(identified by action_id…
R_M_R
  • 31
  • 6