[Solved β ] Slack/Slackbot issue
hello there! im having a little trouble, not sure if its from composio slack/slackbot tools, or if its slack itself. i have deployed my agent on 2 channels, called general and testing. when i call the agent on general, he answers on general,but when i call it on testing, he first answers on testing (i'll look for x)but then he sends the answer to general channel. i've specified to the agent to always answer on the channel where it was asked, but its still sending to general
this is how i've created the slack agent
13 Replies
unwilling-turquoiseβ’6mo ago
Hey @Xenaroth, does it sends response to both testing and general channel??
extended-salmonOPβ’6mo ago
when i ask on the testing channel the bot says: "I've received your request. I'm working on it now..." on testing channel
that is the default answer it gives before working with the agents
after that, it does its stuff, generates an answer, and post it on general channel
unwilling-turquoiseβ’6mo ago
Okay okay, lemme check it out, will let you know asap π
extended-salmonOPβ’6mo ago
idk if the code im using its the best for the task
unwilling-turquoiseβ’6mo ago
Can you send me what tools you r using??
like-goldβ’6mo ago
Also, sharing the logs might be helpful to see what action calls the agent did.
extended-salmonOPβ’6mo ago
wait, ill share you the whole code
extended-salmonOPβ’6mo ago
extended-salmonOPβ’6mo ago
give me a sec so i can generate a new log for a task
extended-salmonOPβ’6mo ago
theres the log. if you need anything else just tell me. Thanks a lot for the help π
extended-salmonOPβ’6mo ago
just in case. previously, ive used the tools_slack instead of tools2 for the slack agent, on my last atempts i switched to the whole actions just to test if i was just not picking the correct set of tools, but it was the same u.u
im aware that the goals, backstory, description and expected output can be improved, but i don't think that it influences the channel behaviour (and sorry if my english isnt great, its not my first language n.n')
like-goldβ’6mo ago
I don't see the channel in the agent run. How are you passing the same to the agent?
extended-salmonOPβ’6mo ago
no, im expecting the agent to extract himself the channel where its being called
i guess i should somehow extract on which channel he's being called, and pass it as part of the user_input, or in a separate var ?
lol, it was as simple as that xD
thanks a lot for the help
i guess it has some limitations of how it can infer the things it has to do