Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Complete Autopilot questions for "What Twilio Product are you"
{
"actions": [
{
"collect": {
"name": "what_twilio_product_are_you",
"questions": [
{
"question": "1. What is your favorite color?\n A. red🔴\n B. black🖤\n C. lavender \n D. yellow",
"name": "color",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "2. Where would you like to go✈️ on vacation?\n A. someplace tropical🏝️, like Hawaii \n B. some place historical, like Philadelphia\n C. some place where you don't need to plan much🎢, like Disneyland\n D. European cruise🚢",
"name": "vacation",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "3. What's your brunch order?\n A. pancakes🥞, waffles, or french toast \n B. omelette or frittatta🥚\n C. avocado🥑 toast🍞\n D. oatmeal",
"name": "brunch_order",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "4. What's your coffee order🍵?\n A. flat white \n B. black americano☕ \n C. matcha latte🍵\n D. cappuccino",
"name": "coffee_order",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "5. What's your favorite Pokemon?\n A. bulbasaur \n B. Rhydon \n C. Pidgey\n D. metapod",
"name": "pokemon",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "6. What do you bring to a housewarming party?\n A. brownies you baked from a mix but added in some extra ingredients so you can't tell it's a mix\n B. cupcakes🧁 from Safeway you picked up on your way there because you were so busy \n C. matcha roll from Whole Foods because matcha is so in right now📱\n D. bread🥖you baked, warm from the oven",
"name": "housewarming",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "7. What are you watching📺 on Netflix right now?\n A. the Witcher🧹\n B. the Office🏢 \n C. Becoming\n D. the Good Place👼",
"name": "netflix",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "8. What is your go-to movie📺 snack?🍿\n A. chips and dip\n B. no-bake cereal bars \n C. bougee sweet🍭 and salty🥨 trail mix\n D. gummy worms🐛",
"name": "snack",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "9. What is your favorite fruit?\n A. apples🍎\n B. bananas🍌\n C. mangos\n D. peaches🍑",
"name": "fruit",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "10. What's the first thing you do in the morning🛏(besides check your phone📱)?\n A. drink water🚰, stretch\n B. read📖 & drink coffee☕ or tea🍵 \n C. do 10 pushups\n D. make your bed",
"name": "morning",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "11. If you won the lottery💰, what would be the first thing you bought🛍️?\n A. you'd invest\n B. you'd rent out a vacation home for a long weekend for you and your best friends\n C. a sports car\n D. you'd buy new phones or gadgets for your parents and siblings",
"name": "lottery",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "12. What's your favorite Harry ⚡Potter✨ book📚?\n A. Prisoner of Azkaban\n B. Sorcerer's Stone\n C. Half-Blood Prince\n D. Deathly Hallows",
"name": "hp_book",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "13. What social media platform🤳 do you spend the most time on?\n A. LinkedIn👔\n B. Twitter🐦\n C. TikTok\n D. Facebook",
"name": "social_media",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "14. What unusual celebrity baby name do you secretly🤐 like💗?\n A. Pilot Inspektor\n B. Banks💰\n C. X Æ A-12🤖\n D. Apple🍎",
"name": "celeb_baby_name",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
},
{
"question": "15. You have a virtual meeting🖥️ at 9am🌅. What are you doing at 8:58am?\n A. reviewing the meeting notes and agenda so you can best contribute\n B. You're drinking coffee☕, getting ready to lead the meeting or watch someone you delegated lead the meeting.\n C. Just waking up.🛏You're efficient and will look polished from the top up👔.\n D. Checking your email and Slack📰, getting some easy work tasks out of the way.",
"name": "pandemic_meeting",
"validate": {
"allowed_values": {
"list": [
"a",
"b",
"c",
"d"
]
},
"on_failure": {
"messages": [
{
"say": "Please send a, b, c, or d!"
}
],
"repeat_question": true
},
"max_attempts": {
"redirect": "task://greeting",
"num_attempts": 3
}
}
}
],
"on_complete": {
"redirect": {
"method": "POST",
"uri": "https://YOUR-TWILIO-FUNCTION-URL.twil.io/buzzfeedquiz"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment