Hey guys, I’m having a lot of trouble to fix this:
My workflow works fine if it receives 1 message at a time, the problem is when it receives multiple, I think it would work best if somehow the workflow is able to identify it has received multiple messages, and send only one api call to openai assistant, so it can come up with a better response.
An example would be:
“Hi”
“Good morning!”
“How are you?”
Which the response would seem a lot unnatural to the user.
So my questions is, do you have any ideia how to manage this? Could also be an workaround.
I already tried adding all the user messages to baserow, the problem is, I’m not sure when, where or how I would trigger the workflow to send the msg only once and to delete the messages from baserow after the text response is sent. Keep in mind that not always the user will send multiple messages.
Hi @arthurlongue, could you tell us a bit more about what you’re trying to achieve with the workflow or the end-goal here? Is there a reason you’ve opted for the HTTP request node instead of using one of the Open AI nodes or an AI Agent in n8n?
I just managed to workaround this using sheets/baserow and storing the user message there, placing a wait node and fetching the data before and after and checking if it is the same, if not I stop the workflow and let the last one do the rest of the msg handling.
Hi Arthur, I’m having exactly the same problem. I also need to hold WhatsApp messages in this scenario where the user can send several. Could you share this solution with me and others who might have the same problem? You mentioned the tools above, but since I’m new to n8n, I didn’t understand well. I’ll be happy if you do. Thanks.