queue incoming messages on whatsapp
# 🤝help
c
Hi team, I have deployed a whatsapp bot on botpress and it is using an openai assistant to respond to the messages. Sometimes a user sends multiple messages and each message trigger a new thread. In the assistant node, I can maintain a flag to ensure that the assitant is not trigerred again till it has responded back. But how do I collect all the incoming message and combine them before sending to the assistant. Any tips?
f
Hi vaib! I have seen mentioned that the function isIncomingQueueEmpty() does the trick. I Havent been able to identify how to use it on botpress cloud but i think there is hope...
2 Views