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
0
votes
1 answer

Messageback like feature of Adaptive Card in Slack BlockKit

I am trying to implement messageBack feature of Adaptive Card in Slack Builder Kit where on clicking of a button I can show a default response of the bot before the response comes from the API. This could be implemented in Adaptive Card using…
Codez
  • 35
  • 7
0
votes
0 answers

Slack command using AWS and modals (trigger_id expired)

The set-up: We built a slack service that quickly posts a slack slash command payload to AWS (slack slash command request URL hits AWS API Gateway). API Gateway quickly responds to Slack (within 3 seconds). We use the slack payload (channel_id,…
0
votes
1 answer

is there a reason why a notification script would suddenly start throwing out Slack API Code 400: Invalid Blocks?

I've had this script working for over 3 months with no issues, however, last week it started throwing out this: Error Exception: Request failed for https://hooks.slack.com returned code 400. Truncated server response: invalid_blocks (use…
0
votes
1 answer

Slack Block checkboxes

i'am using slack block in a channel using python and webhook. Messages are sent and arrived perfectly, the messages contains text and also checkboxes. When user check a checkbox only that user can see the checked checboxes and not all other user in…
Vittorio
  • 1
  • 1
0
votes
2 answers

Slash commands in Slack

In SLACK, Is it possible to create commands for an app which post messages to different channels? This is what I am trying to achieve: I run a Slash command from my DM which will post a message in a channel, which I am not a part of. A member of…
0
votes
1 answer

Get values from nested object with dynamic ids - javascript

I'm recieving a payload from SlackAPI (block elements) and I can't get my head around oh how do I get data from it as ids and order always change. I want to get protection_fee.value, legal_fee.value and repayment_date.selected_date "state":…
Andrey
  • 3
  • 2
0
votes
1 answer

"Error 405 Method Not Allowed" when trying to use ngrok as Request URL for slack

I've been trying to make a slack Bolt App, but keep running into problems using socket mode. I looked into turning off socket mode and instead using a request url, but Ngrok, Vortex, and other services made to handle HTTP requests all seem to fail…
Epicmine9
  • 9
  • 2
0
votes
1 answer

How do you send HTTP POST Requests from a slack app in socket mode?

I am currently creating a bolt slack app with JavaScript that needs to send out an HTTP POST request to an external webhook when a button click occurs. Sending data to my slack app from external sources is simple enough using the slack webhook…
Epicmine9
  • 9
  • 2
0
votes
1 answer

client is null on app.action in Slack both using Bolt for Javascript

I'm developing a Slack bot using Glitch and Bolt for Javascript. I'm opening a Model with two button (Approve and Reject), everything works up to where the user clicks on Approve and the app.action is reached but client is null and I need to send it…
polonskyg
  • 4,269
  • 9
  • 41
  • 93
0
votes
1 answer

Sanitize GitHub context in GitHub actions

I'm trying to write a slack notification bot to trigger off of GitHub pull requests, but I'm running into a sanitization issue I have an action defined as follows name: slack-notification on: pull_request: types: [closed] jobs: …
Rushabh Mehta
  • 1,529
  • 1
  • 13
  • 29
0
votes
1 answer

slack files & url with headers

I'm building a slack bot (python/slack-bolt). Trying to share a private image within the app home tab. The home tab is genereted using client.views_publish. { "type": "image", "title": { "type": "plain_text", "text":…
0
votes
1 answer

Slack client.views.update not maintaining selected input values

I am updating slack modal view but it doesn't maintain selected dropdown values, on every update modal is getting reinitialized. I want to select dropdown one and based on selection looking to populate dropdown two and on update all selected values…
0
votes
2 answers

How to create zoom like response in slack bot message using block kit?

I have used zoom integration with slack. When I send /zoom command the bot responds with a new meeting link in a box layout that looks really good. Note the bordered box below "Call" However I am not able to create similar box layout with border…
Izhar Aazmi
  • 915
  • 12
  • 25
0
votes
1 answer

Python to post and format API response data into Slack channel

Working on a script to present data in Slack channel.. I have a script I'm working on to request and return data that I need to post in the channel that gets invoked with a Slash command, but having an issue with presenting the data in the slack…
0
votes
1 answer

Add custom ui to account details using a slack app

Im new to slack app development and did search for a while now but the most customizable ui elements that i found so far were those listed in surfaces. What i would like to do is add a new ui element to the account details you see when clicking on a…
Ezra Knobloch
  • 91
  • 1
  • 10