Hi guys, i have a small problem with my slack trigger. When i use ‘new message posted on channel’ it responds perfectly, but when i switch it to ‘bot/app mention’ it doesnt respond, it doesnt hear it. do you know what is the problem with that? All needed Oauth scopes are added
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
you actually have to tell Slack to push that specific event to you. Go back to your Slack App dashboard, click Event Subscriptions in the sidebar, and under “Subscribe to bot events,” explicitly add app_mention. Once you save that, make sure to hit Reinstall to Workspace at the top of the page—if you forget that reinstall step, the new event won’t activate. Also, double-check that your bot is actually invited to the channel (/invite @YourBot), and it should start responding immediately!
Go to the specific channel where you are testing and type: /invite @YourBotName
Once the bot is a member of that channel, try mentioning it again. If it works now, that was the issue!
Tried it, still the same problem. The thing is that that agent will work on channels and on dm, so i added ‘im’ and when i send it message, it doesnt hear it, but it does respond once i switch it back to ‘new message posted on channel’. I even deleted it and installed it again and have the same problem
@Boca_Samood I guess again this can be linked to the permissions as if the BOT is working when it is tagged and not working when personally messaged then the problem will be the permissions again, i have it all turned on as permissions and everything works fine on my end.
Maybe creating new credentials might work. As everything works except direct messaging the bot so that can be the issue here and it might get resolved my refreshing credentials. @Boca_Samood
I’ve dealt with this before and i think there’s one permission you lack which is message:im,
once you do that it will start triggering your slack trigger.
I’m assuming you have done everything correctly apart from this, If you ned anymore help let me know as I’ve built a lot of slack apps and connected them in n8n before.
The above picture shows the correct setup, in the request URL paste the webhook url (Production) one and subscribe to those 2 bot events and you are good to go.
This should be your node configuration of the slack trigger.
And also as @Anshul_Namdev said you can go through the docs as well to get to know more about the Slack connection in n8n.
Let me know if you need more help !
Appreciate it @Boca_Samood !
Tried it, it still doesnt hear dm. At first it did, when trigger was new message posted on chanel, it was answering dm normaly, but when i switched to bot app mention, it doesnt hear dm
Hey @Boca_Samood Can you please also add any event in the trigger and also please navigate to “App home“ in the Slack API configuration page and please toggle on the “Chat Tab“ option, Then you’ll be able to chat to it in a separate window as you want it to be
yea, i did that, like i said it worked totaly fine when trigger was ‘new message posted on channel’, but the moment i switched to ‘bot/app mention’ it doesnt respond to dm’s
Great to hear it worked @Boca_Samood ! I might’ve misunderstood the issue right now , but I’m really glad the fix did the trick.
If it ended up helping you, feel free to mark it as the solution. It makes it easier for others with the same problem to find the answer quickly, and it also lets me know I was on the right track