Keep in mind that a FLO like this will allow users within your Slack instance to access records and data that maybe they don't have permissions for personally. You can see that I dragged the Response URL from the Slash Command event card into the accompanying Response URL field within the Respond to Command - Delayed card, as well as the output from my Compose card. To finish this FLO, we need to add a a Respond to Command - Delayed card at the end. For reference, here's what my FLO looks like so far: With this card in place, you can now add any actions you need to take in order to craft the response in a Compose card. If you want to know why this needs to happen immediately, you can read about that here. Because of the way the Slack API works, the first action we need to add is the Respond to Command - Real Time Slack action. Now that you've got your Slack app and slash command setup, you can now get to work designing your FLO. Then, all you have to do is hit that button and authorize your app. Navigate back to that Basic Information section for your app, and expand the "Install your app to your workspace" section. The last thing you need to do within Slack is to install the app you just created. You can always create more slash commands within the same app, just remember that each slash command will need their own FLO and Slash Command event (and will therefore have their own Webhook/Request URL). Don't forgot to save your Command when you're done! In that Request URL field, you'll want to paste the Webhook URL we got earlier from the Slash Command event card. Fill out the Command, Short Description, and the Usage Hint as you see fit. Now we get to fill out the information about our slash command. Under "Add features and functionality," click on "Slash Commands." Once your app is created, you can go ahead and make slash commands for it. Note that the App Name you input here will show up in your slash command response, as you can see below. If you follow the link in that guide, or go straight there, the first thing you need to do is set up a Slack App that will contain your slash command. This process is also documented on Slack's website, but I'll walk you through the steps here as well. Now that we have that Webhook URL, the next thing you have to do is go into your Slack instance. To find get this URL, click on the icon in the lower right corner of the Slash Command card. After the FLO gets saved, you'll be able access its Webhook URL, which we'll need soon. Once you've got your Slack connection configured/authorized, and before we go to the next step, you'll need to save your FLO. In order to integrate your Slash Command with a given FLO that it triggers, you'll begin by making a FLO that is triggered by the Slash Command event. However, if you are not a Workspace Owner (nor have you been granted the ability explicitly by a Workspace Owner), when you attempt to add a Slack app to your Slack Workspace, a message will be set to the Workspace Owners, who will then be able to approve or deny the install of the app. If you are a Workspace Owner, you will not run into any limitations when setting up your Slack App/Slash Command. Like some of our more advanced connectors, you'll need to do some external configuration within your Slack instance to get everything up and running. This article exists to guide you through the steps required to set up Slack Slash Commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |