Slack button response to Webhook, no data?

Dear Community

I have a workflow where a list of document numbers are sent to a slack user, the slack user then wishes to clear those numbers and can do so by clicking a button that is in the message block, I have input the data into the “values” block which will send the entire input data for that slack node. see attached screenshot

However when the button is clicked the webhook node receives the get response butt there is no data being sent into the HTTP webhook in screenshot below:

If i change it to post it just wont trigger at all?

I just want the same data that was sent in the slack message to come back when the button is pressed. What am I doing wrong?

Describe the issue/error/question

What is the error message (if any)?

Please share the workflow

Share the output returned by the last node

[

{

“headers”: {

“host”: “pornhub.com:5678”,

“user-agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0”,

“accept”: “text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8”,

“accept-language”: “en-US,en;q=0.5”,

“accept-encoding”: “gzip, deflate”,

“connection”: “keep-alive”,

“cookie”: “rl_anonymous_id=RudderEncrypt%3AU2FsdGVkX19O9RBExOHhuWT6Mgm%2BCXx%2BLfCqjthykrCZVIH1SwiRoqLjSAKYDJdnt5oSiHYagxVQ6Of%2BCtJuQA%3D%3D; rl_page_init_referrer=RudderEncrypt%3AU2FsdGVkX1%2FGTO%2B0lHRNRVU2HZMZKjycsfZ7tG7Skis%3D; rl_page_init_referring_domain=RudderEncrypt%3AU2FsdGVkX189dBiCZp%2BQtUrTi22XzhLuFeakG%2BsrKu4%3D; rl_trait=RudderEncrypt%3AU2FsdGVkX1%2BQ3B5qbmQHAAoHz3TrJBGiEq4sXz6kFmdgSYVFOIzghSasyzCd1hXrXKyEXYZqEskPxstAWz49igde3575P7KJzIhxyUdQhaupbPOEwN%2BtOperoqX1SW6qQtTcr7DEaZC4AaXJ03dTZg%3D%3D; rl_user_id=RudderEncrypt%3AU2FsdGVkX1%2BavEphMcjBAM%2F9%2F7UnirQhj2dkOjBVO%2FXIZxc%2BmEQwIGrRrq041uKxrZwqbSxK4sGOh72V1XFyuiiSS6ZPEjHkdht9%2F7wEP4psjMAuMlpNwDGWeEB30R8GzrQknS014pzDUn0E%2BlvxZn3%2FELIaA8NN1Fqy66IHePg%3D”,

“upgrade-insecure-requests”: “1”

},

“params”: {

},

“query”: {

},

“body”: {

}

}

]

Information on your n8n setup

-Latest version of N8N on docker container.

So how can i achieve this?? what is the values box (for button) for???

Hi @Josh-Ghazi, iirc Slack uses two different URLs. One to send a user too after clicking your button and one to send the data too.

The one receiving the data is referred to by Slack as the “Action URL” or “Request URL” and can be configured like so:

This is documented here by Slack: Creating interactive messages | Slack

You would need to add a separate webhook node to receive such data in n8n.

2 Likes

great, let me try this and I will report back on my findings. so the button is just a link for the user to view?? if we set to POST http it should send the data in value box right??

Yes, pretty much. So you can optionally redirect users clicking the button to one location and then send your data to another location. Check out the developer documentation from Slack linked above which explains the concept.

1 Like

Thank you so much for your explanation!

1 Like