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

What is going on with Slack blocks encoding & to & SOMETIMES

I'm getting inconsistent results from Slack API when using data with an '&' in the text. { "blocks": [ { "type": "header", "text": { "type": "plain_text", "text": "AT&T", …
Apps-n-Add-Ons
  • 2,026
  • 1
  • 17
  • 28
1
vote
0 answers

What is the best way to render more than 3 or 4 columns data in slack response in table like structure?

I have to render tables in Slack with more than 4 columns of data, and that should not break even when Slack is not full screen or a small resolution on the phone I explored various approaches on the web, googled, and even chat GPT but none of the…
Samdeesh
  • 905
  • 11
  • 23
1
vote
1 answer

Closing Slack Modal from AWS Lambda after data submission

I'm having trouble closing a Slack Modal from an AWS Lambda in NodeJs(14.x), getting a "We had some trouble connecting. Try again?" message. I have read several alternatives about returning an empty 200 ok message, but nothing seems to work.…
Anilkumar S.K
  • 107
  • 2
  • 6
1
vote
1 answer

Warning appears alongside Slack button after click

I'm using Slack and Slack Bolt to display buttons in a message, but those buttons are just used as links, redirecting to my web app. Whenever a user clicks a button, it works as intended but a warning icon appears alongside the button. This issue is…
FE-P
  • 69
  • 8
1
vote
1 answer

how to add colorful vertical bar in Slack message using Python

I'm using slack-sdk in my Python project and trying to send the message to Slack. The message was successful but I do not see any color. My intent is to add colorful vertical bar based on different code coverage in the If-Else condition. Here is my…
vinod827
  • 1,123
  • 1
  • 21
  • 45
1
vote
1 answer

Github Actions: how to return empty string if ${{ toJson() }} returns null?

Here's my GitHub Actions .yml script that will send a notification to Slack when a Pull Request is open, commented, merge & close, or close. name: Pull Request Notice on: pull_request: types: - opened branches: - 'main' …
kenfai
  • 393
  • 5
  • 13
1
vote
1 answer

Create modal in slack using python

I am using the python slack bolt. https://api.slack.com/start/building/bolt-python#create I created the example in the link and was able to make a home tab page but I want to create a modal from a message in a channel, not a home page view. I have…
1
vote
1 answer

How to diagnose the slack bolt messaging 404 error

I am trying to launch a modal for my slack app. The modal has to be launched on click of a button from the base message section. I am using slack block builder ( https://www.blockbuilder.dev/) package to construct the json. The bolt app has the…
Rajesh
  • 419
  • 1
  • 6
  • 20
1
vote
0 answers

How to post new message to slack after receive response from interactive button

I feel like I am missing out some parts, but I could not figure out and will require some help here. I have a slack button to receive user's response and this response will trigger another block message and I intend to send this block as a new…
VomitCat
  • 13
  • 4
1
vote
1 answer

Slack API: Interactivity components not do not work posting message as real user

I'm trying to include block kit interactive components such as textboxes and buttons in a slack message that is sent via the API. The buttons work perfectly when the message is sent by the bot and not impersonates a real user. But when posting as a…
Zappatta
  • 422
  • 7
  • 15
1
vote
1 answer

Slack Block Kit Plain-Text input element update text value

Im currently writing a small Slack App in Python using Bolt. Im creating a Modal in response to a slash command which consists of a few Plain-Text input fields and two date pickers. On one of the text input fields i set dispatch_action to True and…
Ezra Knobloch
  • 91
  • 1
  • 10
1
vote
1 answer

How to add condition to add a mandatory input field for the user in slack bot using python?

I am creating a slack bot in python using slack bolt. I have created a form like structure for the user to provide input values but I need to specify some inputs as mandatory. I tried using the "optional":true field but did not get any result I need…
Gavya Mehta
  • 211
  • 6
  • 20
1
vote
0 answers

Slack blocks nested bullet point list

I need to send a API request to slack with a message containing a nested bullet point list. I've found the following answer to a existing question: https://stackoverflow.com/a/68483110/16659015 but sadly this only shows a normal bullet point list…
Tamino
  • 25
  • 4
1
vote
1 answer

Nothing displayed when sending an "errors" response action to Slack when block has multiple elements

I have a block in a Slack view that looks like this: { "type": "actions", "block_id": "start_block", "elements": [ { "type": "datepicker", "placeholder": { "type": "plain_text", "text": "Select a date", …
1
vote
1 answer

Slack block markdown syntax not working in hashtable

I'm generating a Slack message using a hashtable in Powershell. Here is how the hashtable is generated: $serviceitems = foreach ($r in $rows) { @{ type = 'section' text = @{ type = 'mrkdwn' text =…
mdailey77
  • 1,673
  • 4
  • 26
  • 52
1 2
3
11 12