This article demonstrates configuring and sending a URL button to a specific Slack channel using Quickwork.
What you'll need:
Skill level: Easy
Time required: 5 minutes
- Trigger: Scheduler by Quickwork
- Slack action: Send message on button click
- A channel in your Slack account
What is a URL button
A URL button is embedded with a text and webpage URL of the user's choice. Upon clicking, the associated webpage opens in a new window.
Let's try sending a URL button of a webpage to a specific Slack channel.
Configuring the trigger
- Under the Event section, choose the Scheduler by Quickwork app from the drop-down menu in the Apps list present right below the New Trigger button.
- Select the trigger event, New scheduled event, from the drop-down menu in the Triggers field.
- Set the Interval as per your choice based on how often you want the journey to be executed. E.g., 15 seconds.
- Set the date and time of your choice in the Start At field and keep the Custom Payload field empty:
Configuring the action
- Under the Steps section, click on the Simple Action button and choose the Slack app from the drop-down menu in the Apps list.
- Select the Send message on button click action from the drop-down menu in the Actions field.
- Click the Link an account button to establish a new slack connection. By allowing the permissions, your Slack account gets connected successfully.
- Upon successful connection establishment, the input fields will open.
- In the Channel input field, select the channel to which you want to send the buttons. E.g., mypersonal.
- In the Basic text field, enter the information you want to associate with the URL buttons. E.g., For more information, visit the blog page:
- Ignore the Block field since it is used in the case of sending the postback buttons.
- In the Attachment title field, enter the name of the button. E.g., Blog.
- Enter the URL in the Attachment title link field to which the users must be redirected upon clicking the button. E.g., https://couchscripter.medium.com.
- Ignore the rest of the input fields:
Executing the journey
Save the changes of the journey and click the Save & Start button. You'll be redirected to the History window. Now go to your Slack channel. You'll see the URL button that we configured:
Now, clicking the Blog button will redirect you to the associated webpage.
Similarly, you can send a message to a user on Slack. Simply use the Send message to a user action instead.
Comments
0 comments
Please sign in to leave a comment.