· 6 years ago · Sep 03, 2019, 11:12 PM
1We have our chabot that hears and listens to all type of events that happens on the page,
2We're asking what would be the best and optimal way to have the bot stop answering when there's a human reply on the other end
3We've inpected the message_echo "https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/message-echoes/?locale=ar_AR" event through the messenger api webhook and be able to determine if the "app" sent the text or it was just human
4
5```
6{
7 "sender":{
8 "id":"<PSID>"
9 },
10 "recipient":{
11 "id":"<USER_ID>"
12 },
13 "timestamp":1457764197627,
14 "message":{
15 "is_echo":true,
16 "app_id":1517776481860111, // if that key doesn't exist so human sent it
17 "metadata": "<DEVELOPER_DEFINED_METADATA_STRING>",
18 "mid":"mid.1457764197618:41d102a3e1ae206a38",
19 ....
20}
21```
22
23Our question is: what would be the prober way to have the bot not answering till this live conversation ends ?