Current section
Files
Jump to
Current section
Files
priv/data/flows/survey.json
{
"uuid" : "8333fce2-63d3-4849-bfd9-3543eb8b0430",
"spec_version" : "13.1.0",
"_ui" : {
"nodes" : {
"d3dd9da8-e7d7-4ff3-9de0-dc702c3508b3" : {
"position" : {
"top" : 40,
"left" : 840
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
},
"639070ef-9059-4e3b-b2d6-ff27ac006ab7" : {
"position" : {
"top" : 2480,
"left" : 380
},
"type" : "execute_actions"
},
"a6a9d70f-63f8-4456-88f3-78b3a2fadea8" : {
"position" : {
"top" : 0,
"left" : 80
},
"type" : "execute_actions"
},
"f07aa9e8-8ce6-4be6-8fa9-340a43c3ee3a" : {
"position" : {
"top" : 1380,
"left" : 620
},
"type" : "execute_actions"
},
"72fd5a4a-4ead-4e35-9829-d0fade77ec64" : {
"position" : {
"top" : 2280,
"left" : 860
},
"type" : "execute_actions"
},
"d69d3797-b636-4cc9-a9eb-e587e3c37234" : {
"position" : {
"top" : 1860,
"left" : 620
},
"type" : "execute_actions"
},
"323e1176-9579-4a47-91c8-3ecab326c964" : {
"position" : {
"top" : 580,
"left" : 680
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
},
"b0e7ae6b-672a-4d0f-b019-f918548f2e74" : {
"position" : {
"top" : 820,
"left" : 680
},
"type" : "execute_actions"
},
"c509ea9d-218a-4a6f-b694-d77298d147bf" : {
"position" : {
"left" : 200,
"top" : 1820
},
"type" : "split_by_webhook",
"config" : {
}
},
"631c4b3e-8f70-45a3-9743-85b23ffc0f7f" : {
"position" : {
"left" : 120,
"top" : 560
},
"type" : "execute_actions"
},
"2665cd80-3479-4854-8494-4099d077a2e1" : {
"position" : {
"top" : 2300,
"left" : 520
},
"type" : "execute_actions"
},
"294346d7-fd12-4ccf-b9cf-8204d1e6d8f0" : {
"position" : {
"left" : 400,
"top" : 2120
},
"type" : "split_by_expression",
"config" : {
"cases" : {
}
}
},
"88fc4b83-a996-4479-9bc3-dedee48a9fe0" : {
"position" : {
"left" : 120,
"top" : 880
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
},
"81a05cb4-59c0-4649-9302-3eb9719f1cb8" : {
"position" : {
"top" : 240,
"left" : 840
},
"type" : "execute_actions"
},
"120933c7-bc88-4fec-b9d7-ca408d4c1be3" : {
"position" : {
"top" : 2660,
"left" : 220
},
"type" : "execute_actions"
},
"053e7ffe-776a-41aa-bd67-192a12390cdf" : {
"position" : {
"top" : 1140,
"left" : 100
},
"type" : "execute_actions"
},
"7cfa1cf8-61a4-4937-b991-5d4aeaba9178" : {
"position" : {
"left" : 760,
"top" : 2440
},
"type" : "execute_actions"
},
"a6c44886-95f6-49f7-87f2-899fe9cdc65f" : {
"position" : {
"left" : 600,
"top" : 1200
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
},
"d886e3eb-39e8-45ba-bc9f-7506b2ce6264" : {
"position" : {
"top" : 280,
"left" : 100
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
},
"3045c9ce-b5d3-4c8b-86c3-74a6fc563a8d" : {
"position" : {
"left" : 20,
"top" : 2340
},
"type" : "execute_actions"
},
"5252e7b3-f88f-44d8-9a60-7c87ab1affeb" : {
"position" : {
"left" : 220,
"top" : 1520
},
"type" : "wait_for_response",
"config" : {
"cases" : {
}
}
}
}
},
"nodes" : [
{
"actions" : [
{
"attachments" : [
],
"text" : "This is Question 1.\n\nEnter Y if you mostly agree with the question\n\nEnter N if you mostly disagree with the question\n",
"quick_replies" : [
],
"type" : "send_msg",
"all_urns" : false,
"uuid" : "fe56f33a-8bda-412b-90d2-de085661bb71"
}
],
"uuid" : "a6a9d70f-63f8-4456-88f3-78b3a2fadea8",
"exits" : [
{
"uuid" : "3da546d4-8e90-4073-bc99-500b6be5bec5",
"destination_uuid" : "d3dd9da8-e7d7-4ff3-9de0-dc702c3508b3"
}
]
},
{
"actions" : [
],
"uuid" : "d3dd9da8-e7d7-4ff3-9de0-dc702c3508b3",
"exits" : [
{
"uuid" : "c4e509ae-1929-4951-a58c-cdedb3322042",
"destination_uuid" : "81a05cb4-59c0-4649-9302-3eb9719f1cb8"
},
{
"uuid" : "167e118a-0d4f-4858-96e3-a7ab2514c4f8",
"destination_uuid" : "81a05cb4-59c0-4649-9302-3eb9719f1cb8"
},
{
"uuid" : "3b1e4a26-8c97-478f-9c21-d2e6b1ed8581",
"destination_uuid" : "a6a9d70f-63f8-4456-88f3-78b3a2fadea8"
},
{
"uuid" : "1f9cbe48-953d-4420-aaaf-d0ad94c6fb66",
"destination_uuid" : "a6a9d70f-63f8-4456-88f3-78b3a2fadea8"
}
],
"router" : {
"wait" : {
"timeout" : {
"seconds" : 60,
"category_uuid" : "cb406fc4-90dd-4bd2-8b2e-d019cfbcbf67"
},
"type" : "msg"
},
"type" : "switch",
"result_name" : "A1",
"default_category_uuid" : "edeee761-1a91-468a-b81d-96a885094bfb",
"categories" : [
{
"uuid" : "cef88de7-004d-419a-810a-a903b2038d4e",
"exit_uuid" : "c4e509ae-1929-4951-a58c-cdedb3322042",
"name" : "Y"
},
{
"uuid" : "d5d14d7a-8075-48b6-8cec-e8f0374eeb30",
"exit_uuid" : "167e118a-0d4f-4858-96e3-a7ab2514c4f8",
"name" : "N"
},
{
"uuid" : "edeee761-1a91-468a-b81d-96a885094bfb",
"exit_uuid" : "3b1e4a26-8c97-478f-9c21-d2e6b1ed8581",
"name" : "Other"
},
{
"uuid" : "cb406fc4-90dd-4bd2-8b2e-d019cfbcbf67",
"exit_uuid" : "1f9cbe48-953d-4420-aaaf-d0ad94c6fb66",
"name" : "No Response"
}
],
"operand" : "@input.text",
"cases" : [
{
"arguments" : [
"y"
],
"category_uuid" : "cef88de7-004d-419a-810a-a903b2038d4e",
"uuid" : "a4d1b773-aa4b-4ddb-8590-c1f9b656ddbb",
"type" : "has_any_word"
},
{
"arguments" : [
"n"
],
"category_uuid" : "d5d14d7a-8075-48b6-8cec-e8f0374eeb30",
"uuid" : "95f4b633-4624-4032-82ed-0075dea23bd7",
"type" : "has_any_word"
}
]
}
},
{
"uuid" : "81a05cb4-59c0-4649-9302-3eb9719f1cb8",
"exits" : [
{
"uuid" : "aa9df26c-37f3-48ec-a69a-95dfb2044356",
"destination_uuid" : "d886e3eb-39e8-45ba-bc9f-7506b2ce6264"
}
],
"actions" : [
{
"quick_replies" : [
],
"uuid" : "cf151089-9220-4cf0-b59d-4e4764c8e247",
"type" : "send_msg",
"text" : "This is Question 2.\n\nEnter Y if you mostly agree with the question\n\nEnter N if you mostly disagree with the question\n",
"attachments" : [
]
}
]
},
{
"actions" : [
],
"uuid" : "d886e3eb-39e8-45ba-bc9f-7506b2ce6264",
"exits" : [
{
"uuid" : "c6824499-0330-44f5-aa1c-820f20ae162f",
"destination_uuid" : "631c4b3e-8f70-45a3-9743-85b23ffc0f7f"
},
{
"uuid" : "e85afe6f-633e-4a6e-8bb6-3f3ddb0ca54e",
"destination_uuid" : "631c4b3e-8f70-45a3-9743-85b23ffc0f7f"
},
{
"uuid" : "ba99b1fc-f3ad-4a69-ab8e-a0c967a31f55",
"destination_uuid" : "81a05cb4-59c0-4649-9302-3eb9719f1cb8"
},
{
"uuid" : "4f76afd7-7a69-4f45-8737-ac16a168f94e",
"destination_uuid" : "81a05cb4-59c0-4649-9302-3eb9719f1cb8"
}
],
"router" : {
"categories" : [
{
"uuid" : "43e48350-9fd7-4a29-9f82-a851d3ff701b",
"exit_uuid" : "c6824499-0330-44f5-aa1c-820f20ae162f",
"name" : "Y"
},
{
"uuid" : "7789a56a-70fb-4014-982a-2a98e7708db4",
"exit_uuid" : "e85afe6f-633e-4a6e-8bb6-3f3ddb0ca54e",
"name" : "N"
},
{
"uuid" : "0235ac19-2610-4f15-b940-9d64cbe9bf34",
"exit_uuid" : "ba99b1fc-f3ad-4a69-ab8e-a0c967a31f55",
"name" : "Other"
},
{
"uuid" : "efe56774-35fd-4d38-935a-4a95f3898e7a",
"exit_uuid" : "4f76afd7-7a69-4f45-8737-ac16a168f94e",
"name" : "No Response"
}
],
"result_name" : "A2",
"default_category_uuid" : "0235ac19-2610-4f15-b940-9d64cbe9bf34",
"operand" : "@input.text",
"type" : "switch",
"cases" : [
{
"type" : "has_any_word",
"category_uuid" : "43e48350-9fd7-4a29-9f82-a851d3ff701b",
"uuid" : "141cadaa-07af-4e1d-a756-33061b53d3ea",
"arguments" : [
"y"
]
},
{
"type" : "has_any_word",
"category_uuid" : "7789a56a-70fb-4014-982a-2a98e7708db4",
"uuid" : "5eeb3d48-bb1d-4511-bb1e-29ba0a75991d",
"arguments" : [
"n"
]
}
],
"wait" : {
"timeout" : {
"seconds" : 60,
"category_uuid" : "efe56774-35fd-4d38-935a-4a95f3898e7a"
},
"type" : "msg"
}
}
},
{
"uuid" : "631c4b3e-8f70-45a3-9743-85b23ffc0f7f",
"exits" : [
{
"destination_uuid" : "323e1176-9579-4a47-91c8-3ecab326c964",
"uuid" : "d3c6bd71-0223-4b7c-9c71-93e747eb56bc"
}
],
"actions" : [
{
"uuid" : "3b008353-4b20-49a2-a66f-955d531fc185",
"text" : "This is Question 3\n\nEnter Y if you mostly agree with the question\n\nEnter N if you mostly disagree with the question\n",
"type" : "send_msg",
"quick_replies" : [
],
"attachments" : [
]
}
]
},
{
"router" : {
"operand" : "@input.text",
"categories" : [
{
"uuid" : "0652db17-4d94-4b1e-ab3d-9fc6f8dc9d29",
"exit_uuid" : "66284519-3767-40f6-a659-a2645460e41d",
"name" : "Y"
},
{
"uuid" : "e7ae56a5-f6fb-46e8-a889-40ab69255b18",
"exit_uuid" : "89ca6c70-68ad-43cf-83ef-e7047d871205",
"name" : "N"
},
{
"uuid" : "cc52f947-6ab7-49dd-b652-d938018a2fc1",
"exit_uuid" : "ab166957-f58c-4204-b208-db4a56ab325a",
"name" : "Other"
},
{
"uuid" : "06e08596-c82d-466c-8499-263ee41e646d",
"exit_uuid" : "32379f98-ee4a-4751-972e-73339b15215e",
"name" : "No Response"
}
],
"result_name" : "A3",
"cases" : [
{
"category_uuid" : "0652db17-4d94-4b1e-ab3d-9fc6f8dc9d29",
"arguments" : [
"y"
],
"uuid" : "7c9798f1-a2e4-4aa1-872e-53b95f086699",
"type" : "has_any_word"
},
{
"category_uuid" : "e7ae56a5-f6fb-46e8-a889-40ab69255b18",
"arguments" : [
"n"
],
"uuid" : "e8eadebe-2f1c-4bea-9c30-313cd82a4310",
"type" : "has_any_word"
}
],
"type" : "switch",
"default_category_uuid" : "cc52f947-6ab7-49dd-b652-d938018a2fc1",
"wait" : {
"timeout" : {
"seconds" : 60,
"category_uuid" : "06e08596-c82d-466c-8499-263ee41e646d"
},
"type" : "msg"
}
},
"actions" : [
],
"exits" : [
{
"uuid" : "66284519-3767-40f6-a659-a2645460e41d",
"destination_uuid" : "b0e7ae6b-672a-4d0f-b019-f918548f2e74"
},
{
"uuid" : "89ca6c70-68ad-43cf-83ef-e7047d871205",
"destination_uuid" : "b0e7ae6b-672a-4d0f-b019-f918548f2e74"
},
{
"uuid" : "ab166957-f58c-4204-b208-db4a56ab325a",
"destination_uuid" : "631c4b3e-8f70-45a3-9743-85b23ffc0f7f"
},
{
"uuid" : "32379f98-ee4a-4751-972e-73339b15215e",
"destination_uuid" : "631c4b3e-8f70-45a3-9743-85b23ffc0f7f"
}
],
"uuid" : "323e1176-9579-4a47-91c8-3ecab326c964"
},
{
"uuid" : "b0e7ae6b-672a-4d0f-b019-f918548f2e74",
"exits" : [
{
"uuid" : "c107c544-884d-437d-b0fe-bc741e3481f3",
"destination_uuid" : "88fc4b83-a996-4479-9bc3-dedee48a9fe0"
}
],
"actions" : [
{
"type" : "send_msg",
"quick_replies" : [
],
"uuid" : "c4a43a0b-2a6f-4f6c-a2af-77b64d3f9b90",
"attachments" : [
],
"text" : "This is Question 4\n\nEnter Y if you mostly agree with the question\n\nEnter N if you mostly disagree with the question\n"
}
]
},
{
"exits" : [
{
"uuid" : "0b44f7a7-1b26-4141-b4fc-5fd8c329965d",
"destination_uuid" : "053e7ffe-776a-41aa-bd67-192a12390cdf"
},
{
"uuid" : "e7244710-598f-4192-bca6-f70af57ffca6",
"destination_uuid" : "053e7ffe-776a-41aa-bd67-192a12390cdf"
},
{
"uuid" : "3540b027-5ca6-46bb-8432-dc14f8565e2c",
"destination_uuid" : "b0e7ae6b-672a-4d0f-b019-f918548f2e74"
},
{
"uuid" : "49df7003-ff94-46bb-aa0c-77c48c5ea834",
"destination_uuid" : "b0e7ae6b-672a-4d0f-b019-f918548f2e74"
}
],
"uuid" : "88fc4b83-a996-4479-9bc3-dedee48a9fe0",
"actions" : [
],
"router" : {
"wait" : {
"timeout" : {
"category_uuid" : "9c003d0e-3462-4dc6-b212-f2b9cf1ddfd2",
"seconds" : 60
},
"type" : "msg"
},
"cases" : [
{
"category_uuid" : "9dceeaf6-4210-4f99-8f7c-d6172056ab9e",
"arguments" : [
"y"
],
"type" : "has_any_word",
"uuid" : "7dd69cee-7471-4929-94a2-862595edc728"
},
{
"category_uuid" : "9fed648b-f6fb-4c74-8b9c-c72dc359ff8f",
"arguments" : [
"n"
],
"type" : "has_any_word",
"uuid" : "835558f9-bd4d-4a37-89b3-249049260c88"
}
],
"operand" : "@input.text",
"type" : "switch",
"result_name" : "A4",
"default_category_uuid" : "7e1f824a-67b2-43d5-96f7-b0b89a836f12",
"categories" : [
{
"uuid" : "9dceeaf6-4210-4f99-8f7c-d6172056ab9e",
"exit_uuid" : "0b44f7a7-1b26-4141-b4fc-5fd8c329965d",
"name" : "Y"
},
{
"uuid" : "9fed648b-f6fb-4c74-8b9c-c72dc359ff8f",
"exit_uuid" : "e7244710-598f-4192-bca6-f70af57ffca6",
"name" : "N"
},
{
"uuid" : "7e1f824a-67b2-43d5-96f7-b0b89a836f12",
"exit_uuid" : "3540b027-5ca6-46bb-8432-dc14f8565e2c",
"name" : "Other"
},
{
"uuid" : "9c003d0e-3462-4dc6-b212-f2b9cf1ddfd2",
"exit_uuid" : "49df7003-ff94-46bb-aa0c-77c48c5ea834",
"name" : "No Response"
}
]
}
},
{
"uuid" : "053e7ffe-776a-41aa-bd67-192a12390cdf",
"exits" : [
{
"uuid" : "787b7a7b-17f4-481e-9f8f-99bb5379c55c",
"destination_uuid" : "a6c44886-95f6-49f7-87f2-899fe9cdc65f"
}
],
"actions" : [
{
"type" : "send_msg",
"text" : "This is Question 5\n\nEnter Y if you mostly agree with the question\n\nEnter N if you mostly disagree with the question\n",
"quick_replies" : [
],
"attachments" : [
],
"uuid" : "dd35b2cd-defd-4d02-bb07-f1ff24be3320"
}
]
},
{
"uuid" : "a6c44886-95f6-49f7-87f2-899fe9cdc65f",
"actions" : [
],
"router" : {
"operand" : "@input.text",
"default_category_uuid" : "7b75d32a-a477-4a05-af9f-7cc8fbb35903",
"wait" : {
"timeout" : {
"seconds" : 60,
"category_uuid" : "c2363e47-e9c3-4f19-b1c0-a668f0988559"
},
"type" : "msg"
},
"cases" : [
{
"arguments" : [
"y"
],
"type" : "has_any_word",
"uuid" : "12b0a870-40f4-4ae8-8cf4-33e6fc0ebc51",
"category_uuid" : "854a1504-d48e-48fd-a9f7-3727c26b9893"
},
{
"arguments" : [
"n"
],
"type" : "has_any_word",
"uuid" : "e2286ed3-17d5-47c8-a46c-828a5d77f327",
"category_uuid" : "fc570f09-8dd9-4a4a-a639-058719edc1e1"
}
],
"result_name" : "A5",
"type" : "switch",
"categories" : [
{
"uuid" : "854a1504-d48e-48fd-a9f7-3727c26b9893",
"exit_uuid" : "773fa830-3185-4a6e-afd7-c90c5efc13a5",
"name" : "Y"
},
{
"uuid" : "fc570f09-8dd9-4a4a-a639-058719edc1e1",
"exit_uuid" : "cdbbc301-2f9a-429f-af80-c2e029819213",
"name" : "N"
},
{
"uuid" : "7b75d32a-a477-4a05-af9f-7cc8fbb35903",
"exit_uuid" : "f8487bf3-097c-4c9a-8af6-7f5c5a3a89e1",
"name" : "Other"
},
{
"uuid" : "c2363e47-e9c3-4f19-b1c0-a668f0988559",
"exit_uuid" : "d75e333d-41cd-4d0c-88a8-9e519eaa629e",
"name" : "No Response"
}
]
},
"exits" : [
{
"uuid" : "773fa830-3185-4a6e-afd7-c90c5efc13a5",
"destination_uuid" : "f07aa9e8-8ce6-4be6-8fa9-340a43c3ee3a"
},
{
"uuid" : "cdbbc301-2f9a-429f-af80-c2e029819213",
"destination_uuid" : "f07aa9e8-8ce6-4be6-8fa9-340a43c3ee3a"
},
{
"uuid" : "f8487bf3-097c-4c9a-8af6-7f5c5a3a89e1",
"destination_uuid" : "053e7ffe-776a-41aa-bd67-192a12390cdf"
},
{
"uuid" : "d75e333d-41cd-4d0c-88a8-9e519eaa629e",
"destination_uuid" : "053e7ffe-776a-41aa-bd67-192a12390cdf"
}
]
},
{
"uuid" : "f07aa9e8-8ce6-4be6-8fa9-340a43c3ee3a",
"exits" : [
{
"destination_uuid" : "5252e7b3-f88f-44d8-9a60-7c87ab1affeb",
"uuid" : "37c547ca-a80d-4458-970b-e899b92a879d"
}
],
"actions" : [
{
"attachments" : [
],
"uuid" : "21f5575e-bb3c-4ca1-93e8-d555ccbb4fab",
"text" : "Thank you for your responses, your responses were:\n\nQ1: @results.a1\nQ2: @results.a2\nQ3: @results.a3\nQ4: @results.a4\nQ5: @results.a5\n\nPress Y if you are happy with your answers\n\nPress N if you want to repeat the survey\n",
"type" : "send_msg",
"quick_replies" : [
]
}
]
},
{
"exits" : [
{
"uuid" : "a482a4b3-927c-426c-9a29-411c6b3fa88b",
"destination_uuid" : "c509ea9d-218a-4a6f-b694-d77298d147bf"
},
{
"uuid" : "3507ffe3-3b11-4588-8623-ba8365879d15",
"destination_uuid" : "a6a9d70f-63f8-4456-88f3-78b3a2fadea8"
},
{
"uuid" : "1862dee7-5342-4d12-aba1-27ac56ac8245",
"destination_uuid" : "c509ea9d-218a-4a6f-b694-d77298d147bf"
},
{
"uuid" : "33491e94-8b75-4568-b8d4-23326dcd2271",
"destination_uuid" : "c509ea9d-218a-4a6f-b694-d77298d147bf"
}
],
"uuid" : "5252e7b3-f88f-44d8-9a60-7c87ab1affeb",
"router" : {
"operand" : "@input.text",
"result_name" : "A6",
"type" : "switch",
"cases" : [
{
"uuid" : "5ad59298-fbbf-449a-9368-2722eae592f2",
"type" : "has_any_word",
"arguments" : [
"y"
],
"category_uuid" : "1f0e6e4e-af05-40a6-8002-561eef1268e1"
},
{
"uuid" : "6ff15ee3-3638-4a48-bbe2-6001d1526d73",
"type" : "has_any_word",
"arguments" : [
"n"
],
"category_uuid" : "24f8a401-e2ad-4753-97ae-d6a36e5daf29"
}
],
"wait" : {
"timeout" : {
"seconds" : 60,
"category_uuid" : "265cb480-a9e2-4001-8cd2-5db30718e316"
},
"type" : "msg"
},
"categories" : [
{
"uuid" : "1f0e6e4e-af05-40a6-8002-561eef1268e1",
"exit_uuid" : "a482a4b3-927c-426c-9a29-411c6b3fa88b",
"name" : "Y"
},
{
"uuid" : "24f8a401-e2ad-4753-97ae-d6a36e5daf29",
"exit_uuid" : "3507ffe3-3b11-4588-8623-ba8365879d15",
"name" : "N"
},
{
"uuid" : "e928004f-0391-4c0a-a213-99d1d515724c",
"exit_uuid" : "1862dee7-5342-4d12-aba1-27ac56ac8245",
"name" : "Other"
},
{
"uuid" : "265cb480-a9e2-4001-8cd2-5db30718e316",
"exit_uuid" : "33491e94-8b75-4568-b8d4-23326dcd2271",
"name" : "No Response"
}
],
"default_category_uuid" : "e928004f-0391-4c0a-a213-99d1d515724c"
},
"actions" : [
]
},
{
"exits" : [
{
"uuid" : "8b127469-6775-4029-ac08-d34492da3775",
"destination_uuid" : "d69d3797-b636-4cc9-a9eb-e587e3c37234"
},
{
"uuid" : "02a71c2f-5575-4157-bd05-479a28a7a24a",
"destination_uuid" : null
}
],
"uuid" : "c509ea9d-218a-4a6f-b694-d77298d147bf",
"router" : {
"cases" : [
{
"arguments" : [
"Success"
],
"category_uuid" : "12b75c3e-81b2-4260-a9d4-0b8cc9f64fbf",
"uuid" : "86a66bc6-e021-415a-8fb6-92c3d9e9b55d",
"type" : "has_only_text"
}
],
"operand" : "@results.webhook.category",
"type" : "switch",
"categories" : [
{
"uuid" : "12b75c3e-81b2-4260-a9d4-0b8cc9f64fbf",
"exit_uuid" : "8b127469-6775-4029-ac08-d34492da3775",
"name" : "Success"
},
{
"uuid" : "9ef9dc91-1117-4ccf-aaff-2bb7f08e2a76",
"exit_uuid" : "02a71c2f-5575-4157-bd05-479a28a7a24a",
"name" : "Failure"
}
],
"default_category_uuid" : "9ef9dc91-1117-4ccf-aaff-2bb7f08e2a76"
},
"actions" : [
{
"method" : "POST",
"body" : "{\n \"contact\": \"@contact\",\n \"results\": \"@results\",\n \"custom_key\": \"custom_value\"\n}",
"type" : "call_webhook",
"url" : "http:\/\/api.glific.test:4000\/webhook\/stir\/survey",
"uuid" : "b686d45a-bfe0-43b3-9ac0-f30f6e22b532",
"headers" : {
"Accept" : "application\/json",
"Content-Type" : "application\/json"
},
"result_name" : "webhook"
}
]
},
{
"uuid" : "d69d3797-b636-4cc9-a9eb-e587e3c37234",
"exits" : [
{
"uuid" : "1d316b26-0ab1-4bd5-8619-c86f27bc2f26",
"destination_uuid" : "294346d7-fd12-4ccf-b9cf-8204d1e6d8f0"
}
],
"actions" : [
{
"type" : "send_msg",
"quick_replies" : [
],
"text" : "Based on your answers, we think the following content will help you the next week\n\n@results.webhook.content",
"attachments" : [
],
"uuid" : "eb70d56c-13b5-4aa1-b3a6-0ec4909731a4"
}
]
},
{
"router" : {
"cases" : [
{
"uuid" : "55da0964-466a-437b-9626-99ac7e04201f",
"category_uuid" : "a8faa474-fec5-4c3c-b941-56b387e98797",
"type" : "has_number_eq",
"arguments" : [
"1"
]
},
{
"uuid" : "c5d2065f-12bc-4c8d-a1b8-4d02335ac088",
"category_uuid" : "659031b8-ce57-409f-b1e4-be2fa1ce65b5",
"type" : "has_number_eq",
"arguments" : [
"2"
]
},
{
"uuid" : "cb006468-c7e7-4e2f-ac1e-b816e054cdab",
"category_uuid" : "ab7796b8-5b10-43c8-bd43-935bb98c53d4",
"type" : "has_number_eq",
"arguments" : [
"3"
]
},
{
"uuid" : "64ed2d36-5fc1-4c2c-a245-c7ec9de7f035",
"category_uuid" : "332c4e8e-a2cf-470a-97d5-df12c775d36f",
"type" : "has_number_eq",
"arguments" : [
"4"
]
},
{
"uuid" : "fbc3b76d-d83a-429a-9cf5-7a80a01be317",
"category_uuid" : "049c8d95-de93-43d2-9b81-2cf09a0713c2",
"type" : "has_number_eq",
"arguments" : [
"5"
]
}
],
"default_category_uuid" : "662ce37f-c7ee-4458-8b1b-d19976adaf90",
"type" : "switch",
"categories" : [
{
"uuid" : "a8faa474-fec5-4c3c-b941-56b387e98797",
"exit_uuid" : "1bd0ebe4-0b83-4b58-b555-90cc1d1a577d",
"name" : "1"
},
{
"uuid" : "659031b8-ce57-409f-b1e4-be2fa1ce65b5",
"exit_uuid" : "c094a939-9d01-457a-9cfd-852362cb307e",
"name" : "2"
},
{
"uuid" : "ab7796b8-5b10-43c8-bd43-935bb98c53d4",
"exit_uuid" : "30d3100c-bd84-47a0-af09-71222e79a829",
"name" : "3"
},
{
"uuid" : "332c4e8e-a2cf-470a-97d5-df12c775d36f",
"exit_uuid" : "56020e2d-ef39-42e5-81a0-b5522c6b0cb6",
"name" : "4"
},
{
"uuid" : "049c8d95-de93-43d2-9b81-2cf09a0713c2",
"exit_uuid" : "ccabccf3-abd7-424d-9aa9-8faf416c9d5d",
"name" : "5"
},
{
"uuid" : "662ce37f-c7ee-4458-8b1b-d19976adaf90",
"exit_uuid" : "215730ee-c916-4173-ab57-0f71a3045409",
"name" : "Other"
}
],
"operand" : "<%= rem(@results.webhook.status * 2 + 1, 6) %>"
},
"exits" : [
{
"uuid" : "1bd0ebe4-0b83-4b58-b555-90cc1d1a577d",
"destination_uuid" : "3045c9ce-b5d3-4c8b-86c3-74a6fc563a8d"
},
{
"uuid" : "c094a939-9d01-457a-9cfd-852362cb307e",
"destination_uuid" : "120933c7-bc88-4fec-b9d7-ca408d4c1be3"
},
{
"uuid" : "30d3100c-bd84-47a0-af09-71222e79a829",
"destination_uuid" : "639070ef-9059-4e3b-b2d6-ff27ac006ab7"
},
{
"uuid" : "56020e2d-ef39-42e5-81a0-b5522c6b0cb6",
"destination_uuid" : "2665cd80-3479-4854-8494-4099d077a2e1"
},
{
"uuid" : "ccabccf3-abd7-424d-9aa9-8faf416c9d5d",
"destination_uuid" : "7cfa1cf8-61a4-4937-b991-5d4aeaba9178"
},
{
"uuid" : "215730ee-c916-4173-ab57-0f71a3045409",
"destination_uuid" : "72fd5a4a-4ead-4e35-9829-d0fade77ec64"
}
],
"uuid" : "294346d7-fd12-4ccf-b9cf-8204d1e6d8f0",
"actions" : [
]
},
{
"uuid" : "72fd5a4a-4ead-4e35-9829-d0fade77ec64",
"exits" : [
{
"uuid" : "7aa7a1b3-80ba-49de-b940-af571d11df6f",
"destination_uuid" : null
}
],
"actions" : [
{
"type" : "send_msg",
"quick_replies" : [
],
"text" : "We could not compute a score for you based on your answers. Sendng you the default message",
"attachments" : [
],
"uuid" : "2b891c0c-530d-4db9-ad2c-4f5ac46044eb"
}
]
},
{
"uuid" : "2665cd80-3479-4854-8494-4099d077a2e1",
"exits" : [
{
"uuid" : "58caeec1-b6c3-43ac-a616-f47b22e77149",
"destination_uuid" : null
}
],
"actions" : [
{
"type" : "send_msg",
"uuid" : "037beab4-8faa-4f16-8503-8f469254a69d",
"text" : "This is a message for all folks in Group 4.\n\nYour score was: @results.webhook.score",
"attachments" : [
],
"quick_replies" : [
]
}
]
},
{
"uuid" : "3045c9ce-b5d3-4c8b-86c3-74a6fc563a8d",
"exits" : [
{
"uuid" : "95beff99-b167-47bb-9d67-ddf7975348d7",
"destination_uuid" : null
}
],
"actions" : [
{
"type" : "send_msg",
"uuid" : "c704cbf8-d18a-4329-a227-9d6f253515bd",
"text" : "This is a message for all folks in Group 1.\n\nYour score was: @results.webhook.score",
"attachments" : [
],
"quick_replies" : [
]
}
]
},
{
"uuid" : "7cfa1cf8-61a4-4937-b991-5d4aeaba9178",
"exits" : [
{
"uuid" : "dbf1b886-149f-4af0-83dc-cb17fa340ebc",
"destination_uuid" : null
}
],
"actions" : [
{
"quick_replies" : [
],
"attachments" : [
],
"type" : "send_msg",
"text" : "This is a message for all folks in Group 5\n\nYour score was: @results.webhook.score",
"uuid" : "c5733dbd-de26-497a-ae4c-32048abb498f"
}
]
},
{
"uuid" : "639070ef-9059-4e3b-b2d6-ff27ac006ab7",
"exits" : [
{
"uuid" : "96012014-8c5b-4ee6-b566-2304cd6a4b65",
"destination_uuid" : null
}
],
"actions" : [
{
"quick_replies" : [
],
"attachments" : [
],
"type" : "send_msg",
"text" : "This is a message for all folks in Group 3.\n\nYour score was: @results.webhook.score",
"uuid" : "a45fc920-22a1-4b4c-bdc2-036a77c469d7"
}
]
},
{
"uuid" : "120933c7-bc88-4fec-b9d7-ca408d4c1be3",
"exits" : [
{
"uuid" : "6a5d5f32-298c-4455-8674-53261fa33dc9",
"destination_uuid" : null
}
],
"actions" : [
{
"quick_replies" : [
],
"attachments" : [
],
"type" : "send_msg",
"text" : "This is a message for all folks in Group 2.\n\nYour score was: @results.webhook.score",
"uuid" : "7e08e01e-7a84-4f86-a9fc-dde4ca4aa453"
}
]
}
],
"language" : "base",
"type" : "messaging",
"vars" : [
"8333fce2-63d3-4849-bfd9-3543eb8b0430"
],
"expire_after_minutes" : 10080,
"localization" : {
},
"name" : "Survey Workflow"
}