Replies: 2 comments
-
Goodnight! Then! This is the common behavior: every message received or sent is forwarded to the
With this information you can filter the type of message for your automation flow. if(message.KeyFromMe === false) {
// follow the automation flow.
} With this simple implementation you will ignore all messages sent by the connected number. |
Beta Was this translation helpful? Give feedback.
-
@jrCleber oh man, I should have checked the body of the incoming request 🤦 thanks for info man! It's working perfectly! |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
Maybe I am not using the webhook api as it was intended, but I am observing a weird behavior which leads to an infinite loop when trying to set up a flow where I am waiting for incoming messages and trying to reply to them right after. Am I missing something or is there an actual problem? I'm about to dive into the code to debug and potentially fix it, but I just wanted to make sure first that this is actually a problem.
How to Reproduce
messageUpsert
event.Observed Behavior
messageUpsert
event is being triggered for both sending and receiving messages.Message Received (messageUpsert) -> Message Sent (also triggers messageUpsert) -> Loop starts
Beta Was this translation helpful? Give feedback.
All reactions