How to use webhook with slack?

Describe the question

So, I read docs, watched old youtube tutorial, and still didn’t get it… So I need webhook that takes new message in slack channel, how can I do it? Where to write request “channel_id”

Please share the workflow

Information on your n8n setup

  • n8n version: 0.189.1
  • Database you’re using (default: SQLite): PostgreSQL
  • Running n8n with the execution process: main
  • Running n8n via: Docker

Hey @shimaper,

What Slack documentation are you following?

Hi @Jon , this one: Incoming webhooks for Slack | Slack

Hey @shimaper,

In that case what you need is the HTTP Request node, You would need something like this…

But as that involves making a Slack app you could also just use the Slack node we have which might be easier.

Hello, I think this is post message, but I need to get new message from channel, I think I need something like trigger (webhook). Otherwise I can use cronjob and fetch all messages, but it is not common way to get new messages, right?

Hey @shimaper,

In that case the documentation you have been following is the wrong one, You will need the Slack Events API which you can find here: Using the Slack Events API | Slack

1 Like