0

Can I use the ask() function multiple times to ask more than 1 question

Hi There,

I am trying to ask a series of questions via text message. In the tropo script I am attempting the following. The code never reaches the line say(result1.value);

Any idea how to ask multiple questions, one based on the other?

var result = ask("Please text the number 1 for Taxi, or 2 for Delivery.", {

   choices:"1,2",

   timeout:60.0,

   attempts: 2

});

if(result.value == 1){

   var result1 = ask("Please text your departure street number and street name.", {

        timeout:60.0

    });

    say(result1.value); //this line is never reached!

}

4 comments

Please sign in to leave a comment.