https://discord.gg/botpress logo
Slack integration outputs two messages - erroneous...
# 🤝help
p
Hello everyone! I am trying to build a pretty simple support bot for our staff to ask questions to on Slack. In order to keep Slack not-too-busy, I want the Slack integration to reply in thread and only reply if asked. In the screenshot you can see me summoning the bot at 15:11 (1) - however, the bot delivers two answers, one as a thread (3), one as a channel message (2) - they are also not the same. The flow is Start > Process_Request (in the node is a card that gets triggered if the Knowledge Base doesn't have an answer) > Share_Missing_Knowledge (webhook to save my missing answers somewhere) > End Pastebin from logs is here: https://pastebin.com/64Rip5Ex Why is Botpress resgistering two requests? In the integration settings, Typing Indicator, Reply Threading Enabled and Require Bot Mention for Reply Threading are all turned ON. The support bot - invents a fourth "“Reply as a thread”" option -> upon closer inspection that's the "Reply Threading Enabled" option. - suggests adding a stop node -> there is one - verify permissions -> those are set properly Any idea how to troubleshoot this? https://cdn.discordapp.com/attachments/1445065688870817812/1445065689223135282/CleanShot_2025-12-01_at_15.13.10.png?ex=694415cc&is=6942c44c&hm=d46f1de6801b7350b64a3221e4d71e574ff64fac87f3a2f3a3e71e229c013a64& https://cdn.discordapp.com/attachments/1445065688870817812/1445065689772724396/CleanShot_2025-12-01_at_15.20.00.png?ex=694415cc&is=6942c44c&hm=7b97c166752ac66b0d5108448bb7d90e1f473f320ca026bd3105b222564e05a1& https://cdn.discordapp.com/attachments/1445065688870817812/1445065690548801692/CleanShot_2025-12-01_at_15.45.11.png?ex=694415cc&is=6942c44c&hm=804e6c94a79f022e350375a651a5306d7e5a458364d7d5fa14d46523dd37636b&
l
Doing some digging will get back when I get some insight!
You need to configure your slack api events - Manually add app mention + message channels, in your slack config - Also add event.channel === 'channel'. (see screenshots) - In the slack integration under info, I recommend following the manual config not OATH (see instructions) it may take some time. https://cdn.discordapp.com/attachments/1445065688870817812/1445099986667704422/image.png?ex=692f1dbd&is=692dcc3d&hm=e95da36bd64e8efdbd8d32e2fa6e0325ece742e88d261e2362e368c3c75ea591& https://cdn.discordapp.com/attachments/1445065688870817812/1445099987439718542/screenshot_2025-12-01_at_12.png?ex=692f1dbd&is=692dcc3d&hm=ae79f8bebb8966d7a2576a2782f8377d64cace9d6d29d1e606eae0e2529537fe&
p
Hey @loud-crowd-60573 - thanks so much. That did it. For info: I toyed around with expressions to only forward the flow IF a message is a tagged message, or a DM and so on, which didn't work reliably. Your approach of essentially approaching this as a negative condition actually works. Oauth never worked for my Slack instance because I am not an admin, so it was manual all the way. Thanks. Finally, I feel like it could be a great update to allow botpress to specifically only listen to app_mention instead of filtering because, right now, every dang message on a channel triggers an API call. That seems a not-great use of resources.
Actually @loud-crowd-60573 - I didn't test thoroughly. It works in the way that the only reply happens in a thread. However, it will also reply in any thread, even it it was never tagged. Do you have documenation somewhere on what yesterday's Slack integration update changed?
l
Just pasting this for now: intver_01K9SVH3TAAAESS8WYNXZWYVES
p
Just documenting the behaviour further: 1. I post a message and tag my bot 2. it replies as it should ✅ 3. I post a message without tagging my bot. The bot ignores it ✅ 4. I write a reply as a thread in that message (without tagging the bot): 5. Bot replies ❌ Screenshot below