Skip to content

Instantly share code, notes, and snippets.

@prateekiiest
Created March 11, 2020 08:58
Show Gist options
  • Save prateekiiest/f2daeba917780da3de95e870af0c7eaf to your computer and use it in GitHub Desktop.
Save prateekiiest/f2daeba917780da3de95e870af0c7eaf to your computer and use it in GitHub Desktop.
{ 

"demo": {
    "id1" : [
    {"text" : "Hey, I am Phoenix. I will be taking you through the app."},
    {"choice" : {"a11": "Hey Phoenix!"}},
    {"next_question" : {"a11" : "id2" }},
    {"input" : false},
    {"input_type_isString" : false},
    {"input_type_isNumber" : false}
],

    "id2" : [
        {"text":"Before we start, I would like to know what I can call you?"},
        {"choice" : {}},
        {"next_question" : {"default" : "id3"}},
        {"input" : true},
        {"input_type_isString" : true},
        {"input_type_isNumber" : false}

    ],

    "id3" :[
        {"text" : "Thank you, []! Welcome to Let's Talk!"},
        {"choice" : {}},
        {"next_question" : {"default" : "id4"}},
        {"input" : false},
        {"input_type_isString" : false},
        {"input_type_isNumber" : false}
    ],

    "id4" : [
        {"text" : "Please tell me, what is your gender?"},
        {"choice" : {
            "a41":"Male",
            "a42":"Female",
            "a43":"Other"
            }},
        {"next_question" : {"default" : "id5"}},
        {"input" : false},
        {"input_type_isString" : false},
        {"input_type_isNumber" : false}


    ],

    "id5" : [
        {"text" : "And, how old are you?"},
        {"choice" : {}},
        {"next_question" : {"default" : "id6"}},
        {"input" : true},
        {"input_type_isString" : false},
        {"input_type_isNumber" : true}
    ],

    "id6" : [
        {"text": "Thank you for the information. I have a short video for you to help you get an idea of what this app is about and how this app can be helpful to you. Got 3 mins to watch this video?"},
        {"choice" : {
            "a61" : "Yes, take me to the video",
            "a62" : "No, maybe later"
            }},
        {"next_question" : {"a61" : "id7", "a62" : "id8"}}
        {"input" : false},
        {"input_type_isString" : false},
        {"input_type_isNumber" : false}
    ]


....
...
..


}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment