最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How to create a multi-step Q&A Flow in Facebook Messenger Conversation Ads? - Stack Overflow

matteradmin9PV0评论

I'm trying to set up a multi-step question-and-answer flow for Facebook Messenger Conversation Ads. Each answer should lead users into a different discovery funnel of further questions and answers. However, my attempts don't work.

What I Tried: I have tried several approaches but here is my latest JSON attempt directly taken from the Meta example in the JSON box on Meta ad :

{
    "message": {
        "attachment": {
            "type": "template",
            "payload": {
                "template_type": "button",
                "text": "Hi! Please let us know how we can help you",
                "buttons": [
                    {
                        "title": "Show me the product!",
                        "type": "web_url",
                        "url": "/"
                    },
                    {
                        "title": "Tell me more",
                        "type": "postback",
                        "payload": {
                            "template_type": "button",
                            "text": "Hi! Please let us know how we can help you",
                            "buttons": [
                                {
                                    "title": "Show me the product!",
                                    "type": "web_url",
                                    "url": "/"
                                },
                                {
                                    "title": "Tell me more",
                                    "type": "postback",
                                    "payload": "USER_DEFINED_PAYLOAD"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    }
}

This structure attempts to nest another button template inside the payload of a postback. However, this doesn't work when tested, and no conversation flow is triggered.

Reference Meta Ads Model (Single Level): Here’s the example provided in Meta Ads documentation, which works for single-level interactions:

{
    "message": {
        "attachment": {
            "type": "template",
            "payload": {
                "template_type": "button",
                "text": "Hi! Please let us know how we can help you",
                "buttons": [
                    {
                        "title": "Show me the product!",
                        "type": "web_url",
                        "url": "/"
                    },
                    {
                        "title": "Tell me more",
                        "type": "postback",
                        "payload": "USER_DEFINED_PAYLOAD"
                    }
                ]
            }
        }
    }
}

This works well for single-level flows but doesn't explain how to handle multiple steps or create deeper nested flows.

What I Need:

  • Is it possible to create a flow where each button click leads to further questions and answers?
  • If nesting templates in payload is not allowed, what is the recommended approach to implement a multi-step flow?
  • Can someone provide a working JSON example or guidance for achieving this?

Goal: To create an interactive experience where users can explore different paths (e.g., questions leading to answers, answers leading to more questions) within Messenger Conversation Ads.

Post a comment

comment list (0)

  1. No comments so far