Slack Send Block (w Block Kit) Message with Button Links resulting in 404 Error

Describe the problem/error/question

When using the slack node, if you send a button with a link to a URL, you get a 404 error when clicking it:

Noting the message at the top is when I sent the block directly from block builder to slack (no issue when button is pressed).

Message below is when n8n sends it to slack.

Am I missing something?

General code for button:

{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "(1) Please open contract draft and check schedule is correct."
			},
			"accessory": {
				"type": "button",
				"text": {
					"type": "plain_text",
					"text": "Contract Draft",
					"emoji": true
				},
				"value": "click_me_123",
				"url": "https://google.com",
				"action_id": "button-action"
			}
		}

What is the error message (if any)?

Error is on slack (as shown in the screenshot):

image

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.15.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: macos

Hey @pb84,

Am I right in thinking you posted this on Discord as well and have now got a solution for this?

1 Like

Solution: Need to add a webhook in the slack preferences

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.