From the course: Build AI Agents and Automate Workflows with n8n

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Authenticating Slack

Authenticating Slack

- [Instructor] Now we need to authenticate Slack with n8n. Here, under OAuth & Permissions, we have an OAuth token. I'll copy it. Then I'll go over into n8n. I'll add an additional trigger. So I'll start up here by saying Slack. Then I'll choose On bot app mention. In the settings, I'll go to Credential to connect with, use the dropdown, click Create new credential, and this is where I need to paste in that access token. Click Save. Connection tested successfully. That means everything is working. Then down here, I can choose which channel to watch, and this bot has access to general. And now I need to tell Slack where to send messages whenever this bot is mentioned and that's done using what's called a webhook. So up here it says Webhook URLs. Here we again have a test URL and a production URL. And if you go down here, you'll see it's exactly as before. So I'll copy the test URL, then I'll click Execute step. So now we are listening for an event. Then I'll go to Slack API, go to…

Contents