I've created a slack bot, and it sends messages to a channel. I've added a button, and what I'd like to accomplish is having the button redirect the user to an external website.

Is this possible?

The documentation does not indicate you can simply add a URL to the button. Below is the actions array I'm using in the slack bot. It would be awesome if you could.

  "actions": [{
    "name": "Go to order",
    "text": "Go to order",
    "type": "button",
    "value": "Go!"
  • Programming related questions would be better placed on stackoverflow, which also has a big Slack community Commented Feb 19, 2018 at 12:59
  • mark it as accepted, or move it off this part of stack exchange ;)
    – zero_cool
    Commented Feb 19, 2018 at 23:48

1 Answer 1


Try Slack's Link Buttons, which specifically open links in new browser tabs when clicked.

    "text": "Test Link Buttons",
    "channel": "C061EG9SL",
    "attachments": [
            "fallback": "Test link button to https://slack.com/",
            "actions": [
                    "type": "button",
                    "name": "file_request_123456",
                    "text": "Test",
                    "url": "https://slack.com/",
                    "style": "primary"

Slack Message Builder example

  • 1
    @zero_cool If this answer solved your question, please consider marking it as solution. Thank you. Commented Feb 19, 2018 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.