wise-white
wise-whiteβ€’2d ago

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
slack_agent = Agent(
role='SlackCommunicator',
goal='Check the channel name where the messaged was sent. Utilize Slack to communicate findings and updates to the team. Always send the findings to the channel name where the message was sent.',
backstory='An efficient communicator ensuring each channel stays informed.',
llm=allm,
memory=True,
verbose=True,
tools=tools2
)
slack_agent = Agent(
role='SlackCommunicator',
goal='Check the channel name where the messaged was sent. Utilize Slack to communicate findings and updates to the team. Always send the findings to the channel name where the message was sent.',
backstory='An efficient communicator ensuring each channel stays informed.',
llm=allm,
memory=True,
verbose=True,
tools=tools2
)
this is how i've created the slack agent
13 Replies
other-emerald
other-emeraldβ€’2d ago
Hey @Xenaroth, does it sends response to both testing and general channel??
wise-white
wise-whiteβ€’2d 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
other-emerald
other-emeraldβ€’2d ago
Okay okay, lemme check it out, will let you know asap πŸ™Œ
wise-white
wise-whiteβ€’2d ago
idk if the code im using its the best for the task
other-emerald
other-emeraldβ€’2d ago
Can you send me what tools you r using??
stormy-gold
stormy-goldβ€’2d ago
Also, sharing the logs might be helpful to see what action calls the agent did.
wise-white
wise-whiteβ€’2d ago
wait, ill share you the whole code
wise-white
wise-whiteβ€’2d ago
wise-white
wise-whiteβ€’2d ago
give me a sec so i can generate a new log for a task
wise-white
wise-whiteβ€’2d ago
theres the log. if you need anything else just tell me. Thanks a lot for the help πŸ˜„
wise-white
wise-whiteβ€’2d 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')
stormy-gold
stormy-goldβ€’2d ago
I don't see the channel in the agent run. How are you passing the same to the agent?
wise-white
wise-whiteβ€’2d 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