Make a Custom Request" to ask a question

(Oleg Pavlish) #1

Hi.

How can I make a “Make a Custom Request” to ask a question?
And after receiving the answer - get it and use it the flow.
If the answer “Take the quiz now” - run the first Flow (or send first message Text_1). And if the answer “Remind me in 30 minutes” is the second. And if “I do not have time for this” - then the third.

Now the “Custom Request” looks like:

{

"text": "Please, take a short quiz.",
"reply_markup": {
            "resize_keyboard":true,
            "keyboard": [
                    [{
                           "text": "Take the quiz now"
                    }
                    ],
                    [{
                           "text": "Remind me in 30 minutes"
                    }
                    ],
                    [{
                           "text": "I do not have time for this"
                    }
                    ]
            ]
    }

}

method —> sendMessage

1 Like
(Alexander) #2

Hello!
I have the same question.

#3

it seems “Custom Request” do not stop flow to wait answer, i tried with fb messenger buttons :scream_cat:

(Daniel Beckett) #4

Any custom request answers are going to be treated as a new message so you’d either need to have a New Message trigger to capture the answer or use the in built ask a question service to capture their selection after the custom request, e.g. send the request and immediately have a question that says something like “Please select from above”.