64455361

Date: 2020-10-21 02:28:15
Score: 11.5
Natty:
Report link

I am facing the same issue. If you have found a solution to this, can you update this post?

Things I tried: According to IBM documentation, I did put message.attachment.payload inside output.facebook

{
"output": {
    "generic": [{
        "values": [{
            "text": "ok"
        }],
        "response_type": "text",
        "selection_policy": "sequential"
    }],
    "facebook": {
        "text": "Hi,\n\nWe have a great giveaway for you, but first we’d like for you to follow us so that you can stay updated on the latest news and trends.\n\nPlease take a moment to follow us and let me know when you've followed us by typing DONE:\n\n",
        "buttons": [{
            "url": "https://www.facebook.com/ibmcommerce/",
            "type": "web_url",
            "title": "Follow IBM Commerce",
            "messenger_extensions": "false",
            "webview_height_ratio": "full"
        }],
        "template_type": "generic"
    }
}
}

Also, I tried implementing the solution provided in IBM Watson developer forum

{
"output": {
    "facebook": {
        "message": {
            "attachment": {
                "type": "template",
                "payload": {
                    "text": "Hi,\n\nWe have a great giveaway for you, but first we’d like for you to follow us so that you can stay updated on the latest news and trends.\n\nPlease take a moment to follow us and let me know when you've followed us by typing DONE:\n\n",
                    "buttons": [{
                        "url": "https://www.facebook.com/ibmcommerce/",
                        "type": "web_url",
                        "title": "Follow IBM Commerce",
                        "messenger_extensions": "false",
                        "webview_height_ratio": "full"
                    }],
                    "template_type": "button"
                }
            }
        }
    }
}
}

I am not able to find any resource online that works for me. Any help is much appreciated. Thanks in advance!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (1): i am not able to
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (3): Any help is much appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2): I am facing the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sangeetha Ravisankar