如何让 Facebook Messenger Chatbot 忽略与 FB 用户的收件箱对话?
How to have the Facebook Messenger Chatbot Ignore Inbox Conversations with a FB User?
我们的聊天机器人会监听我们 Facebook 页面上发生的所有事件。
当主页管理员通过收件箱与 Facebook 用户交流时,我们的聊天机器人也会回复。
我们已经通过 Messenger api webhook 审查了 message_echo“https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/message-echoes/?locale=ar_AR”事件,并且能够确定 "app" 是否发送了文本或者它是由页面管理员发送
{
"sender":{
"id":"<PSID>"
},
"recipient":{
"id":"<USER_ID>"
},
"timestamp":1457764197627,
"message":{
"is_echo":true,
"app_id":1517776481860111, // if that key doesn't exist so human sent it
"metadata": "<DEVELOPER_DEFINED_METADATA_STRING>",
"mid":"mid.1457764197618:41d102a3e1ae206a38",
....
}
我们希望 Messenger Chatbot 忽略 Facebook 管理员和 Facebook 用户之间的对话。
我们怎样才能做到这一点?
切换协议的存在是为了将对多个机器人应用程序之间的对话的控制权传递给页面收件箱。
页面管理员也可以请求线程控制,https://developers.facebook.com/docs/messenger-platform/handover-protocol/request-thread-control#page_inbox
我们的聊天机器人会监听我们 Facebook 页面上发生的所有事件。
当主页管理员通过收件箱与 Facebook 用户交流时,我们的聊天机器人也会回复。
我们已经通过 Messenger api webhook 审查了 message_echo“https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/message-echoes/?locale=ar_AR”事件,并且能够确定 "app" 是否发送了文本或者它是由页面管理员发送
{
"sender":{
"id":"<PSID>"
},
"recipient":{
"id":"<USER_ID>"
},
"timestamp":1457764197627,
"message":{
"is_echo":true,
"app_id":1517776481860111, // if that key doesn't exist so human sent it
"metadata": "<DEVELOPER_DEFINED_METADATA_STRING>",
"mid":"mid.1457764197618:41d102a3e1ae206a38",
....
}
我们希望 Messenger Chatbot 忽略 Facebook 管理员和 Facebook 用户之间的对话。
我们怎样才能做到这一点?
切换协议的存在是为了将对多个机器人应用程序之间的对话的控制权传递给页面收件箱。
页面管理员也可以请求线程控制,https://developers.facebook.com/docs/messenger-platform/handover-protocol/request-thread-control#page_inbox