Upsy Don't response in channels
Hello!
I just did the deployment of Upsy in my slack, if I send direct message to the app it responds me successfully, but if I add it to a channel and tag it it does not respond me. The strange thing is that if you have the information in its memory I get to upstash and are my channel messages, Solo does not respond or I get any message.
I hope you can help me.
2024-03-07T16:20:16Z app[e82d4ddc064318] iad [info]Espero que esto sea de ayuda. Si necesitas más asistencia, no dudes en preguntar.
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]isItQuestion:false
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]adding document:Es cobre una prueba de concepto with metadata:[object Object]
2024-03-07T16:20:17Z app[e82d4ddc064318] iad [info]Success
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]NEW MESSAGE
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]{
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] user: '--------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] type: 'message',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] ts: '',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] client_msg_id: '----------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] text: 'ayudame a resumirlo <@-------->',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] team: '----------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] thread_ts: '17098280.540099',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] parent_user_id: '---------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] blocks: [ { type: 'rich_text', block_id: 'mtK0h', elements: [Array] } ],
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] channel: '-------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] event_ts: '--------',
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info] channel_type: 'group'
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]}
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]ayudame a resumirlo <@------------>
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]isItQuestion:false
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]adding document:ayudame a resumirlo <@---------> with metadata:[object Object]
2024-03-07T16:26:45Z app[28756dec0203d8] iad [info]Success
what I find strange is that in the isItQuestion flag it appears as false
Thanks
Hello. Can you try sending the following message to the channel and see if it is responding or not:
Upsy how are you?
I tried it, but from the channel it does not answer anything, neither in the channel nor in the channel thread, if I send a DM if it answers me, but in other places it does not.
From channel thread
From channel
From DM
I closed it by mistake, but I'm still with the issue 😢
@intjose can you share the full logs from your fly console when you ask from channel?
sure @enesakar this is the log from the channel asking Upsy How are you?
2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]NEW MESSAGE 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]{ 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] user: '-------------', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] type: 'message', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] ts: '1710351878.950979', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] client_msg_id: '---------', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] text: 'Upsy how are you?', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] team: '--------', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] thread_ts: '1709827317.288799', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] parent_user_id: '------------', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] blocks: [ { type: 'rich_text', block_id: 'jKbok', elements: [Array] } ], 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] channel: '------------', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] event_ts: '1710351878.950979', 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info] channel_type: 'group' 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]} 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]Upsy how are you? 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]isItQuestion:false 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]adding document:Upsy how are you? with metadata:[object Object] 2024-03-13T17:44:39Z app[e82d4ddc064318] iad [info]Success
@intjose it looks it thinks it is not a question. this is weird. In index.js can you replace:
isItQuestion = await llm.isQuestion(msg);
with
isItQuestion = true;
It should solve the issue but this time, upsy will start commenting all messages.
Ideally, we need to debug isQuestion method in llm.mjs.