我有一个由对话框流程驱动的fb messenger bot。机器人停止工作前一天无法调试问题。
我正在使用谷歌的Dialogflow为fb机器人供电。 在“集成”页面上,Facebook Messenger服务器正在运行。
从fb bot发送消息时,我可以看到意图被检测到并正确触发,但在fb messenger bot中没有得到任何响应。
那么有没有办法调试登录fb页面等问题?
请帮忙
以下是Webhook end的回复。
{
"speech": " Here are what we found for apple laptops.",
"messages": [
{
"type": 0,
"platform": "facebook",
"speech": " Here are what we found for apple laptops."
},
{
"payload": {
"facebook": {
"attachment": {
"payload": {
"elements": [
{
"image_url": "https://images-eu.ssl-images-amazon.com/images/I/41aVt1CW-dL._SL160_.jpg",
"subtitle": "Rs. 57,430 on Amazon , Rating : 4.5",
"title": "Apple MacBook Air MQD32HN/A 13.3-inch Laptop",
"buttons": [
{
"type": "web_url",
"url": "https://www.amazon.in/Apple-MacBook-Air-13-3-inch-Integrated/dp/B073Q5R6VR?SubscriptionId=AKIAJZ7ZVEW7WHEFIMWA&tag=pricee360-21&linkCode=sp1&camp=2025&creative=165953&creativeASIN=B073Q5R6VR",
"title": "More Info"
}
]
},
{
"image_url": "https://assetscdn.paytm.com/images/catalog/product/L/LA/LAPAPPLE-MACBOOKIDA3158352E58B52/1.jpg",
"subtitle": "Rs. 65,999 on Paytm Mall",
"title": "Apple MacBook Air MQD42HN/A (Intel Core i5/ 8GB LPDDR3/ 256GB/ 13.3\"/ Mac OS)",
"buttons": [
{
"type": "web_url",
"url": "https://paytmmall.com/apple-macbook-air-mqd42hn-a-13-inch-laptop-core-i5-8gb-256gb-mac-os-integrated-graphics-silver-CMPLXLAPAPPLE-MACBOOIGEN198609B4C8CBF4-pdp?product_id=131486426&discoverability=online&src=grid&utm_source=NDTV&utm_medium=affiliate&utm_campaign=NDTV-recharge&utm_term=Gadget360",
"title": "More Info"
}
]
},
{
"image_url": "https://assetscdn.paytm.com/images/catalog/product/L/LA/LAPAPPLE-MACBOOKIDA3158352E58B52/1.jpg",
"subtitle": "Rs. 65,999 on Paytm Mall",
"title": "Apple MacBook Air MQD42HN/A (Intel Core i5/ 8GB LPDDR3/ 256GB/ 13.3\"/ Mac OS)",
"buttons": [
{
"type": "web_url",
"url": "https://paytmmall.com/apple-macbook-air-mqd42hn-a-13-inch-laptop-core-i5-8gb-256gb-mac-os-integrated-graphics-silver-CMPLXLAPAPPLE-MACBOOIGEN198609B4C8CBF4-pdp?product_id=131486426&discoverability=online&src=grid&svc=2&utm_source=NDTV&utm_medium=affiliate&utm_campaign=NDTV-recharge&utm_term=Gadget360",
"title": "More Info"
}
]
},
{
"image_url": "https://assetscdn.paytm.com/images/catalog/product/L/LA/LAPAPPLE-MACBOOTELE1525531013F4C5/1.jpg",
"subtitle": "Rs. 65,999 on Paytm Mall",
"title": "Apple MacBook Air MQD42HN/A (Intel Core i5/ 8GB LPDDR3/ 256GB/ 13.3\"/ Mac OS)",
"buttons": [
{
"type": "web_url",
"url": "https://paytmmall.com/apple-macbook-air-mqd42hn-a-13-inch-laptop-core-i5-8gb-256gb-mac-os-integrated-graphics-silver-CMPLXLAPAPPLE-MACBOOIGEN198609B4C8CBF4-pdp?product_id=143149022&discoverability=online&src=grid&utm_source=NDTV&utm_medium=affiliate&utm_campaign=NDTV-recharge&utm_term=Gadget360",
"title": "More Info"
}
]
},
{
"image_url": "https://assetscdn.paytm.com/images/catalog/product/L/LA/LAPAPPLE-MACBOOROSE73954D5B64792/1.jpg",
"subtitle": "Rs. 89,990 on Paytm Mall",
"title": "Apple Macbook PRO MPXQ2/R2 Core i5 (6th Gen)/8 GB/128 GB/33.78 cm (13.3)/Mac OS)",
"buttons": [
{
"type": "web_url",
"url": "https://paytmmall.com/apple-macbook-pro-mpxq2-r2-core-i5-6th-gen-8-gb-128-gb-33-78-cm-13-3-mac-os-CMPLXLAPAPPLE-MACBOODUMM202563C836CCA-pdp?product_id=145129487&discoverability=online&src=grid&svc=2&utm_source=NDTV&utm_medium=affiliate&utm_campaign=NDTV-recharge&utm_term=Gadget360",
"title": "More Info"
}
]
}
],
"template_type": "generic"
},
"type": "template"
}
}
},
"platform": "facebook",
"type": 4
},
{
"type": 2,
"platform": "facebook",
"title": "Here are some suggestions.",
"replies": [
"HP laptops",
"Lenovo laptops",
"Dell laptops",
"Asus laptops"
]
}
]
}
注意:APP是开发模式,我在测试人员和开发人员角色中添加了用于测试的ID。
答案 0 :(得分:0)
请进入DialogFlow历史记录部分,并检查对话中的“原始交互日志”数据。
我遇到了类似的事情,对我来说,(检查原始交互日志)[fulfillmentMessages节点未返回正确的方式。
向DialogFlow支持团队询问有关问题,并等待他们的回答:D
答案 1 :(得分:0)
我认为问题出在响应上。请尝试一些自定义响应。我有很多次这样的问题。快速更改响应对象可能会给您结果。响应对象的动态更改有时可能由于某些转义字符而导致idk的行为不正确。
答案 2 :(得分:0)
转到developers.facebook.com并转到您的应用。 然后转到您的应用程序并转到Messenger。 在该页面上,您会在“ Webhooks”部分找到“显示最近的错误”。这可以帮助您为什么不接收任何消息!