Slack agent doesnt respond on trigger bot/app mention

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.)

Share the output returned by the last node

Information on your n8n setup

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

Hello @Boca_Samood ,

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!

tell me if you need any further help!

Thanks, I tried it now, and it still doesnt work. Is it problem because its supposed to watch whole workspace?

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

Hi @Boca_Samood Maybe this is a permission related issue have you tried giving all the permission the bot needs?

hi, it helped, but now i have different problem, now bot answers when its tagged, but it doesnt execute on dm with it. I gave it ‘im’ options

1 Like

@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.

i had no luck with it. i deleted some premissions and installed them again and still it doesnt read private messages with it even when tagged

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

Hey @Boca_Samood Welcome to the community!

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 !

1 Like

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

1 Like

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

Hey guys, i fixed it, i added both options in trigger and in filter i added this

1 Like

Great to hear it worked @Boca_Samood ! I might’ve misunderstood the issue right now :sweat_smile: , 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 :slightly_smiling_face:

1 Like

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