WAppAI / assistant

A WhatsApp chatbot that leverages Bing AI's and others LLMs conversational capabilities.
MIT License
102 stars 37 forks source link

Group chat capabilities #20

Closed veigamann closed 1 year ago

veigamann commented 1 year ago

Currently, Sydney lacks awareness of being in a group chat and mistakenly assumes all messages are from a single person. To improve this, the following implementation can be adopted:

  1. Check each received message to determine if it belongs to a group or a private chat.
  2. If it is a group chat, Sydney should only respond if it is specifically mentioned (e.g., "@Sydney, what time is it?") or if Sydney's previous message was replied to within a thread (AKA the reply functionality in WhatsApp where messages can be threaded).
  3. Sydney should also be aware of the name of the participant who mentioned it, enabling a coherent conversation.

This approach provides a more semantic and intuitive way to refer to the bot whenever you want a response.

Note: Sydney will not actively read every single message in the group to learn about its context, as this is slow and leads to unpredictable behavior.

veigamann commented 1 year ago

This originated from #6. Thanks, @Ryzitos!

Ryzitos commented 1 year ago

This originated from #6. Thanks, @Ryzitos!

OMG I THANK YOU, you are literally the best creator on this platform that I have ever been able to talk to and solve my problems, thank you so much ✨✨✨💪💪

veigamann commented 1 year ago

Added in 55b92eb.