Dev-Diary 3 — Building an AI Agent at Netguru

Dev-Diary #3 - slack problem

Can you spot the problem on the image? I want AI Agent to be able to search for messages in the channel.

graph

Why supported token type is only “user”? AI Agent is an app, so it cannot use this scope.

For now I created a bypass, just fetch messages and regex to find a query. But it is so inefficient, that my heart hurts. Do you know better way to do it? Iterating on channel history doesn’t seem like a good idea. Maybe someone with Slack API experience knows how to approach it?