Describe the problem/error/question
I want the AI agent to search the channel it’s in to help answer the user’s questions about messages in the channel.
I’ve added the tool for the AI agent to search Slack messages, it has the scopes to search in the channel it’s in, but when I ask the AI agent a question about messages in the channel it does not use the search tool. The AI Agent responds with:
- “I’m sorry, but I can’t access or provide information about specific messages from a chat or channel unless they were shared with me in the course of our conversation. If you have access to the channel, you might be able to scroll back to see the first message yourself.”
- “I don’t have direct access to the chat history of your Slack channel. However, I can help search for Slack messages if the capability to access Slack via a specific function or plugin is available. If you would like me to perform a search, you can provide the details, such as a keyword, and I can search for messages based on that.”
How can I get an AI agent to listen to my messages in a slack channel, use what message history content is available in Slack, and respond to the user as if it was able to read the entire Slack channel messages? For example, one use-case is to help users understand critical things in Slack that the user may have missed during their workday. So they ask it, “What were the 3 most critical sounding things today?” and it answers them correctly.
Information on your n8n setup
Running n8n in the n8n cloud on free trial.