upsy icon indicating copy to clipboard operation
upsy copied to clipboard

Upsy Don't response in channels

Open intjose opened this issue 1 year ago • 6 comments

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

intjose avatar Mar 07 '24 16:03 intjose

Hello. Can you try sending the following message to the channel and see if it is responding or not:

Upsy how are you?

enesakar avatar Mar 08 '24 21:03 enesakar

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 Captura de pantalla 2024-03-11 a la(s) 1 04 42 p m

From channel Captura de pantalla 2024-03-11 a la(s) 1 05 09 p m

From DM Captura de pantalla 2024-03-11 a la(s) 1 06 00 p m

intjose avatar Mar 11 '24 19:03 intjose

I closed it by mistake, but I'm still with the issue 😢

intjose avatar Mar 12 '24 17:03 intjose

@intjose can you share the full logs from your fly console when you ask from channel?

enesakar avatar Mar 13 '24 06:03 enesakar

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 avatar Mar 13 '24 17:03 intjose

@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.

enesakar avatar Mar 19 '24 21:03 enesakar