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
13
votes
2 answers

How do I post a bulleted list using the slack api

Background I am trying to use the slack bolt jdk along with the following dependencies: // Slack bolt SDK implementation("com.slack.api:bolt:1.8.1") implementation("com.slack.api:bolt-servlet:1.8.1") …
Arnab Datta
  • 5,356
  • 10
  • 41
  • 67
12
votes
0 answers

How to use the type "expandable" correctly?

Question How to use the type "expandable" correctly? Description I have a batch that runs every hour and sends some stats to our slack. Each JSON output can be quite large and I'm looking for a way to have it collapsable/expandable. I was playing…
kemicofa ghost
  • 16,349
  • 8
  • 82
  • 131
11
votes
1 answer

Can you use slack buttons non-interactively?

While using Slack's block kit builder, I created a message that would send a notification as well as a link for the user to click on. I like the way the default button looks, but I get a warning whenever I click it saying my app isn't configured for…
joe
  • 275
  • 1
  • 11
5
votes
1 answer

How do we mention or tag someone in using Slack's Block Kit Builder?

I tried creating slack's block kit builder, the desired design were actually fine. But I don't know where to find a button so we can tag a someone on it. I have here an attempt to tag a person named john but unfortunately it only generated a plain…
tempra
  • 2,455
  • 1
  • 12
  • 27
5
votes
2 answers

Extend slack bot menu color bar across full message (node, slack block kit, slack api)

I have a slack bot that uses a menu drop down, and it has a color bar on the side. See the screenshot of what I have here in the green circle I want the bar to extend the whole message like this image Note: This image is edited to show the example…
CME
  • 51
  • 1
  • 4
5
votes
2 answers

Slack API - how to send multiple images so they are shown in a gallery

When I send multiple images via api using blocks like this: { "blocks": [ { "type": "image", "title": { "type": "plain_text", "text": "Please enjoy this photo of a kitten" …
bezl
  • 131
  • 1
  • 5
4
votes
2 answers

Slack Block Kit ordered and unordered lists?

I'm experimenting with the Slack Block Kit, that supports markdown syntax. I'm trying to insert a numbered or bulleted list into the editor and can't seem to figure out how that works. Is there any way to achieve this? Here is an example payload: { …
Xen_mar
  • 8,330
  • 11
  • 51
  • 74
4
votes
1 answer

Slack blocks with more than 2 columns

I've a question regarding the blocks functionality in Slack. Did anybody manage to build 3 instead of 2 columns? I've intuitively tried the following code, which does not work: { "blocks": [ { "type": "header", …
Freude
  • 819
  • 1
  • 10
  • 18
3
votes
0 answers

How do I add a file upload functionality in Slack app?

So here is my use case. I have to create a Slack app in which the user should be able to enter some details and upload a file on the press of a button The file will be saved on s3 bucket via a post request, however I do not know how to implement a…
3
votes
0 answers

Construct URL dynamically in "Send Message" step of WorkFlow

Tring to append response variable "hash" to a base url. For example... Base = "https://Google.com" Variable = 'xyx123' ... then send message of (Base + variable) in URL format. Is there a way to do this? I feel I have tried just about…
Logan McNulty
  • 73
  • 1
  • 7
3
votes
1 answer

How can i make check boxes in slack app home selected be default

Slack lets you build a UI quite easily using block kit builder, including adding checkboxes: How do I make all checkboxes selected by default on (using JS)? Is there anyway to make even 1 check box selected when user opens app home? If I can do one,…
Billies Wesley
  • 437
  • 1
  • 6
  • 21
3
votes
1 answer

is it possible to change a slack bots image & name when sending messages

I'm trying to build a slack bot that will post messages as various celebs; so message will appear at first glance to come form someone famous with their image. This isn't working. I managed to change the bots name&image but messages sent were going…
Billies Wesley
  • 437
  • 1
  • 6
  • 21
3
votes
0 answers

Can I use Json to build a template and integrate it to my app to make the Slackbot more presentable?

The current template looks like this: enter image description here This is the code used to build this "Send secret message": import ( "fmt" "strings" "github.com/google/uuid" "github.com/pkg/errors" …
2
votes
1 answer

How to make a mention to a user in a slack message from Workflow Builder when the username/ID comes from a vairable

I'm trying to make a workflow for my slack team where I have this steps: (with workflow builder) Starts when user clicks on the shortcut in a channel Opens a form - we ask many questions, one question has multiple fixes choices Select row from…
2
votes
0 answers

Slack webhook API ignores icon_url value

I have created a hooks.slack.com/services webhook for Slack. This is done as a custom app, as is recommended by Slack as the correct way to do this in 2023. This hook participates in the following flow: AWS SNS event -> Lambda -> Slack hook ->…
8bitjunkie
  • 12,793
  • 9
  • 57
  • 70
1
2 3
11 12