Questions tagged [slack-commands]

This tag can be used for questions specific to slack 'Slash Commands'

225 questions
2
votes
1 answer

Handle button click events in Interactive messages using Slack API with Python Flask

I am trying to build a Slack app where when a message is sent with a command, an ephemeral message with two buttons Confirm and Cancel is shown. If the user clicks on Confirm, the message should be sent and if they click on Cancel, it should be…
Priyanka
  • 136
  • 1
  • 2
  • 13
2
votes
0 answers

This workspace is not eligible for the next generation Slack platform

I am trying to create a slack app, and learn more about the slack api. while following the quick start. I ran into this error after entering my authorization ticket into my slack workspace This workspace is not eligible for the next generation Slack…
Ishaan Adarsh
  • 197
  • 1
  • 11
2
votes
0 answers

Slack API error 403 on modal interactions even though it accepts slash commands

Background: I am using two features from slack API: slash commands and interactions. I have a service that handles both when Slack API redirects. The problem is: slash commands are accepted and redirected by slack to my service with no issues: I…
Hassan
  • 946
  • 8
  • 6
2
votes
2 answers

Getting API error occurred: account_inactive when using Slack Postmessage api to send message to slack user

I am building a slack app that would send messages to user. Recently I am getting an error which says "account_inactive". The slack documentation describes the following error as below Authentication token is for a deleted user or workspace when…
Keshav S
  • 33
  • 5
2
votes
2 answers

Slack bot can't send a message to a channel with - or space like "channel-name"

my slack bot can't send a message to a channel with space or - like "channel-name" but works well for a one word channel. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://slack.com/api/chat.postMessage", …
kriscondev
  • 765
  • 7
  • 21
2
votes
1 answer

Getting dispatch_failed error in slack when using slash command

So I have been trying to make a very simple slash command since last 3 days that just triggers a lambda function using an api gateway. The lambda function is quite simple too. I am following the below tutorial to make…
Faisal Shani
  • 698
  • 1
  • 13
  • 37
2
votes
1 answer

How to set Slack reminder for last day of every month?

I need to complete timesheet of work until midnight of every last day of month. Since it's easy to forget, I want to set reminder on say 1PM of the last day. What's the correct syntax to configure it? All my attempts either don't work or are…
Tomáš Záluský
  • 10,735
  • 2
  • 36
  • 64
2
votes
2 answers

Set Slackbot a reminder for every weekday except Wednesday

I'm looking for something like /remind @channel "It's time for daily stand up !" Monday Tuesday Thursday Friday at 11:45am. Click here to join: Link.
Delly
  • 123
  • 1
  • 10
2
votes
1 answer

Verification of Slash Commands using Bolt-JS

I'm currently writing a Slack bot using BoltJS and wanted to add verification using the integrated verify() method, which needs the signing secret as well as the incoming request. The problem is, that commands triggering the app.command() method do…
kevkö
  • 23
  • 1
  • 3
2
votes
0 answers

Opening a new Modal after form submission Slack Bot

So I've created a slack bot that opens a modal with a form on it. When the form is submitted, I want another modal to open or the same modal to update saying form submitted successfully! For some reason the second modal doesn't open up. I've tried…
jbone
  • 71
  • 3
2
votes
1 answer

How can I schedule an action like changing status without a cron job in slack api

I am writing a slackbot and it involves scheduling change of status at certain times set. I found the below API to update status but looks like I need a chron job to look up the time POST /api/users.profile.set Host: slack.com Content-type:…
leo
  • 103
  • 1
  • 10
2
votes
1 answer

Slack bot posting in a conversation without being in it

Everything I see around slack bot say that a bot cannot post within a conversation it's not been invited to. ➡️ However, why /giphy or simple poll (/poll) can post in PM (one to one) OR in a conversation where the bot has not been added to? The…
Hugo Gresse
  • 17,195
  • 9
  • 77
  • 119
2
votes
2 answers

How to close a modal in slack?

I am using apex to invoke the modal in slack and a bit confused on how to use the response_action for closing it. { "response_action": "clear" } Do I need to make an HTTP request and if yes what will be the endpoint and what will be the structure…
2
votes
1 answer

Open modal using Slack command

I have a Slack command which displays a button. When I click on this button I need to display a modal. For this, after clicking it I do this: const dialog = { callback_id: "submit-ticket", elements: [ { hint: "30 second summary of the…
Dani
  • 3,128
  • 2
  • 43
  • 91
2
votes
1 answer

Why chat.postEphemeral returns error channel_not_found if for direct message channel?

I am building a Slack App which shows an ephemeral message to users if they use my custom slash command anywhere: direct messages, public channel or private channel. It all works on public channels and private channels (where the bot is invited),…
Bart
  • 53
  • 6
1 2
3
14 15