diff --git a/media/test_flows/add_label.json b/media/test_flows/add_label.json deleted file mode 100644 index 9a41dc555db..00000000000 --- a/media/test_flows/add_label.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "version": "11.10", - "site": "https://textit.in", - "flows": [ - { - "entry": "22505d46-43c5-42ba-975e-725c01ea440f", - "action_sets": [ - { - "uuid": "22505d46-43c5-42ba-975e-725c01ea440f", - "x": 100, - "y": 0, - "destination": "f3a1a671-5f5b-489e-9410-9a09fa5eaafb", - "actions": [ - { - "type": "reply", - "uuid": "27dfd8ac-55c5-49c9-88e3-3fb84a9894ff", - "msg": { - "eng": "Hey" - }, - "media": {}, - "quick_replies": [], - "send_all": false - } - ], - "exit_uuid": "6e2b09ec-3cc0-4ee6-ae7b-b76bad3ab6d3" - }, - { - "uuid": "f3a1a671-5f5b-489e-9410-9a09fa5eaafb", - "x": 95, - "y": 101, - "destination": "78c20ee4-94bd-45e6-8510-8e602568fb6e", - "actions": [ - { - "type": "add_label", - "uuid": "bc82c11d-7654-44e4-966c-fb39e2851df0", - "labels": [ - { - "uuid": "0bfecd01-9612-48ab-8c49-72170de6ee49", - "name": "Hello" - } - ] - } - ], - "exit_uuid": "84bf44a1-13fd-44cb-8014-d6feb06e010f" - }, - { - "uuid": "7ca2b0ef-0b23-4c6e-bccb-c5f2d62d2663", - "x": 146, - "y": 358, - "destination": null, - "actions": [ - { - "type": "add_label", - "uuid": "910bf3b5-951f-47a8-93df-11a6eac8bf0f", - "labels": [ - { - "uuid": "0bfecd01-9612-48ab-8c49-72170de6ee49", - "name": "Hello" - } - ] - } - ], - "exit_uuid": "6d579c28-9f3f-4584-bd2e-74009612fdbb" - } - ], - "rule_sets": [ - { - "uuid": "78c20ee4-94bd-45e6-8510-8e602568fb6e", - "x": 85, - "y": 219, - "label": "Response 1", - "rules": [ - { - "uuid": "33438bbf-49bd-4468-9a74-bbd7e1f58f57", - "category": { - "eng": "All Responses" - }, - "destination": "7ca2b0ef-0b23-4c6e-bccb-c5f2d62d2663", - "destination_type": "A", - "test": { - "type": "true" - }, - "label": null - } - ], - "finished_key": null, - "ruleset_type": "wait_message", - "response_type": "", - "operand": "@step.value", - "config": {} - } - ], - "base_language": "eng", - "flow_type": "M", - "version": "11.10", - "metadata": { - "name": "Add Label", - "saved_on": "2019-02-12T09:23:05.746930Z", - "revision": 7, - "uuid": "e9b5b8ba-43f4-4bc2-a790-811ee1cfe392", - "expires": 10080 - } - } - ], - "campaigns": [], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/bad_send_action.json b/media/test_flows/bad_send_action.json deleted file mode 100644 index d5b66d3eae2..00000000000 --- a/media/test_flows/bad_send_action.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "base_language": "base", - "action_sets": [ - { - "y": 795, - "x": 705, - "destination": "610d3c9d-7d2c-4aa4-b0eb-a07c823f6964", - "uuid": "0406607c-e711-4cbb-9c69-cbe3ce785dbd", - "actions": [ - { - "uuid": "c7e3dc19-dc4a-45a0-a4f7-7f57720c3ce5", - "contacts": [ - { - "urns": [ - { - "priority": 50, - "path": "+14255551212", - "scheme": "tel" - } - ], - "id": "contact1_id", - "name": "Mark" - }, - { - "urns": [ - { - "priority": 50, - "path": "+12065551212", - "scheme": "tel" - } - ], - "id": "contact2_id", - "name": "Gregg" - } - ], - "variables": [], - "groups": [], - "msg": { - "base": "Hey there, here's a message." - }, - "type": "send" - } - ] - }], - "version": 8, - "flow_type": "F", - "entry": "d41f3f4d-1742-44a0-b5d5-3d814c804832", - "rule_sets": [], - "type": "F", - "metadata": { - "revision": 110, - "expires": 5, - "saved_on": "2015-12-08T17:55:01.020719Z", - "uuid": "9e73669a-e71b-4e2d-ba3e-336ff0e6447b", - "name": "Send Action Test" - } -} \ No newline at end of file diff --git a/media/test_flows/cataclysm_legacy.json b/media/test_flows/cataclysm_legacy.json deleted file mode 100644 index 64500d8117c..00000000000 --- a/media/test_flows/cataclysm_legacy.json +++ /dev/null @@ -1,252 +0,0 @@ -{ - "version": "11.5", - "site": "https://textit.in", - "flows": [ - { - "entry": "c4462613-5936-42cc-a286-82e5f1816793", - "action_sets": [ - { - "uuid": "eca0f1d7-59ef-4a7c-a4a9-9bbd049eb144", - "x": 76, - "y": 99, - "destination": "d21be990-5e48-4e4b-995f-c9df8f38e517", - "actions": [ - { - "type": "add_group", - "uuid": "feb7a33e-bc8b-44d8-9112-bc4e910fe304", - "groups": [ - { - "uuid": "1966e54a-fc30-4a96-81ea-9b0185b8b7de", - "name": "Cat Fanciers" - } - ] - }, - { - "type": "add_group", - "uuid": "ca82f0e0-43ca-426c-a77c-93cf297b8e7c", - "groups": [ - { - "uuid": "bc4d7100-60ac-44f0-aa78-0ec9373d2c2f", - "name": "Catnado" - } - ] - }, - { - "type": "reply", - "uuid": "d57e9e9f-ada4-4a22-99ef-b8bf3dbcdcae", - "msg": { - "eng": "You are a cat fan! Purrrrr." - }, - "media": {}, - "quick_replies": [], - "send_all": false - } - ], - "exit_uuid": "55f88a1e-73ad-4b6d-9a04-626046bbe5a8" - }, - { - "uuid": "ef389049-d2e3-4343-b91f-13ea2db5f943", - "x": 558, - "y": 94, - "destination": "d21be990-5e48-4e4b-995f-c9df8f38e517", - "actions": [ - { - "type": "del_group", - "uuid": "cea907a8-af81-49af-92e6-f246e52179fe", - "groups": [ - { - "uuid": "bc4d7100-60ac-44f0-aa78-0ec9373d2c2f", - "name": "Catnado" - } - ] - }, - { - "type": "reply", - "uuid": "394a328f-f829-43f2-9975-fe2f27c8b786", - "msg": { - "eng": "You are not a cat fan. Hissssss." - }, - "media": {}, - "quick_replies": [], - "send_all": false - } - ], - "exit_uuid": "9ba78afa-948e-44c5-992f-84030f2eaa6b" - }, - { - "uuid": "d21be990-5e48-4e4b-995f-c9df8f38e517", - "x": 319, - "y": 323, - "destination": "35416fea-787d-48c1-b839-76eca089ad2e", - "actions": [ - { - "type": "channel", - "uuid": "78c58574-9f91-4c27-855e-73eacc99c395", - "channel": "bd55bb31-8ed4-4f89-b903-7103aa3762be", - "name": "Telegram: TextItBot" - } - ], - "exit_uuid": "c86638a9-2688-47c9-83ec-7f10ef49de1e" - }, - { - "uuid": "35416fea-787d-48c1-b839-76eca089ad2e", - "x": 319, - "y": 468, - "destination": null, - "actions": [ - { - "type": "reply", - "uuid": "30d35b8f-f439-482a-91b1-d3b1a4351071", - "msg": { - "eng": "All done." - }, - "media": {}, - "quick_replies": [], - "send_all": false - }, - { - "type": "send", - "uuid": "a7b6def8-d315-49bd-82e4-85887f39babe", - "msg": { - "eng": "Hey Cat Fans!" - }, - "contacts": [], - "groups": [ - { - "uuid": "47b1b36c-7736-47b9-b63a-c0ebfb610e61", - "name": "Cat Blasts" - } - ], - "variables": [], - "media": {} - }, - { - "type": "trigger-flow", - "uuid": "540965e5-bdfe-4416-b4dd-449220b1c588", - "flow": { - "uuid": "ef9603ff-3886-4e5e-8870-0f643b6098de", - "name": "Cataclysmic" - }, - "contacts": [], - "groups": [ - { - "uuid": "22a48356-71e9-4ae1-9f93-4021855c0bd5", - "name": "Cat Alerts" - } - ], - "variables": [] - } - ], - "exit_uuid": "f2ef5066-434d-42bc-a5cb-29c59e51432f" - } - ], - "rule_sets": [ - { - "uuid": "c4462613-5936-42cc-a286-82e5f1816793", - "x": 294, - "y": 0, - "label": "Response 1", - "rules": [ - { - "uuid": "17d69564-60c9-4a56-be8b-34e98a2ce14a", - "category": { - "eng": "Cat Facts" - }, - "destination": "eca0f1d7-59ef-4a7c-a4a9-9bbd049eb144", - "destination_type": "A", - "test": { - "type": "in_group", - "test": { - "name": "Cat Facts", - "uuid": "c7bc1eef-b7aa-4959-ab90-3e33e0d3b1f9" - } - }, - "label": null - }, - { - "uuid": "a9ec4d0a-2ddd-4a13-a1d2-c63ce9916a04", - "category": { - "eng": "Other" - }, - "destination": "ef389049-d2e3-4343-b91f-13ea2db5f943", - "destination_type": "A", - "test": { - "type": "true" - }, - "label": null - } - ], - "finished_key": null, - "ruleset_type": "group", - "response_type": "", - "operand": "@step.value", - "config": {} - } - ], - "base_language": "eng", - "flow_type": "M", - "version": "11.5", - "metadata": { - "name": "Cataclysmic", - "saved_on": "2018-10-18T17:03:54.835916Z", - "revision": 49, - "uuid": "ef9603ff-3886-4e5e-8870-0f643b6098de", - "expires": 10080, - "notes": [] - } - }, - { - "entry": "0429d1f9-82ed-4198-80a2-3b213aa11fd5", - "action_sets": [ - { - "uuid": "0429d1f9-82ed-4198-80a2-3b213aa11fd5", - "x": 100, - "y": 0, - "destination": null, - "actions": [ - { - "type": "add_group", - "uuid": "11f61fc6-834e-4cbc-88ee-c834279345e6", - "groups": [ - { - "uuid": "22a48356-71e9-4ae1-9f93-4021855c0bd5", - "name": "Cat Alerts" - }, - { - "uuid": "c7bc1eef-b7aa-4959-ab90-3e33e0d3b1f9", - "name": "Cat Facts" - }, - { - "uuid": "47b1b36c-7736-47b9-b63a-c0ebfb610e61", - "name": "Cat Blasts" - }, - { - "uuid": "1966e54a-fc30-4a96-81ea-9b0185b8b7de", - "name": "Cat Fanciers" - }, - { - "uuid": "bc4d7100-60ac-44f0-aa78-0ec9373d2c2f", - "name": "Catnado" - } - ] - } - ], - "exit_uuid": "029a7c9d-c935-4ed1-9573-543ded29d954" - } - ], - "rule_sets": [], - "base_language": "eng", - "flow_type": "M", - "version": "11.5", - "metadata": { - "name": "Catastrophe", - "saved_on": "2018-10-18T19:03:07.702388Z", - "revision": 1, - "uuid": "d6dd96b1-d500-4c7a-9f9c-eae3f2a2a7c5", - "expires": 10080 - } - } - ], - "campaigns": [], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/child.json b/media/test_flows/child.json deleted file mode 100644 index 3edf4d2111e..00000000000 --- a/media/test_flows/child.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "entry": "f692e793-75a8-45a7-ba8c-4d568bd9d8a8", - "rule_sets": [], - "action_sets": [ - { - "y": 1, - "x": 107, - "destination": null, - "uuid": "f692e793-75a8-45a7-ba8c-4d568bd9d8a8", - "actions": [ - { - "uuid": "c9d2abd9-0966-435a-8663-d716b4393df5", - "value": "@date", - "label": "Campaign Date", - "field": "campaign_date", - "action": "GET", - "type": "save" - } - ] - } - ], - "last_saved": "2014-11-20T20:49:08.254645Z", - "metadata": {} - }, - "flow_type": "F", - "name": "Child", - "id": 300 - } - ], - "triggers": [] -} diff --git a/media/test_flows/color_gender_age.json b/media/test_flows/color_gender_age.json deleted file mode 100644 index 93387ef4308..00000000000 --- a/media/test_flows/color_gender_age.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "entry": "5dc9d8e1-90c6-4043-bf97-73d35138dc00", - "rule_sets": [ - { - "uuid": "c1911a46-ba8e-48e2-be8f-7c0be30edcdd", - "response_type": "C", - "rules": [ - { - "test": { - "test": "red", - "type": "contains_any" - }, - "category": "Red", - "destination": "f3b33749-c799-47f2-b242-160be2001550", - "uuid": "5a6cd1ec-6d09-4356-9fc0-7b7b71739add" - }, - { - "test": { - "test": "blue", - "type": "contains_any" - }, - "category": "Blue", - "destination": "f3b33749-c799-47f2-b242-160be2001550", - "uuid": "9e496bfe-227c-484e-9a3d-2ba607383c52" - }, - { - "test": { - "test": "green", - "type": "contains_any" - }, - "category": "Green", - "destination": "f3b33749-c799-47f2-b242-160be2001550", - "uuid": "075bb3b0-b104-4acf-8ee7-33046b207343" - }, - { - "test": { - "test": "maroon", - "type": "contains_any" - }, - "category": "Red", - "destination": "f3b33749-c799-47f2-b242-160be2001550", - "uuid": "2c9eb7fe-6084-47f3-9a70-745b11e76991" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": "f3b33749-c799-47f2-b242-160be2001550", - "uuid": "7d217ae2-0a07-45db-95bb-32a887dc1f94" - } - ], - "label": "Color", - "operand": "@step.value", - "y": 146, - "x": 290 - }, - { - "uuid": "fd47736c-6b31-4330-8d49-7dfff3e391a1", - "response_type": "C", - "rules": [ - { - "test": { - "test": "Male", - "type": "contains_any" - }, - "category": "Male", - "destination": "5ad1b145-58ba-4b65-8cb5-84d98172b221", - "uuid": "e86168bc-64fc-4458-a970-884b11b96ffa" - }, - { - "test": { - "test": "Female", - "type": "contains_any" - }, - "category": "Female", - "destination": "5ad1b145-58ba-4b65-8cb5-84d98172b221", - "uuid": "5caa68fe-d64e-4ca6-a782-305930095c62" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": "5ad1b145-58ba-4b65-8cb5-84d98172b221", - "uuid": "129ee4dc-2dff-4973-9d59-d9ccfc8748e1" - } - ], - "label": "Gender", - "operand": "@step.value", - "y": 414, - "x": 384 - }, - { - "uuid": "edec8286-536b-4924-8b94-0af69b41d4c2", - "response_type": "C", - "rules": [ - { - "test": { - "test": "18", - "type": "lt" - }, - "category": "Child", - "destination": "f25f5e8b-dc93-442b-a92d-8d01730e1d99", - "uuid": "c299e0cd-9c6a-4a3c-b7d5-9aa162d58062" - }, - { - "test": { - "test": "65", - "type": "lt" - }, - "category": "Adult", - "destination": "f25f5e8b-dc93-442b-a92d-8d01730e1d99", - "uuid": "139189b0-b4bf-4cfd-ab66-91ea3b40b406" - }, - { - "test": { - "type": "number" - }, - "category": "Senior", - "destination": "f25f5e8b-dc93-442b-a92d-8d01730e1d99", - "uuid": "23265c0d-4a6e-44a7-8d55-f549c801ccd9" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": "f25f5e8b-dc93-442b-a92d-8d01730e1d99", - "uuid": "323b6e22-ae27-405e-b19d-b266f50b2db8" - } - ], - "label": "Age", - "operand": "@step.value", - "y": 695, - "x": 390 - } - ], - "action_sets": [ - { - "y": 0, - "x": 228, - "destination": "c1911a46-ba8e-48e2-be8f-7c0be30edcdd", - "uuid": "5dc9d8e1-90c6-4043-bf97-73d35138dc00", - "actions": [ - { - "msg": "What is your favorite color?", - "type": "reply" - } - ] - }, - { - "y": 298, - "x": 223, - "destination": "fd47736c-6b31-4330-8d49-7dfff3e391a1", - "uuid": "f3b33749-c799-47f2-b242-160be2001550", - "actions": [ - { - "msg": "What is your gender?", - "type": "reply" - } - ] - }, - { - "y": 557, - "x": 224, - "destination": "edec8286-536b-4924-8b94-0af69b41d4c2", - "uuid": "5ad1b145-58ba-4b65-8cb5-84d98172b221", - "actions": [ - { - "type": "save", - "field": "gender", - "label": "Gender", - "value": "@flow.gender" - }, - { - "msg": "What is your age?", - "type": "reply" - } - ] - }, - { - "y": 832, - "x": 217, - "destination": null, - "uuid": "f25f5e8b-dc93-442b-a92d-8d01730e1d99", - "actions": [ - { - "msg": "Thanks.", - "type": "reply" - } - ] - } - ], - "last_saved": "2014-06-26T14:18:09.205715Z", - "metadata": { - "notes": [] - } - }, - "flow_type": "F", - "name": "Color Age Gender", - "id": 23323 - } - ], - "triggers": [] -} diff --git a/media/test_flows/favorites_timeout.json b/media/test_flows/favorites_timeout.json deleted file mode 100644 index 276578cf45f..00000000000 --- a/media/test_flows/favorites_timeout.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "version": 7, - "flows": [ - { - "version": 7, - "flow_type": "M", - "base_language": "base", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "2bff5c33-9d29-4cfc-8bb7-0a1b9f97d830", - "uuid": "127f3736-77ce-4006-9ab0-0c07cea88956", - "actions": [ - { - "msg": { - "base": "What is your favorite color?" - }, - "type": "reply" - } - ] - }, - { - "y": 237, - "x": 131, - "destination": "a5fc5f8a-f562-4b03-a54f-51928f9df07e", - "uuid": "44471ade-7979-4c94-8028-6cfb68836337", - "actions": [ - { - "msg": { - "base": "Good choice, I like @flow.color.category too! What is your favorite beer?" - }, - "type": "reply" - } - ] - }, - { - "y": 8, - "x": 456, - "destination": "2bff5c33-9d29-4cfc-8bb7-0a1b9f97d830", - "uuid": "f9adf38f-ab18-49d3-a8ac-db2fe8f1e77f", - "actions": [ - { - "msg": { - "base": "I don't know that color. Try again." - }, - "type": "reply" - } - ] - }, - { - "y": 535, - "x": 191, - "destination": "ba95c5cd-e428-4a15-8b4b-23dd43943f2c", - "uuid": "89c5624e-3320-4668-a066-308865133080", - "actions": [ - { - "msg": { - "base": "Mmmmm... delicious @flow.beer.category. If only they made @flow.color|lower_case @flow.beer.category! Lastly, what is your name?" - }, - "type": "reply" - } - ] - }, - { - "y": 265, - "x": 512, - "destination": "a5fc5f8a-f562-4b03-a54f-51928f9df07e", - "uuid": "a269683d-8229-4870-8585-be8320b9d8ca", - "actions": [ - { - "msg": { - "base": "I don't know that one, try again please." - }, - "type": "reply" - } - ] - }, - { - "y": 805, - "x": 191, - "destination": null, - "uuid": "10e483a8-5ffb-4c4f-917b-d43ce86c1d65", - "actions": [ - { - "msg": { - "base": "Thanks @flow.name, we are all done!" - }, - "type": "reply" - } - ] - }, - { - "uuid": "ba96d1c6-c721-470a-a04c-74015b1fdd35", - "x": 752, - "y": 1278, - "destination": null, - "actions": [ - { - "type": "reply", - "msg": { - "base": "Sorry you can't participate right now, I'll try again later." - } - } - ] - } - ], - "last_saved": "2015-09-15T02:37:08.805578Z", - "entry": "127f3736-77ce-4006-9ab0-0c07cea88956", - "rule_sets": [ - { - "uuid": "2bff5c33-9d29-4cfc-8bb7-0a1b9f97d830", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "base": "Red" - }, - "type": "contains_any" - }, - "category": { - "base": "Red" - }, - "destination": "44471ade-7979-4c94-8028-6cfb68836337", - "uuid": "8cd25a3f-0be2-494b-8b4c-3a4f0de7f9b2", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Green" - }, - "type": "contains_any" - }, - "category": { - "base": "Green" - }, - "destination": "44471ade-7979-4c94-8028-6cfb68836337", - "uuid": "db2863cf-7fda-4489-9345-d44dacf4e750", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Blue" - }, - "type": "contains_any" - }, - "category": { - "base": "Blue" - }, - "destination": "44471ade-7979-4c94-8028-6cfb68836337", - "uuid": "2f462678-b176-49c1-bb5c-6e152502b0db", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Navy" - }, - "type": "contains_any" - }, - "category": { - "base": "Blue" - }, - "destination": "44471ade-7979-4c94-8028-6cfb68836337", - "uuid": "ecaeb59a-d7f1-4c21-a207-b2a29cc2488f", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Cyan" - }, - "type": "contains_any" - }, - "category": { - "base": "Cyan" - }, - "destination": null, - "uuid": "6f463a78-b176-49c1-bb5c-6e152502b0db", - "destination_type": null - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "Other" - }, - "destination": "f9adf38f-ab18-49d3-a8ac-db2fe8f1e77f", - "uuid": "df4455c2-806b-4af4-8ea9-f40278ec10e4", - "destination_type": "A" - }, - { - "uuid": "1023e76b-bd81-4720-a95e-a54a8fc3c328", - "category": { - "base": "No Response" - }, - "destination": "ba96d1c6-c721-470a-a04c-74015b1fdd35", - "destination_type": "A", - "test": { - "type": "timeout", - "minutes": 5 - } - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Color", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 129, - "x": 98, - "config": {} - }, - { - "uuid": "a5fc5f8a-f562-4b03-a54f-51928f9df07e", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "base": "Mutzig" - }, - "type": "contains_any" - }, - "category": { - "base": "Mutzig" - }, - "destination": "89c5624e-3320-4668-a066-308865133080", - "uuid": "ea304225-332e-49d4-9768-1e804cd0b6c2", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Primus" - }, - "type": "contains_any" - }, - "category": { - "base": "Primus" - }, - "destination": "89c5624e-3320-4668-a066-308865133080", - "uuid": "57f8688e-c263-43d7-bd06-bdb98f0c58a8", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Turbo King" - }, - "type": "contains_any" - }, - "category": { - "base": "Turbo King" - }, - "destination": "89c5624e-3320-4668-a066-308865133080", - "uuid": "670f0205-bb39-4e12-ae95-5e29251b8a3e", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Skol" - }, - "type": "contains_any" - }, - "category": { - "base": "Skol" - }, - "destination": "89c5624e-3320-4668-a066-308865133080", - "uuid": "2ff4713f-c62f-445c-880c-de8f6532d090", - "destination_type": "A" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "Other" - }, - "destination": "a269683d-8229-4870-8585-be8320b9d8ca", - "uuid": "1fc4c133-d038-4f75-a69e-6e7e3190e5d8", - "destination_type": "A" - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Beer", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 387, - "x": 112, - "config": {} - }, - { - "uuid": "ba95c5cd-e428-4a15-8b4b-23dd43943f2c", - "webhook_action": null, - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses" - }, - "destination": "10e483a8-5ffb-4c4f-917b-d43ce86c1d65", - "uuid": "c072ecb5-0686-40ea-8ed3-898dc1349783", - "destination_type": "A" - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Name", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 702, - "x": 191, - "config": {} - } - ], - "metadata": { - "notes": [], - "name": "Favorites", - "id": 35559, - "expires": 720, - "revision": 1 - } - } - ], - "triggers": [] -} diff --git a/media/test_flows/flow_starts.json b/media/test_flows/flow_starts.json deleted file mode 100644 index 702c333367a..00000000000 --- a/media/test_flows/flow_starts.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "campaigns": [], - "version": 4, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "f4eba3d0-3bfc-4564-a3ee-662cb0fac950", - "uuid": "f1eaf53b-27d8-4e93-818e-4c4808b21976", - "actions": [] - } - ], - "last_saved": "2015-03-31T13:24:32.741812Z", - "entry": "f1eaf53b-27d8-4e93-818e-4c4808b21976", - "rule_sets": [ - { - "uuid": "f4eba3d0-3bfc-4564-a3ee-662cb0fac950", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses", - "eng": "Other" - }, - "destination": null, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - }, - "uuid": "e0d2f9fb-a300-4a21-b258-e594bd260310" - } - ], - "webhook": null, - "label": "Message Response", - "operand": "@step.value", - "finished_key": null, - "response_type": "C", - "y": 0, - "x": 200 - } - ], - "metadata": {} - }, - "id": 13968, - "flow_type": "F", - "name": "Child Flow" - }, - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 163, - "x": 201, - "destination": null, - "uuid": "59fa8d6c-50fd-4686-a45f-d9a30f616b80", - "actions": [ - { - "type": "flow", - "name": "Child Flow", - "id": 13968 - } - ] - } - ], - "last_saved": "2015-03-31T13:27:02.568148Z", - "entry": "f4eba3d0-3bfc-4564-a3ee-662cb0fac9f0", - "rule_sets": [ - { - "uuid": "f4eba3d0-3bfc-4564-a3ee-662cb0fac9f0", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": { - "eng": "Foo" - }, - "base": "Foo", - "type": "contains_any" - }, - "category": { - "base": "Foo", - "eng": "Foo" - }, - "config": { - "type": "contains_any", - "verbose_name": "has any of these words", - "name": "Contains any", - "localized": true, - "operands": 1 - }, - "uuid": "0265fb76-e6df-458f-8727-0b2d08f040ec" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses", - "eng": "Other" - }, - "destination": "59fa8d6c-50fd-4686-a45f-d9a30f616b80", - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - }, - "uuid": "e0d2f9fb-a300-4a21-b258-e594bd26030d" - } - ], - "webhook": null, - "label": "Response 1", - "operand": "@contact.groups", - "finished_key": null, - "response_type": "C", - "y": 0, - "x": 129 - } - ], - "metadata": {} - }, - "id": 600, - "flow_type": "F", - "name": "Parent Flow" - } - ], - "triggers": [] -} diff --git a/media/test_flows/group_split.json b/media/test_flows/group_split.json deleted file mode 100644 index 02be28c5123..00000000000 --- a/media/test_flows/group_split.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "campaigns": [], - "version": 10, - "site": "https://textit.in", - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 83, - "destination": "fa26edf9-e78f-4131-b5df-3bd84a1390f5", - "uuid": "1bf3f286-be43-45c3-8146-020a8f224591", - "actions": [ - { - "msg": { - "eng": "Group management! Toggle group membership with:\n(Add|Remove) \n\n@contact.groups" - }, - "type": "reply" - } - ] - }, - { - "y": 376, - "x": 545, - "destination": "403ded9b-edcc-4392-adf1-3de81088cdc1", - "uuid": "21b3cd69-e67c-402a-b977-566f94e8e7ec", - "actions": [ - { - "type": "add_group", - "groups": [ - "@flow.group_name" - ] - } - ] - }, - { - "y": 375, - "x": 786, - "destination": "403ded9b-edcc-4392-adf1-3de81088cdc1", - "uuid": "60d74019-f9c2-4665-bcab-0a4ba659b6af", - "actions": [ - { - "type": "del_group", - "groups": [ - "@flow.group_name" - ] - } - ] - }, - { - "y": 24, - "x": 733, - "destination": "1bf3f286-be43-45c3-8146-020a8f224591", - "uuid": "514fc3f0-fd04-4c27-92fb-bc348121c8ef", - "actions": [ - { - "msg": { - "eng": "Sorry, don't get that command." - }, - "type": "reply" - } - ] - }, - { - "y": 493, - "x": 177, - "destination": "403ded9b-edcc-4392-adf1-3de81088cdc1", - "uuid": "a9cd6587-61a7-4ab6-9a20-edf1f9cff033", - "actions": [ - { - "msg": { - "eng": "You are in @flow.member.category" - }, - "type": "reply" - } - ] - }, - { - "y": 466, - "x": 397, - "destination": "403ded9b-edcc-4392-adf1-3de81088cdc1", - "uuid": "f0c02e2b-6f24-48a7-9c8b-d49165387014", - "actions": [ - { - "msg": { - "eng": "You aren't in either group." - }, - "type": "reply" - } - ] - }, - { - "y": 587, - "x": 545, - "destination": "fa26edf9-e78f-4131-b5df-3bd84a1390f5", - "uuid": "403ded9b-edcc-4392-adf1-3de81088cdc1", - "actions": [ - { - "msg": { - "eng": "Awaiting command." - }, - "type": "reply" - } - ] - } - ], - "version": 10, - "flow_type": "F", - "entry": "1bf3f286-be43-45c3-8146-020a8f224591", - "rule_sets": [ - { - "uuid": "fa26edf9-e78f-4131-b5df-3bd84a1390f5", - "rules": [ - { - "test": { - "test": { - "eng": "split" - }, - "type": "starts" - }, - "category": { - "eng": "Split" - }, - "destination": "ec361b3c-7979-4cfb-b7ca-997d985aba40", - "uuid": "ef6d80e8-775d-4872-8dfc-4f61ae09c814", - "destination_type": "R" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other" - }, - "destination": "e7feaa40-b815-4619-b7b2-4a28c8fd4d10", - "uuid": "bd9ee747-fb19-4752-8dd5-d4a3f666b278", - "destination_type": "R" - } - ], - "ruleset_type": "wait_message", - "label": "Response", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 139, - "x": 351, - "config": {} - }, - { - "uuid": "2e616cfc-217d-4782-9522-c2bb0ee38ff8", - "rules": [ - { - "test": { - "test": { - "eng": "add" - }, - "type": "starts" - }, - "category": { - "eng": "Add" - }, - "destination": "21b3cd69-e67c-402a-b977-566f94e8e7ec", - "uuid": "51280d07-a741-4d2a-8b7c-199739e7f17e", - "destination_type": "A" - }, - { - "test": { - "test": { - "eng": "remove" - }, - "type": "starts" - }, - "category": { - "eng": "Remove" - }, - "destination": "60d74019-f9c2-4665-bcab-0a4ba659b6af", - "uuid": "90d49357-be6f-4a26-a92c-35571b949bf0", - "destination_type": "A" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other" - }, - "destination": "514fc3f0-fd04-4c27-92fb-bc348121c8ef", - "uuid": "1af92c00-e94f-4a49-97d2-1486083f2342", - "destination_type": "A" - } - ], - "ruleset_type": "expression", - "label": "Response 3", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 257, - "x": 633, - "config": {} - }, - { - "uuid": "e7feaa40-b815-4619-b7b2-4a28c8fd4d10", - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "All Responses" - }, - "destination": "2e616cfc-217d-4782-9522-c2bb0ee38ff8", - "uuid": "ba782061-da19-4f97-9a64-d8b22c78641d", - "destination_type": "R" - } - ], - "ruleset_type": "expression", - "label": "Group Name", - "operand": "@(REMOVE_FIRST_WORD(step.value))", - "finished_key": null, - "response_type": "", - "y": 140, - "x": 671, - "config": {} - }, - { - "uuid": "ec361b3c-7979-4cfb-b7ca-997d985aba40", - "rules": [ - { - "test": { - "test": { - "name": "Group A", - "uuid": "ebccb83d-f407-4e66-86ff-b174c952b7d3" - }, - "type": "in_group" - }, - "category": { - "eng": "Group A" - }, - "destination": "a9cd6587-61a7-4ab6-9a20-edf1f9cff033", - "uuid": "e7da6d33-8b82-4d42-8b20-454a4460f0f6", - "destination_type": "A" - }, - { - "test": { - "test": { - "name": "Group B", - "uuid": "61d455f9-52e5-40c7-ae88-809644ffb028" - }, - "type": "in_group" - }, - "category": { - "eng": "Group B" - }, - "destination": "a9cd6587-61a7-4ab6-9a20-edf1f9cff033", - "uuid": "2b240091-2cc5-45e4-ad18-ade35d0bd320", - "destination_type": "A" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other" - }, - "destination": "f0c02e2b-6f24-48a7-9c8b-d49165387014", - "uuid": "66410d8d-a539-4e9a-b039-717da23bbdd2", - "destination_type": "A" - } - ], - "ruleset_type": "group", - "label": "Member", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 255, - "x": 196, - "config": {} - } - ], - "metadata": { - "uuid": "2d60a782-5805-488b-bf4d-b8154614c170", - "notes": [], - "expires": 10080, - "name": "Grouppo", - "saved_on": "2016-09-14T22:51:59.257419Z", - "revision": 304 - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/loop_detection.json b/media/test_flows/loop_detection.json deleted file mode 100644 index 91542485279..00000000000 --- a/media/test_flows/loop_detection.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "campaigns": [], - "version": 7, - "site": "http://rapidpro.io", - "flows": [ - { - "version": 7, - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 132, - "destination": "9e348f0c-f7fa-4c06-a78b-9ffa839e5779", - "uuid": "13977cf2-68ee-49b9-8d88-2b9dbce12c5b", - "actions": [ - { - "msg": { - "eng": "Message One" - }, - "type": "reply" - } - ] - }, - { - "y": 167, - "x": 133, - "destination": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "uuid": "fb3e6f98-2cf3-40e8-ba1a-ea87dfcbd458", - "actions": [ - { - "msg": { - "eng": "You are in Group A" - }, - "type": "reply" - } - ] - }, - { - "y": 400, - "x": 434, - "destination": null, - "uuid": "3a0f77d1-f6bf-47f1-b194-de2051ba0738", - "actions": [ - { - "msg": { - "eng": "You picked @flow.message_split_a.category" - }, - "type": "reply" - } - ] - } - ], - "last_saved": "2015-05-04T19:48:06.359817Z", - "entry": "13977cf2-68ee-49b9-8d88-2b9dbce12c5b", - "rule_sets": [ - { - "uuid": "9e348f0c-f7fa-4c06-a78b-9ffa839e5779", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": { - "eng": "Group A" - }, - "base": "Group A", - "type": "contains_any" - }, - "category": { - "eng": "Group A", - "base": "Group A" - }, - "destination": "fb3e6f98-2cf3-40e8-ba1a-ea87dfcbd458", - "uuid": "605e4e98-5d85-45e7-a885-9c198977b63c" - }, - { - "test": { - "test": { - "eng": "Group B" - }, - "base": "Group B", - "type": "contains_any" - }, - "category": { - "eng": "Group B", - "base": "Group B" - }, - "destination": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "uuid": "81ba32a2-b3ea-4d46-aa7e-2ef32d7ced1e" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other", - "base": "Other" - }, - "destination": "782e9e71-c116-4195-add3-1867132f95b6", - "uuid": "9e712fa4-d988-483b-9820-e6bcc6d0cfba" - } - ], - "webhook": null, - "label": "Group Split A", - "operand": "@contact.groups", - "finished_key": null, - "ruleset_type": "expression", - "y": 70, - "x": 401 - }, - { - "uuid": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "eng": "Red" - }, - "base": "Red", - "type": "contains_any" - }, - "category": { - "eng": "Red", - "base": "Red" - }, - "destination": "3a0f77d1-f6bf-47f1-b194-de2051ba0738", - "uuid": "77f97500-0f06-443d-aec1-8d045962c7b8" - }, - { - "test": { - "test": { - "eng": "Green" - }, - "base": "Green", - "type": "contains_any" - }, - "category": { - "eng": "Green", - "base": "Green" - }, - "destination": "3a0f77d1-f6bf-47f1-b194-de2051ba0738", - "uuid": "15fa4511-c63e-4e45-be09-c63c87480189" - }, - { - "test": { - "test": { - "eng": "Blue" - }, - "base": "Blue", - "type": "contains_any" - }, - "category": { - "eng": "Blue", - "base": "Blue" - }, - "destination": "3a0f77d1-f6bf-47f1-b194-de2051ba0738", - "uuid": "8b8dc778-7d49-4572-af9f-97d5aee5dce8" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other", - "base": "All Responses" - }, - "destination": "3a0f77d1-f6bf-47f1-b194-de2051ba0738", - "uuid": "1d9900bc-9315-4ee2-892f-60013dd9541d" - } - ], - "webhook": null, - "label": "Message Split A", - "operand": "@step.value", - "finished_key": null, - "ruleset_type": "wait_message", - "y": 265, - "x": 356 - }, - { - "uuid": "782e9e71-c116-4195-add3-1867132f95b6", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": { - "eng": "Rowan" - }, - "base": "Rowan", - "type": "contains_any" - }, - "category": { - "eng": "Rowan", - "base": "Rowan" - }, - "destination": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "uuid": "f78edeea-4339-4f06-b95e-141975b97cb8" - }, - { - "test": { - "test": { - "eng": "Norbert" - }, - "base": "Norbert", - "type": "contains_any" - }, - "category": { - "eng": "Norbert", - "base": "Norbert" - }, - "destination": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "uuid": "e399c915-6226-4b00-bd9a-8347bd03a85a" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "Other", - "base": "Other" - }, - "destination": "1f1adefb-0791-4e3c-9e8f-10dc6d56d3a5", - "uuid": "7247d462-6ac5-4302-8ace-5a61c714377d" - } - ], - "webhook": null, - "label": "Name Split", - "operand": "@contact.name", - "finished_key": null, - "ruleset_type": "contact_field", - "y": 153, - "x": 735 - }, - { - "uuid": "771088fd-fc77-4966-8541-93c3c59c923d", - "webhook_action": null, - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses", - "eng": "All Responses" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - }, - "uuid": "865baac0-da29-4752-be1e-1488457f708c" - } - ], - "webhook": null, - "label": "Message Split B", - "operand": "@step.value", - "finished_key": null, - "ruleset_type": "wait_message", - "y": 555, - "x": 419 - } - ], - "flow_type": "F", - "metadata": { - "name": "Loop Detection", - "id": 1000 - } - } - ], - "triggers": [] -} diff --git a/media/test_flows/no_ruleset_flow.json b/media/test_flows/no_ruleset_flow.json deleted file mode 100644 index 46c1806a98c..00000000000 --- a/media/test_flows/no_ruleset_flow.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "version": 8, - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "e41e7aad-de93-4cc0-ae56-d6af15ba1ac5", - "actions": [ - { - "msg": { - "eng": "Hello world" - }, - "type": "reply" - } - ] - } - ], - "version": 8, - "flow_type": "F", - "entry": "e41e7aad-de93-4cc0-ae56-d6af15ba1ac5", - "rule_sets": [], - "metadata": { - "expires": 10080, - "revision": 1, - "id": 41049, - "name": "No ruleset flow", - "saved_on": "2015-11-20T11:02:19.790131Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/numeric_rule_allows_variables.json b/media/test_flows/numeric_rule_allows_variables.json deleted file mode 100644 index 7b5fe83750b..00000000000 --- a/media/test_flows/numeric_rule_allows_variables.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "version": 8, - "flows": [ - { - "base_language": "base", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "31065f6b-4054-4560-adac-d8f4a0ec57c7", - "uuid": "f08c61ae-8757-4b4a-924b-9e97afdf15f4", - "actions": [ - { - "msg": { - "base": "How old will you be in the next world cup?" - }, - "type": "reply" - } - ] - }, - { - "y": 370, - "x": 59, - "destination": null, - "uuid": "116b7cc1-5086-4e0d-b0ee-ea3f73d0f06f", - "actions": [ - { - "msg": { - "base": "Good count" - }, - "type": "reply" - } - ] - }, - { - "y": 358, - "x": 429, - "destination": null, - "uuid": "34ca7cb8-b899-46b3-a5d2-11dd13f89541", - "actions": [ - { - "msg": { - "base": "Try again" - }, - "type": "reply" - } - ] - } - ], - "version": 8, - "flow_type": "F", - "entry": "f08c61ae-8757-4b4a-924b-9e97afdf15f4", - "rule_sets": [ - { - "uuid": "31065f6b-4054-4560-adac-d8f4a0ec57c7", - "webhook_action": null, - "rules": [ - { - "test": { - "test": "@contact.age", - "type": "gt" - }, - "category": { - "base": "> @contact.age" - }, - "destination": "116b7cc1-5086-4e0d-b0ee-ea3f73d0f06f", - "uuid": "d164c264-1f48-478c-9ffb-f7207e679ed5", - "destination_type": "A" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "Other" - }, - "destination": "34ca7cb8-b899-46b3-a5d2-11dd13f89541", - "uuid": "2d0e800d-ec33-4fcd-a660-3782cf65dcff", - "destination_type": "A" - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 210, - "x": 153, - "config": {} - } - ], - "metadata": { - "expires": 10080, - "revision": 7, - "id": 41052, - "name": "Numeric rule allows variables", - "saved_on": "2015-11-30T19:29:37.385369Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/parent.json b/media/test_flows/parent.json deleted file mode 100644 index a413e7369ce..00000000000 --- a/media/test_flows/parent.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "entry": "2f0e3397-3b9e-4593-b1d2-04ecfddb4f8f", - "rule_sets": [], - "action_sets": [ - { - "y": 1, - "x": 127, - "destination": null, - "uuid": "2f0e3397-3b9e-4593-b1d2-04ecfddb4f8f", - "actions": [ - { - "uuid": "59d5ba21-e61d-4bb7-a898-33bb2164987e", - "value": "None", - "label": "Campaign Date", - "field": "campaign_date", - "action": "GET", - "type": "save" - }, - { - "uuid": "40b35b95-fdbc-4ba4-b91e-c3c1911c1f3c", - "type": "flow", - "name": "Child Flow", - "id": CHILD_ID - }, - { - "action": "GET", - "type": "add_group", - "uuid": "4ea70294-ca92-478c-b0f4-ffc4fd858412", - "groups": [ - { - "name": "Campaign" - } - ] - }, - { - "msg": "Added to campaign.", - "action": "GET", - "type": "reply", - "uuid": "8a267e99-1b75-4e6d-bafc-9bc65629ad0a" - } - ] - } - ], - "last_saved": "2014-11-20T21:14:51.848399Z", - "metadata": {} - }, - "flow_type": "F", - "name": "Parent", - "id": 2000 - } - ], - "triggers": [] -} diff --git a/media/test_flows/pick_a_number.json b/media/test_flows/pick_a_number.json deleted file mode 100644 index 8db008735f1..00000000000 --- a/media/test_flows/pick_a_number.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "rule_sets": [ - { - "y": 106, - "x": 100, - "response_type": "C", - "rules": [ - { - "test": { - "max": "10", - "type": "between", - "min": "1" - }, - "destination": "9a8ba8b2-8c80-4635-9f5d-015c15fdc44a", - "uuid": "41418f9d-73e5-43b8-a341-3f7af70e13c1" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": null, - "uuid": "e53c2616-7b8d-4821-968a-4488e9980454" - } - ], - "uuid": "06bb3899-5de4-4cbc-ad5f-70b9634d80c4", - "label": "number" - }, - { - "y": 300, - "x": 300, - "response_type": "C", - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": "All Responses", - "destination": "06bb3899-5de4-4cbc-ad5f-70b9634d80c4", - "uuid": "9df37f4c-73ca-4876-8490-35f984486df6" - } - ], - "uuid": "c1a5c78e-560b-45b1-83b1-1dad9ce57a06", - "label": "passive", - "operand": "@contact.name" - } - ], - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "06bb3899-5de4-4cbc-ad5f-70b9634d80c4", - "uuid": "2f2adf23-87db-41d3-9436-afe48ab5403c", - "actions": [ - { - "msg": "Pick a number between 1-10.", - "type": "reply" - } - ] - }, - { - "y": 228, - "x": 118, - "destination": null, - "uuid": "9a8ba8b2-8c80-4635-9f5d-015c15fdc44a", - "actions": [ - { - "msg": "You picked @flow.number!", - "type": "reply" - } - ] - } - ] - }, - "flow_type": "F", - "name": "Pick a Number", - "id": 2100 - } - ], - "triggers": [] -} diff --git a/media/test_flows/preprocess.json b/media/test_flows/preprocess.json deleted file mode 100644 index d8616b5068a..00000000000 --- a/media/test_flows/preprocess.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "rule_sets": [ - { - "y": 106, - "x": 100, - "webhook": "http://preprocessor.com/endpoint.php", - "response_type": "N", - "rules": [ - { - "test": { - "max": "10", - "type": "between", - "min": "1" - }, - "destination": "9a8ba8b2-8c80-4635-9f5d-015c15fdc44a", - "uuid": "41418f9d-73e5-43b8-a341-3f7af70e13c1" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": null, - "uuid": "e53c2616-7b8d-4821-968a-4488e9980454" - } - ], - "uuid": "06bb3899-5de4-4cbc-ad5f-70b9634d80c4", - "label": "number" - } - ], - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "06bb3899-5de4-4cbc-ad5f-70b9634d80c4", - "uuid": "2f2adf23-87db-41d3-9436-afe48ab5403c", - "actions": [ - { - "msg": "Pick a number between 1-10.", - "type": "reply" - } - ] - }, - { - "y": 228, - "x": 118, - "destination": null, - "uuid": "9a8ba8b2-8c80-4635-9f5d-015c15fdc44a", - "actions": [ - { - "msg": "You picked @flow.number!", - "type": "reply" - } - ] - } - ] - }, - "flow_type": "F", - "name": "Preprocess", - "id": 2200 - } - ], - "triggers": [] -} diff --git a/media/test_flows/quick_replies.json b/media/test_flows/quick_replies.json deleted file mode 100644 index c48ef44d30b..00000000000 --- a/media/test_flows/quick_replies.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "campaigns": [], - "version": 10, - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 44, - "x": 223, - "destination": "4297b822-734e-44cb-a1c9-2e20bc2cdb19", - "uuid": "163462f8-8a82-49df-ab8a-4eee3f7b9feb", - "actions": [ - { - "msg": { - "por": "Voc\u00ea gosta de jogar futebol?", - "eng": "Do you like to play football?" - }, - "media": {}, - "send_all": false, - "type": "reply", - "quick_replies": [ - { - "por": "Sim", - "eng": "Yes" - }, - { - "eng": "No" - } - ] - } - ] - }, - { - "y": 319, - "x": 262, - "destination": null, - "uuid": "a26a36b9-d4d7-4355-aad3-2fc86e84a7f1", - "actions": [ - { - "msg": { - "eng": "Good!" - }, - "media": {}, - "send_all": false, - "type": "reply", - "quick_replies": [] - } - ] - }, - { - "y": 318, - "x": 509, - "destination": null, - "uuid": "cdf0b558-6a44-44c9-8bee-6a6b6e8ad9c4", - "actions": [ - { - "msg": { - "eng": ":(" - }, - "media": {}, - "send_all": false, - "type": "reply", - "quick_replies": [] - } - ] - }, - { - "y": 173, - "x": 749, - "destination": "4297b822-734e-44cb-a1c9-2e20bc2cdb19", - "uuid": "4b7366eb-6099-4135-9a00-72492e6fdb8d", - "actions": [ - { - "msg": { - "eng": "Sorry, I don't understand." - }, - "media": {}, - "send_all": false, - "type": "reply", - "quick_replies": [] - } - ] - } - ], - "version": 10, - "flow_type": "F", - "entry": "163462f8-8a82-49df-ab8a-4eee3f7b9feb", - "rule_sets": [ - { - "uuid": "4297b822-734e-44cb-a1c9-2e20bc2cdb19", - "rules": [ - { - "category": { - "eng": "Yes" - }, - "uuid": "e8014483-e9ee-4384-85ea-f88c67ddf494", - "destination": "a26a36b9-d4d7-4355-aad3-2fc86e84a7f1", - "label": null, - "destination_type": "A", - "test": { - "test": { - "eng": "Yes, Sim" - }, - "type": "contains_any" - } - }, - { - "category": { - "eng": "No" - }, - "uuid": "a0b594ae-491f-4f2c-93af-0f158f69a5d8", - "destination": "cdf0b558-6a44-44c9-8bee-6a6b6e8ad9c4", - "label": null, - "destination_type": "A", - "test": { - "test": { - "eng": "No" - }, - "type": "contains_any" - } - }, - { - "category": { - "eng": "Other" - }, - "uuid": "b27d6067-f3fd-4b9b-a79a-127791987ec5", - "destination": "4b7366eb-6099-4135-9a00-72492e6fdb8d", - "label": null, - "destination_type": "A", - "test": { - "type": "true" - } - } - ], - "ruleset_type": "wait_message", - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 160, - "x": 381, - "config": {} - } - ], - "metadata": { - "expires": 10080, - "revision": 106, - "uuid": "711489ef-87c9-4fbc-8e6e-92af2b671fc4", - "name": "Quick Replies", - "saved_on": "2017-10-13T13:09:02.747795Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/random_word.json b/media/test_flows/random_word.json deleted file mode 100644 index 45cd0b0e5a2..00000000000 --- a/media/test_flows/random_word.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "fbb21cb8-eaf0-45fc-a5e3-31c5f5c1d55e", - "uuid": "8731e312-cdf1-412c-8a7d-6cc603de9cf9", - "actions": [ - { - "msg": { - "eng": "Write me a random word." - }, - "type": "reply" - } - ] - }, - { - "y": 406, - "x": 228, - "destination": null, - "uuid": "395f0a8e-b4fa-4a73-af33-98134505a3d7", - "actions": [ - { - "msg": { - "eng": "Thank you" - }, - "type": "reply" - } - ] - } - ], - "last_saved": "2014-08-11T15:08:22.724512Z", - "entry": "8731e312-cdf1-412c-8a7d-6cc603de9cf9", - "rule_sets": [ - { - "uuid": "fbb21cb8-eaf0-45fc-a5e3-31c5f5c1d55e", - "response_type": "O", - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "All Responses" - }, - "destination": "395f0a8e-b4fa-4a73-af33-98134505a3d7", - "uuid": "3ec97b15-cfd8-4500-947f-56cae2441c99" - } - ], - "label": "Random", - "operand": "@step.value", - "y": 239, - "x": 136 - } - ], - "metadata": { - "notes": [] - } - }, - "flow_type": "F", - "name": "Random Word", - "id": 2300 - } - ], - "triggers": [] -} diff --git a/media/test_flows/rules_first.json b/media/test_flows/rules_first.json deleted file mode 100644 index 35d52c9b652..00000000000 --- a/media/test_flows/rules_first.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "version": 7, - "flows": [ - { - "version": 7, - "base_language": "base", - "action_sets": [ - { - "y": 161, - "x": 114, - "destination": null, - "uuid": "0fa491db-a447-4940-a7c8-c682f0e9ae3b", - "actions": [ - { - "msg": { - "base": "You've got to be kitten me" - }, - "type": "reply" - } - ] - }, - { - "y": 160, - "x": 342, - "destination": null, - "uuid": "29825823-69e3-47d7-a139-90c4851de0a3", - "actions": [ - { - "msg": { - "base": "Raise the woof!" - }, - "type": "reply" - } - ] - }, - { - "y": 100, - "x": 602, - "destination": "737527ae-ade5-4b55-944a-94a67b79cec5", - "uuid": "8e89b350-4b96-480c-b4e5-31f38f40bfe5", - "actions": [ - { - "msg": { - "base": "Is that even an animal?" - }, - "type": "reply" - } - ] - } - ], - "last_saved": "2015-09-15T02:38:14.494272Z", - "entry": "737527ae-ade5-4b55-944a-94a67b79cec5", - "rule_sets": [ - { - "uuid": "737527ae-ade5-4b55-944a-94a67b79cec5", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "base": "Cats" - }, - "type": "contains_any" - }, - "category": { - "base": "Cats" - }, - "destination": "0fa491db-a447-4940-a7c8-c682f0e9ae3b", - "uuid": "be41b657-cbfa-433a-9ffe-4fbcaf7fe15e", - "destination_type": "A" - }, - { - "test": { - "test": { - "base": "Dogs" - }, - "type": "contains_any" - }, - "category": { - "base": "Dogs" - }, - "destination": "29825823-69e3-47d7-a139-90c4851de0a3", - "uuid": "f1b8745b-beb3-4431-9e8e-01a214f20e3e", - "destination_type": "A" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "Other" - }, - "destination": "8e89b350-4b96-480c-b4e5-31f38f40bfe5", - "uuid": "a329fbaa-49cf-4a5e-8e12-8df801344715", - "destination_type": "A" - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Animal", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 0, - "x": 260, - "config": {} - } - ], - "flow_type": "F", - "metadata": { - "notes": [], - "expires": 720, - "id": 35560, - "name": "Rules First" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/ruleset_loop.json b/media/test_flows/ruleset_loop.json deleted file mode 100644 index 71a1dc327e4..00000000000 --- a/media/test_flows/ruleset_loop.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "campaigns": [], - "version": 4, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "base_language": "ind", - "action_sets": [ - { - "y": 189, - "x": 157, - "destination": null, - "uuid": "c1474749-cfcb-4911-a93f-31ba67b64d57", - "actions": [ - { - "type": "flow", - "name": "Flow 2", - "id": 27668 - } - ] - } - ], - "last_saved": "2015-03-25T23:18:57.977877Z", - "entry": "e41fa402-0946-451f-8971-ac6adb6a0cc6", - "rule_sets": [ - { - "uuid": "e41fa402-0946-451f-8971-ac6adb6a0cc6", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": { - "ind": "awesome" - }, - "type": "contains_any" - }, - "category": { - "ind": "Awesome", - "base": "Awesome" - }, - "destination": null, - "uuid": "d0f480bb-a1e4-4aed-bbfe-04bb34ada1f2" - }, - { - "test": { - "type": "true" - }, - "category": { - "ind": "Other", - "base": "Other" - }, - "destination": "c1474749-cfcb-4911-a93f-31ba67b64d57", - "uuid": "5a2aa691-9103-4cf0-a2af-7df9be3658b7" - } - ], - "webhook": null, - "label": "Response 1", - "operand": "@contact.name", - "finished_key": null, - "response_type": "C", - "y": 0, - "x": 110 - } - ], - "metadata": { - "notes": [] - } - }, - "id": 27667, - "flow_type": "F", - "name": "Flow 1" - }, - { - "definition": { - "base_language": "ind", - "action_sets": [ - { - "y": 241, - "x": 180, - "destination": null, - "uuid": "e32f191b-d667-4a9e-9820-6faaf98d9a27", - "actions": [ - { - "type": "flow", - "name": "Flow 1", - "id": 27667 - } - ] - } - ], - "last_saved": "2015-03-25T23:18:28.682837Z", - "entry": "1b155cb4-1457-4430-899e-72a21a1843e8", - "rule_sets": [ - { - "uuid": "1b155cb4-1457-4430-899e-72a21a1843e8", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": { - "ind": "awesome" - }, - "type": "contains_any" - }, - "category": { - "ind": "Awesome", - "base": "Awesome" - }, - "destination": null, - "uuid": "024aea08-84e2-4ce7-9032-422bdf9d4a79" - }, - { - "test": { - "type": "true" - }, - "category": { - "ind": "Other", - "base": "All Responses" - }, - "destination": "e32f191b-d667-4a9e-9820-6faaf98d9a27", - "uuid": "1469f833-3b09-4a25-bccf-fb5c05d50876" - } - ], - "webhook": null, - "label": "Response 1", - "operand": "@contact.name", - "finished_key": null, - "response_type": "C", - "y": 0, - "x": 126 - } - ], - "metadata": {} - }, - "id": 2700, - "flow_type": "F", - "name": "Flow 2" - } - ], - "triggers": [] -} diff --git a/media/test_flows/send_all.json b/media/test_flows/send_all.json deleted file mode 100644 index 292a1991240..00000000000 --- a/media/test_flows/send_all.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "campaigns": [], - "version": 10, - "site": "https://app.rapidpro.io", - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "14fb87aa-22cc-4e9a-a8d6-dd4640426bed", - "actions": [ - { - "msg": { - "eng": "Hey, how are you?" - }, - "media": {}, - "send_all": true, - "type": "reply" - } - ] - } - ], - "version": 10, - "flow_type": "F", - "entry": "14fb87aa-22cc-4e9a-a8d6-dd4640426bed", - "rule_sets": [], - "metadata": { - "expires": 10080, - "revision": 1, - "uuid": "4b8089fb-bb10-4cbc-800f-a0aa8bb21713", - "name": "Send All", - "saved_on": "2017-03-16T14:53:04.119831Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/sms_form.json b/media/test_flows/sms_form.json deleted file mode 100644 index 3b7767fdfe0..00000000000 --- a/media/test_flows/sms_form.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "version": 5, - "flows": [ - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 119, - "destination": "d0e01dde-dcd2-43e9-8f8e-ae1699a80395", - "uuid": "2e6aaa75-ffb7-4c48-baee-57e4149e452c", - "actions": [ - { - "msg": { - "eng": "What is your age, sex, location? Separate your responses with a space. For example \"15 f seattle\"." - }, - "type": "reply" - } - ] - }, - { - "y": 265, - "x": 904, - "destination": "d0e01dde-dcd2-43e9-8f8e-ae1699a80395", - "uuid": "9f1c79ae-581a-45ff-a9ea-4096f8231aad", - "actions": [ - { - "msg": { - "eng": "Sorry, @flow.age doesn't look like a valid age, please try again." - }, - "type": "reply" - } - ] - }, - { - "y": 414, - "x": 831, - "destination": "d0e01dde-dcd2-43e9-8f8e-ae1699a80395", - "uuid": "1cc063a7-afea-460d-b8a0-c8c2a2e37e35", - "actions": [ - { - "msg": { - "eng": "Sorry, @flow.gender doesn't look like a valid gender. Try again." - }, - "type": "reply" - } - ] - }, - { - "y": 571, - "x": 735, - "destination": "d0e01dde-dcd2-43e9-8f8e-ae1699a80395", - "uuid": "6be94ef5-bffc-4864-bd71-8e7cd87d7178", - "actions": [ - { - "msg": { - "eng": "I don't know the location @flow.location. Please try again." - }, - "type": "reply" - } - ] - }, - { - "y": 234, - "x": 116, - "destination": null, - "uuid": "0b18b474-00ab-40a0-af25-5d7c91aa64d7", - "actions": [ - { - "msg": { - "eng": "Thanks for your submission. We have that as:\n\n@flow.age / @flow.gender / @flow.location" - }, - "type": "reply" - } - ] - } - ], - "last_saved": "2015-08-05T19:02:29.296446Z", - "entry": "2e6aaa75-ffb7-4c48-baee-57e4149e452c", - "rule_sets": [ - { - "uuid": "d0e01dde-dcd2-43e9-8f8e-ae1699a80395", - "webhook_action": null, - "rules": [ - { - "category": { - "base": "All Responses", - "eng": "All Responses" - }, - "uuid": "bb0c523f-d216-4bf3-8794-664a9d9b3ccb", - "destination": "b7563d6f-279a-4b19-bff6-0ee3ccfa5d5f", - "destination_type": "R", - "test": { - "test": "true", - "type": "true" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - } - } - ], - "webhook": null, - "ruleset_type": "wait_message", - "label": "Message Form", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 117, - "x": 459, - "config": {} - }, - { - "uuid": "b7563d6f-279a-4b19-bff6-0ee3ccfa5d5f", - "webhook_action": null, - "rules": [ - { - "test": { - "max": "100", - "type": "between", - "min": "0" - }, - "category": { - "base": "0 - 100", - "eng": "0 - 100" - }, - "destination": "eb669471-fadf-489b-9ce6-c10bb4add673", - "uuid": "a9c7276e-2f5d-4e6d-9efd-2b8d39c3ec50", - "destination_type": "R" - }, - { - "category": { - "base": "Other", - "eng": "Other" - }, - "uuid": "83ce1500-c6e6-4eb1-8feb-76cd439c6e36", - "destination": "9f1c79ae-581a-45ff-a9ea-4096f8231aad", - "destination_type": "A", - "test": { - "test": "true", - "type": "true" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - } - } - ], - "webhook": null, - "ruleset_type": "form_field", - "label": "Age", - "operand": "@flow.message_form", - "finished_key": null, - "response_type": "", - "y": 226, - "x": 460, - "config": { - "field_delimiter": " ", - "field_index": 0 - } - }, - { - "uuid": "eb669471-fadf-489b-9ce6-c10bb4add673", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "eng": "Male m" - }, - "base": "Male m", - "type": "contains_any" - }, - "category": { - "base": "Male", - "eng": "Male" - }, - "destination": "3d8c9a32-fe04-4b95-9b2c-c66dd4ff2b24", - "uuid": "bda1d6b0-2b8d-4ddb-a888-3e41b3243a0f", - "destination_type": "R" - }, - { - "test": { - "test": { - "eng": "Female f" - }, - "base": "Female f", - "type": "contains_any" - }, - "category": { - "base": "Female", - "eng": "Female" - }, - "destination": "3d8c9a32-fe04-4b95-9b2c-c66dd4ff2b24", - "uuid": "4b8421ab-209f-4638-a267-82c4f83c73b2", - "destination_type": "R" - }, - { - "category": { - "base": "Other", - "eng": "Other" - }, - "uuid": "b61d7b97-21ab-4df5-a475-d16122aba572", - "destination": "1cc063a7-afea-460d-b8a0-c8c2a2e37e35", - "destination_type": "A", - "test": { - "test": "true", - "type": "true" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - } - } - ], - "webhook": null, - "ruleset_type": "form_field", - "label": "Gender", - "operand": "@flow.message_form", - "finished_key": null, - "response_type": "", - "y": 344, - "x": 385, - "config": { - "field_delimiter": " ", - "field_index": 1 - } - }, - { - "uuid": "3d8c9a32-fe04-4b95-9b2c-c66dd4ff2b24", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "eng": "seattle chicago miami" - }, - "base": "seattle chicago miami", - "type": "contains_any" - }, - "category": { - "base": "Valid", - "eng": "Valid" - }, - "destination": "0b18b474-00ab-40a0-af25-5d7c91aa64d7", - "uuid": "1b36cb64-b0ce-43cc-9b50-8f45f29c9643", - "destination_type": "A" - }, - { - "category": { - "base": "Other", - "eng": "Other" - }, - "uuid": "b9419b3c-0cd0-4956-93ac-b6fd0da2964a", - "destination": "6be94ef5-bffc-4864-bd71-8e7cd87d7178", - "destination_type": "A", - "test": { - "test": "true", - "type": "true" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - } - } - ], - "webhook": null, - "ruleset_type": "form_field", - "label": "Location", - "operand": "@flow.message_form", - "finished_key": null, - "response_type": "", - "y": 486, - "x": 366, - "config": { - "field_delimiter": " ", - "field_index": 2 - } - } - ], - "metadata": {} - }, - "expires": 10080, - "id": 34393, - "flow_type": "F", - "name": "SMS Form" - } - ], - "triggers": [] -} diff --git a/media/test_flows/start_missing_flow.json b/media/test_flows/start_missing_flow.json deleted file mode 100644 index 3dc5f4ee8bb..00000000000 --- a/media/test_flows/start_missing_flow.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "campaigns": [], - "version": 4, - "site": "http://textit.in", - "flows": [ - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "10cca2b1-f587-410b-b07d-10ef75df3590", - "uuid": "3839c698-832f-4584-88c8-f57bb1a6ef5a", - "actions": [ - { - "msg": { - "eng": "Hi there, would you like to start a flow?" - }, - "type": "reply" - } - ] - }, - { - "y": 160, - "x": 90, - "destination": null, - "uuid": "418d4ec8-976e-4f4e-aea8-28147bb93ae1", - "actions": [ - { - "type": "flow", - "name": "Missing Flow", - "id": 27122 - } - ] - }, - { - "y": 233, - "x": 395, - "destination": null, - "uuid": "6e8d145c-1b20-477c-a839-f703eeafe1fa", - "actions": [ - { - "name": "Missing Flow", - "contacts": [], - "variables": [ - { - "id": "@step.contact.tel" - } - ], - "groups": [], - "type": "trigger-flow", - "id": 27122 - } - ] - }, - { - "y": 145, - "x": 731, - "destination": null, - "uuid": "a56641a9-c62c-4361-8960-fa2a03b5757a", - "actions": [ - { - "msg": { - "eng": "This actionset should stay." - }, - "type": "reply" - }, - { - "type": "flow", - "name": "Missing Flow", - "id": 27122 - } - ] - } - ], - "last_saved": "2015-03-16T18:04:39.520660Z", - "entry": "3839c698-832f-4584-88c8-f57bb1a6ef5a", - "rule_sets": [ - { - "uuid": "10cca2b1-f587-410b-b07d-10ef75df3590", - "webhook_action": null, - "rules": [ - { - "test": { - "test": { - "eng": "Yes" - }, - "base": "Yes", - "type": "contains_any" - }, - "category": { - "base": "Yes", - "eng": "Yes" - }, - "destination": "418d4ec8-976e-4f4e-aea8-28147bb93ae1", - "config": { - "type": "contains_any", - "verbose_name": "has any of these words", - "name": "Contains any", - "localized": true, - "operands": 1 - }, - "uuid": "53de7473-1439-40fa-9c08-25a609264416" - }, - { - "test": { - "test": { - "eng": "No" - }, - "base": "No", - "type": "contains_any" - }, - "category": { - "base": "No", - "eng": "No" - }, - "destination": "6e8d145c-1b20-477c-a839-f703eeafe1fa", - "config": { - "type": "contains_any", - "verbose_name": "has any of these words", - "name": "Contains any", - "localized": true, - "operands": 1 - }, - "uuid": "dda639b2-f775-47c2-9f4d-fa5e35f79839" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses", - "eng": "Other" - }, - "destination": "a56641a9-c62c-4361-8960-fa2a03b5757a", - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - }, - "uuid": "942d62cd-9f56-4d06-bde0-6816989a41f0" - } - ], - "webhook": null, - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "C", - "y": 77, - "x": 361 - } - ], - "metadata": {} - }, - "id": 2800, - "flow_type": "F", - "name": "Start Missing Flow" - } - ], - "triggers": [] -} diff --git a/media/test_flows/start_missing_flow_from_actionset.json b/media/test_flows/start_missing_flow_from_actionset.json deleted file mode 100644 index 6e122c2eba2..00000000000 --- a/media/test_flows/start_missing_flow_from_actionset.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "campaigns": [], - "version": 6, - "site": "https://textit.in", - "flows": [ - { - "definition": { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": "53ab0927-f33b-46ab-a32c-50cd144cc9e7", - "uuid": "68df3ab0-a39d-48b1-81c6-72cc73c86f2f", - "actions": [ - { - "msg": { - "eng": "This is the first message." - }, - "type": "reply" - } - ] - }, - { - "y": 126, - "x": 272, - "destination": null, - "uuid": "53ab0927-f33b-46ab-a32c-50cd144cc9e7", - "actions": [ - { - "type": "flow", - "name": "Missing Flow", - "id": 35582 - } - ] - } - ], - "last_saved": "2015-10-12T21:21:09.106022Z", - "entry": "68df3ab0-a39d-48b1-81c6-72cc73c86f2f", - "rule_sets": [], - "metadata": {} - }, - "expires": 10080, - "id": 35583, - "flow_type": "F", - "name": "Start Missing Flow" - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/substitution.json b/media/test_flows/substitution.json deleted file mode 100644 index 995b40c8f9e..00000000000 --- a/media/test_flows/substitution.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapidpro.io", - "flows": [ - { - "definition": { - "rule_sets": [ - { - "uuid": "6c67aed5-a7ac-472f-903e-4eb1d43f913e", - "response_type": "C", - "rules": [ - { - "test": { - "type": "phone" - }, - "category": "phone", - "destination": "96c41cd1-b177-4e4e-b1bc-3359588be10b", - "uuid": "50f988f0-8401-4d24-82c4-165c474e9cca" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": "Other", - "destination": "77663a2e-cb80-46dd-9fed-944514301bf4", - "uuid": "b83a7dcc-122e-4164-8334-23e5837e0bfe" - } - ], - "label": "Phone", - "operand": "@step.value", - "y": 207, - "x": 276 - } - ], - "entry": "632bd152-98c6-4b83-8a5d-0f9343fcf884", - "action_sets": [ - { - "y": 351, - "x": 175, - "destination": null, - "uuid": "96c41cd1-b177-4e4e-b1bc-3359588be10b", - "actions": [ - { - "msg": "Thanks, you typed @flow.phone", - "type": "reply" - }, - { - "msg": "Hi from @step.contact! Your phone is @contact.tel.", - "variables": [ - { - "id": "@flow.phone", - "name": "@flow.phone" - } - ], - "type": "send", - "groups": [], - "contacts": [] - } - ] - }, - { - "y": 309, - "x": 576, - "destination": "6c67aed5-a7ac-472f-903e-4eb1d43f913e", - "uuid": "77663a2e-cb80-46dd-9fed-944514301bf4", - "actions": [ - { - "msg": "Sorry, that isn't a valid phone.", - "type": "reply" - } - ] - }, - { - "y": 0, - "x": 100, - "destination": "6c67aed5-a7ac-472f-903e-4eb1d43f913e", - "uuid": "632bd152-98c6-4b83-8a5d-0f9343fcf884", - "actions": [ - { - "msg": "Hi @step.contact, what is your phone number?", - "type": "reply" - } - ] - } - ], - "metadata": { - "notes": [] - } - }, - "flow_type": "F", - "name": "Substitution", - "id": 2900 - } - ], - "triggers": [] -} diff --git a/media/test_flows/test_db.json b/media/test_flows/test_db.json deleted file mode 100644 index ce62910e0b5..00000000000 --- a/media/test_flows/test_db.json +++ /dev/null @@ -1,822 +0,0 @@ -{ - "version": "13", - "site": "https://textit.com", - "flows": [ - { - "_ui": { - "nodes": { - "5bac8056-d24b-4134-9620-dbc0a4b81492": { - "position": { - "left": 0, - "top": 0 - }, - "type": "execute_actions" - }, - "5ff349ab-e74a-47d3-9ada-9fe1bd99416e": { - "position": { - "left": 480, - "top": 60 - }, - "type": "execute_actions" - }, - "70e72b75-eb66-436a-a0c9-ce890ff8f537": { - "type": "wait_for_response", - "position": { - "left": 0, - "top": 120 - }, - "config": { - "cases": {} - } - }, - "b2bd251a-d241-4bb1-a60b-6caf16014eda": { - "position": { - "left": 0, - "top": 280 - }, - "type": "execute_actions" - }, - "2e539a4c-68ff-4bf7-be23-b57845d2a550": { - "position": { - "left": 520, - "top": 560 - }, - "type": "execute_actions" - }, - "34ae02f2-4cb2-4b63-8ec5-38b5c128e497": { - "position": { - "left": 80, - "top": 480 - }, - "type": "wait_for_response" - }, - "8362d6e8-6bf9-43a5-8f74-44fd0955ec75": { - "position": { - "left": 120, - "top": 680 - }, - "type": "execute_actions" - }, - "0406725d-7701-463e-86a5-88a8af1ca42a": { - "position": { - "left": 120, - "top": 900 - }, - "type": "wait_for_response" - }, - "440d670a-4ed5-46ff-9906-228e6ed498a4": { - "position": { - "left": 120, - "top": 1040 - }, - "type": "execute_actions" - }, - "60d2ee45-5570-4ab9-8dfd-8d512732f765": { - "position": { - "left": 260, - "top": 300 - }, - "type": "execute_actions" - } - }, - "stickies": {} - }, - "expire_after_minutes": 720, - "language": "und", - "localization": {}, - "name": "Favorites", - "nodes": [ - { - "actions": [ - { - "text": "What is your favorite color?", - "type": "send_msg", - "uuid": "cbcd7a22-2835-4ef9-889d-1a0ae9c9293e", - "quick_replies": [] - } - ], - "exits": [ - { - "destination_uuid": "70e72b75-eb66-436a-a0c9-ce890ff8f537", - "uuid": "79c8dfd7-bfc9-47a9-a39a-0daba71b7e47" - } - ], - "uuid": "5bac8056-d24b-4134-9620-dbc0a4b81492" - }, - { - "actions": [ - { - "text": "I don't know that color. Try again.", - "type": "send_msg", - "uuid": "557efd8d-1e92-4150-94cd-18b26204b23d", - "quick_replies": [] - } - ], - "exits": [ - { - "destination_uuid": "70e72b75-eb66-436a-a0c9-ce890ff8f537", - "uuid": "7bb84345-0ba5-4c63-86f8-bc02f24be7c5" - } - ], - "uuid": "5ff349ab-e74a-47d3-9ada-9fe1bd99416e" - }, - { - "uuid": "70e72b75-eb66-436a-a0c9-ce890ff8f537", - "actions": [], - "router": { - "type": "switch", - "default_category_uuid": "1c864609-e85d-42fb-ad7c-0819825a1295", - "cases": [ - { - "arguments": [ - "Red" - ], - "type": "has_any_word", - "uuid": "0e33aa43-bc0d-47e5-8b6f-0a76154e1956", - "category_uuid": "4397bdc7-749b-4441-9e5b-299cb6405c16" - }, - { - "arguments": [ - "Green" - ], - "type": "has_any_word", - "uuid": "86e49280-ba0a-4960-a94d-315cfb2bf323", - "category_uuid": "95b43ef3-9e17-453c-8bf3-b0c92f6f2e54" - }, - { - "arguments": [ - "Blue" - ], - "type": "has_any_word", - "uuid": "4d9224e3-fa56-4601-b190-26a095912804", - "category_uuid": "1e95e408-b060-420a-a4c4-b9d6a1bb3ea0" - }, - { - "arguments": [ - "Navy" - ], - "type": "has_any_word", - "uuid": "e4bebbcf-cc80-4751-a0c6-e0912a815381", - "category_uuid": "1e95e408-b060-420a-a4c4-b9d6a1bb3ea0" - } - ], - "categories": [ - { - "exit_uuid": "cc45b6f3-08fd-40a8-a4d3-b910f27a98bc", - "name": "Red", - "uuid": "4397bdc7-749b-4441-9e5b-299cb6405c16" - }, - { - "exit_uuid": "832c7893-d2fb-4431-b76a-2cb948aa16c0", - "name": "Green", - "uuid": "95b43ef3-9e17-453c-8bf3-b0c92f6f2e54" - }, - { - "exit_uuid": "ad5c10d9-d5cc-4123-abe1-649a471241cc", - "name": "Blue", - "uuid": "1e95e408-b060-420a-a4c4-b9d6a1bb3ea0" - }, - { - "exit_uuid": "ddc28771-2373-4a0e-a93b-f5dbf50130b0", - "name": "Other", - "uuid": "1c864609-e85d-42fb-ad7c-0819825a1295" - }, - { - "exit_uuid": "272fe4ef-0151-479b-9710-2df520a96aa0", - "name": "No Response", - "uuid": "0ed4ec87-3146-4e51-939f-6ce04e9dc372" - } - ], - "operand": "@input.text", - "wait": { - "type": "msg", - "timeout": { - "seconds": 300, - "category_uuid": "0ed4ec87-3146-4e51-939f-6ce04e9dc372" - } - }, - "result_name": "Color" - }, - "exits": [ - { - "destination_uuid": "b2bd251a-d241-4bb1-a60b-6caf16014eda", - "uuid": "cc45b6f3-08fd-40a8-a4d3-b910f27a98bc" - }, - { - "destination_uuid": "b2bd251a-d241-4bb1-a60b-6caf16014eda", - "uuid": "832c7893-d2fb-4431-b76a-2cb948aa16c0" - }, - { - "destination_uuid": "b2bd251a-d241-4bb1-a60b-6caf16014eda", - "uuid": "ad5c10d9-d5cc-4123-abe1-649a471241cc" - }, - { - "destination_uuid": "5ff349ab-e74a-47d3-9ada-9fe1bd99416e", - "uuid": "ddc28771-2373-4a0e-a93b-f5dbf50130b0" - }, - { - "destination_uuid": "60d2ee45-5570-4ab9-8dfd-8d512732f765", - "uuid": "272fe4ef-0151-479b-9710-2df520a96aa0" - } - ] - }, - { - "actions": [ - { - "text": "Good choice, I like @results.color.category_localized too! What is your favorite beer?", - "type": "send_msg", - "uuid": "0760d41c-0b19-416e-a456-0fa07d1f9d1d", - "quick_replies": [] - } - ], - "exits": [ - { - "destination_uuid": "34ae02f2-4cb2-4b63-8ec5-38b5c128e497", - "uuid": "344bc8ef-75d6-4462-ab30-346d0e8328b1" - } - ], - "uuid": "b2bd251a-d241-4bb1-a60b-6caf16014eda" - }, - { - "actions": [ - { - "text": "Sorry you can't participate right now, I'll try again later.", - "type": "send_msg", - "uuid": "f6aa4c18-b7b6-4076-9ece-516bacf90214", - "quick_replies": [] - } - ], - "exits": [ - { - "uuid": "4c1d34db-478b-47d1-ad17-4f03a9598333" - } - ], - "uuid": "60d2ee45-5570-4ab9-8dfd-8d512732f765" - }, - { - "exits": [ - { - "destination_uuid": "8362d6e8-6bf9-43a5-8f74-44fd0955ec75", - "uuid": "7644fb28-942f-4fca-a515-3e52f2678bae" - }, - { - "destination_uuid": "8362d6e8-6bf9-43a5-8f74-44fd0955ec75", - "uuid": "165d9dce-7a8b-4d12-a633-8b82552678db" - }, - { - "destination_uuid": "8362d6e8-6bf9-43a5-8f74-44fd0955ec75", - "uuid": "d4bf9e11-f2ac-4b72-aa92-91b39fa8ba8e" - }, - { - "destination_uuid": "8362d6e8-6bf9-43a5-8f74-44fd0955ec75", - "uuid": "8eaea6ac-f9a7-490e-9aaa-f76dba22b298" - }, - { - "destination_uuid": "2e539a4c-68ff-4bf7-be23-b57845d2a550", - "uuid": "fa156c46-bd39-4bc2-91ca-c9710ad2cd5f" - } - ], - "router": { - "cases": [ - { - "arguments": [ - "Mutzig" - ], - "category_uuid": "afa671f5-8425-44be-ac8d-6c8508055739", - "type": "has_any_word", - "uuid": "dc2b1193-a214-4269-b3fd-9f20863e822d" - }, - { - "arguments": [ - "Primus" - ], - "category_uuid": "a6549d2f-38c5-4b07-be95-a599f6d468fa", - "type": "has_any_word", - "uuid": "21e62688-4e9c-4f9a-b4e7-476b87b37517" - }, - { - "arguments": [ - "Turbo King" - ], - "category_uuid": "81469d86-54c4-451a-b0b0-525f404d2b05", - "type": "has_any_word", - "uuid": "d9c60b83-fe0e-4ad6-8f48-57878f2b9185" - }, - { - "arguments": [ - "Skol" - ], - "category_uuid": "b98bdd8f-97d5-4fc5-b7dc-d352e467f8f1", - "type": "has_any_word", - "uuid": "35bfdcd2-45e9-483c-aa2b-3b2dc61e60f6" - } - ], - "categories": [ - { - "exit_uuid": "7644fb28-942f-4fca-a515-3e52f2678bae", - "name": "Mutzig", - "uuid": "afa671f5-8425-44be-ac8d-6c8508055739" - }, - { - "exit_uuid": "165d9dce-7a8b-4d12-a633-8b82552678db", - "name": "Primus", - "uuid": "a6549d2f-38c5-4b07-be95-a599f6d468fa" - }, - { - "exit_uuid": "d4bf9e11-f2ac-4b72-aa92-91b39fa8ba8e", - "name": "Turbo King", - "uuid": "81469d86-54c4-451a-b0b0-525f404d2b05" - }, - { - "exit_uuid": "8eaea6ac-f9a7-490e-9aaa-f76dba22b298", - "name": "Skol", - "uuid": "b98bdd8f-97d5-4fc5-b7dc-d352e467f8f1" - }, - { - "exit_uuid": "fa156c46-bd39-4bc2-91ca-c9710ad2cd5f", - "name": "Other", - "uuid": "ebe96e2f-8a66-4974-848e-6524b0e8893b" - } - ], - "default_category_uuid": "ebe96e2f-8a66-4974-848e-6524b0e8893b", - "operand": "@input", - "result_name": "Beer", - "type": "switch", - "wait": { - "type": "msg" - } - }, - "uuid": "34ae02f2-4cb2-4b63-8ec5-38b5c128e497", - "actions": [] - }, - { - "actions": [ - { - "text": "I don't know that one, try again please.", - "type": "send_msg", - "uuid": "75bf7db1-1cb9-4c63-8936-4691f08ba1e1", - "quick_replies": [] - } - ], - "exits": [ - { - "destination_uuid": "34ae02f2-4cb2-4b63-8ec5-38b5c128e497", - "uuid": "72774a1d-858f-498c-ad69-d04bb49af876" - } - ], - "uuid": "2e539a4c-68ff-4bf7-be23-b57845d2a550" - }, - { - "actions": [ - { - "text": "Mmmmm... delicious @results.beer.category_localized. If only they made @(lower(results.color)) @results.beer.category_localized! Lastly, what is your name?", - "type": "send_msg", - "uuid": "5d6c182b-f5d9-4ac9-be02-81337b73c503", - "quick_replies": [] - } - ], - "exits": [ - { - "destination_uuid": "0406725d-7701-463e-86a5-88a8af1ca42a", - "uuid": "6a28d354-a156-45db-8ae9-e4fe67c263a5" - } - ], - "uuid": "8362d6e8-6bf9-43a5-8f74-44fd0955ec75" - }, - { - "exits": [ - { - "destination_uuid": "440d670a-4ed5-46ff-9906-228e6ed498a4", - "uuid": "d740a951-37b2-4851-8fe8-406268f3eeec" - } - ], - "router": { - "cases": [], - "categories": [ - { - "exit_uuid": "d740a951-37b2-4851-8fe8-406268f3eeec", - "name": "All Responses", - "uuid": "b38fdc7f-b2e2-4dd6-acf2-68bb8e9cc84f" - } - ], - "default_category_uuid": "b38fdc7f-b2e2-4dd6-acf2-68bb8e9cc84f", - "operand": "@input", - "result_name": "Name", - "type": "switch", - "wait": { - "type": "msg" - } - }, - "uuid": "0406725d-7701-463e-86a5-88a8af1ca42a", - "actions": [] - }, - { - "actions": [ - { - "text": "Thanks @results.name, we are all done!", - "type": "send_msg", - "uuid": "1d09b2b7-8fc5-48ca-8c69-70a7f4e4ba0b", - "quick_replies": [] - }, - { - "uuid": "90a1eb56-bf99-42ba-82c8-e4bfcaf738d7", - "type": "set_contact_name", - "name": "@results.name" - } - ], - "exits": [ - { - "uuid": "ac30d632-1389-45c2-8b36-a5394feadf7f" - } - ], - "uuid": "440d670a-4ed5-46ff-9906-228e6ed498a4" - } - ], - "spec_version": "13.5.0", - "type": "messaging", - "uuid": "4fad232a-ca3a-4da7-be93-21492d407a33", - "revision": 38 - }, - { - "name": "Support", - "uuid": "de428d9c-3f63-4c66-bfa0-0c67e65aed66", - "spec_version": "13.5.0", - "language": "eng", - "type": "messaging", - "nodes": [ - { - "uuid": "6d796df5-0e15-4d93-98ee-0d4ffa78adef", - "actions": [ - { - "attachments": [], - "text": "Hi there, thanks for reaching out. Please give me as much detail as possible and I'll make sure we get somebody over to you right away!", - "type": "send_msg", - "quick_replies": [], - "uuid": "f05569c5-7a83-49d5-a09f-cf0d24780fae" - } - ], - "exits": [ - { - "uuid": "59fc2ad8-1728-4ff4-a9b3-cd10eac8da32", - "destination_uuid": "d634053c-c012-42d6-97d3-e18d4d8499d7" - } - ] - }, - { - "uuid": "d634053c-c012-42d6-97d3-e18d4d8499d7", - "actions": [ - { - "uuid": "b0a8d89b-b278-4129-bb41-d3f7f5075e02", - "type": "open_ticket", - "body": "", - "topic": { - "uuid": "ba121ac9-e7ff-4ef7-bf62-af81a6511f5a", - "name": "General", - "counts": { - "open": 0, - "closed": 0 - }, - "system": true, - "created_on": "2024-05-01T22:45:59.841309Z" - }, - "assignee": null, - "result_name": "Result" - } - ], - "router": { - "type": "switch", - "operand": "@results.result", - "cases": [ - { - "uuid": "0d7e136d-4d52-410f-861a-8e900468b145", - "type": "has_category", - "arguments": [ - "Success" - ], - "category_uuid": "f0652a4e-7b3f-4a68-b565-010d18386c19" - } - ], - "categories": [ - { - "uuid": "f0652a4e-7b3f-4a68-b565-010d18386c19", - "name": "Success", - "exit_uuid": "6166dc7f-b343-4f1a-879f-b03e75fa4766" - }, - { - "uuid": "0af54548-598d-40ef-8e68-20bad9d7c03e", - "name": "Failure", - "exit_uuid": "0068e8de-10e3-4bd7-9bf6-57294dccfbc9" - } - ], - "default_category_uuid": "0af54548-598d-40ef-8e68-20bad9d7c03e" - }, - "exits": [ - { - "uuid": "6166dc7f-b343-4f1a-879f-b03e75fa4766", - "destination_uuid": null - }, - { - "uuid": "0068e8de-10e3-4bd7-9bf6-57294dccfbc9", - "destination_uuid": null - } - ] - } - ], - "_ui": { - "nodes": { - "6d796df5-0e15-4d93-98ee-0d4ffa78adef": { - "position": { - "left": 20, - "top": 0 - }, - "type": "execute_actions" - }, - "d634053c-c012-42d6-97d3-e18d4d8499d7": { - "type": "split_by_ticket", - "position": { - "left": 20, - "top": 200 - }, - "config": {} - } - } - }, - "revision": 11, - "expire_after_minutes": 10080, - "localization": {} - }, - { - "name": "New Chat", - "uuid": "5fe7d119-9fca-41f4-adde-a4171301152f", - "spec_version": "13.5.0", - "language": "eng", - "type": "messaging", - "nodes": [ - { - "uuid": "f805ec81-be27-4d1d-bd1a-a513df850235", - "actions": [ - { - "attachments": [], - "text": "\ud83d\udc4b Welcome! Thanks for visiting our web page. Is there any thing I can answer for you?", - "type": "send_msg", - "quick_replies": [], - "uuid": "a0610c91-5e1c-43dd-bb31-88ce650d56ae" - } - ], - "exits": [ - { - "uuid": "941a4343-6eee-439f-9c1d-77cb81cbf78f", - "destination_uuid": "6fe16e87-40ea-46dd-8975-21e734270b86" - } - ] - }, - { - "uuid": "6fe16e87-40ea-46dd-8975-21e734270b86", - "actions": [], - "router": { - "type": "switch", - "default_category_uuid": "53c5cee4-963c-47d0-92fc-817647758d6b", - "cases": [ - { - "arguments": [ - "yes" - ], - "type": "has_any_word", - "uuid": "c14c8f2f-74bc-46ed-87d6-e5676a4baf73", - "category_uuid": "be9f6f8d-7401-46df-85ba-a929f5e36430" - }, - { - "arguments": [ - "no" - ], - "type": "has_any_word", - "uuid": "3b2875fe-ce4c-4ece-b518-af875b3bcef3", - "category_uuid": "8b1387c9-319c-4d21-851a-489404324390" - } - ], - "categories": [ - { - "uuid": "be9f6f8d-7401-46df-85ba-a929f5e36430", - "name": "Yes", - "exit_uuid": "606b7207-eb1c-4f7b-a0ee-12c7da8d0e7b" - }, - { - "uuid": "8b1387c9-319c-4d21-851a-489404324390", - "name": "No", - "exit_uuid": "9bcc3740-5fee-4829-84be-fe85f9498792" - }, - { - "uuid": "53c5cee4-963c-47d0-92fc-817647758d6b", - "name": "Other", - "exit_uuid": "5389008f-d3c7-4d86-97bb-952c116f6762" - } - ], - "operand": "@input.text", - "wait": { - "type": "msg" - }, - "result_name": "Result 1" - }, - "exits": [ - { - "uuid": "606b7207-eb1c-4f7b-a0ee-12c7da8d0e7b", - "destination_uuid": "81f59084-b989-4bfc-9fab-b944c65647c2" - }, - { - "uuid": "9bcc3740-5fee-4829-84be-fe85f9498792", - "destination_uuid": "dcf59feb-82d7-4eae-a63f-23905e8961b3" - }, - { - "uuid": "5389008f-d3c7-4d86-97bb-952c116f6762", - "destination_uuid": "81f59084-b989-4bfc-9fab-b944c65647c2" - } - ] - }, - { - "uuid": "dcf59feb-82d7-4eae-a63f-23905e8961b3", - "actions": [ - { - "attachments": [], - "text": "Hey, no problem, if you need anything, you know where to find me!", - "type": "send_msg", - "quick_replies": [], - "uuid": "31e3b9fc-719f-4ed1-8f68-4e9d6d10a9ea" - } - ], - "exits": [ - { - "uuid": "95c0c45b-effe-4350-bc7d-d128680925a5", - "destination_uuid": null - } - ] - }, - { - "uuid": "81f59084-b989-4bfc-9fab-b944c65647c2", - "actions": [ - { - "attachments": [], - "text": "Ok, please add as much additional detail as possible and I'll get somebody over to help.", - "type": "send_msg", - "quick_replies": [], - "uuid": "3f3dc468-043f-4386-93e2-c448428c8f38" - } - ], - "exits": [ - { - "uuid": "82398b8f-df44-4069-af05-f8a41f3056ff", - "destination_uuid": "f43743df-3d6c-4ae2-8f24-c6bef3e999fc" - } - ] - }, - { - "uuid": "f43743df-3d6c-4ae2-8f24-c6bef3e999fc", - "actions": [ - { - "uuid": "8b26cc8c-85d7-490c-9494-5986141a751c", - "type": "open_ticket", - "body": "", - "topic": { - "uuid": "ba121ac9-e7ff-4ef7-bf62-af81a6511f5a", - "name": "General", - "counts": { - "open": 0, - "closed": 0 - }, - "system": true, - "created_on": "2024-05-01T22:45:59.841309Z" - }, - "assignee": null, - "result_name": "Result" - } - ], - "router": { - "type": "switch", - "operand": "@results.result", - "cases": [ - { - "uuid": "7e7ac0f5-1249-484d-8774-eaffced73e4d", - "type": "has_category", - "arguments": [ - "Success" - ], - "category_uuid": "380bb0c4-913f-45e0-806c-f1e6ea75933e" - } - ], - "categories": [ - { - "uuid": "380bb0c4-913f-45e0-806c-f1e6ea75933e", - "name": "Success", - "exit_uuid": "f36e4bb3-5f73-4334-b25a-e4f43e0f1955" - }, - { - "uuid": "d43e8367-cd56-4063-88cc-5be83643c0d9", - "name": "Failure", - "exit_uuid": "797d6c62-34c0-4486-96e3-a7a2808c8784" - } - ], - "default_category_uuid": "d43e8367-cd56-4063-88cc-5be83643c0d9" - }, - "exits": [ - { - "uuid": "f36e4bb3-5f73-4334-b25a-e4f43e0f1955", - "destination_uuid": null - }, - { - "uuid": "797d6c62-34c0-4486-96e3-a7a2808c8784", - "destination_uuid": null - } - ] - } - ], - "_ui": { - "nodes": { - "f805ec81-be27-4d1d-bd1a-a513df850235": { - "position": { - "left": 0, - "top": 0 - }, - "type": "execute_actions" - }, - "6fe16e87-40ea-46dd-8975-21e734270b86": { - "type": "wait_for_response", - "position": { - "left": 0, - "top": 160 - }, - "config": { - "cases": {} - } - }, - "dcf59feb-82d7-4eae-a63f-23905e8961b3": { - "position": { - "left": 300, - "top": 320 - }, - "type": "execute_actions" - }, - "81f59084-b989-4bfc-9fab-b944c65647c2": { - "position": { - "left": 0, - "top": 360 - }, - "type": "execute_actions" - }, - "f43743df-3d6c-4ae2-8f24-c6bef3e999fc": { - "type": "split_by_ticket", - "position": { - "left": 0, - "top": 540 - }, - "config": {} - } - } - }, - "revision": 72, - "expire_after_minutes": 10080, - "localization": {} - } - ], - "campaigns": [], - "triggers": [ - { - "trigger_type": "K", - "flow": { - "uuid": "4fad232a-ca3a-4da7-be93-21492d407a33", - "name": "Favorites" - }, - "groups": [], - "exclude_groups": [], - "channel": null, - "keywords": [ - "fav" - ], - "match_type": "F" - }, - { - "trigger_type": "N", - "flow": { - "uuid": "5fe7d119-9fca-41f4-adde-a4171301152f", - "name": "New Chat" - }, - "groups": [], - "exclude_groups": [], - "channel": null - }, - { - "trigger_type": "K", - "flow": { - "uuid": "de428d9c-3f63-4c66-bfa0-0c67e65aed66", - "name": "Support" - }, - "groups": [], - "exclude_groups": [], - "channel": null, - "keywords": [ - "help" - ], - "match_type": "F" - } - ], - "fields": [], - "groups": [] -} \ No newline at end of file diff --git a/media/test_flows/triggered.json b/media/test_flows/triggered.json deleted file mode 100644 index 87f3505df1e..00000000000 --- a/media/test_flows/triggered.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "campaigns": [], - "version": 8, - "site": "http://rapidpro.io", - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "7b99bb2e-054f-4a60-a986-367ecf114879", - "actions": [ - { - "msg": { - "eng": "Honey, I triggered the flow! @extra.text" - }, - "type": "reply" - } - ] - } - ], - "version": 8, - "flow_type": "F", - "entry": "7b99bb2e-054f-4a60-a986-367ecf114879", - "rule_sets": [], - "metadata": { - "expires": 10080, - "saved_on": "2016-07-21T16:34:32.457154Z", - "id": 25994, - "name": "Triggeree", - "revision": 1 - } - }, - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "06a3be8b-36f9-4f73-b31a-95a1e8ee920d", - "actions": [ - { - "name": "Triggeree", - "contacts": [ - { - "name": "Marshawn", - "id": contact_id - } - ], - "variables": [], - "groups": [], - "type": "trigger-flow", - "id": 25994 - }, - { - "name": "Triggeree", - "type": "flow", - "id": 25994 - } - ] - } - ], - "version": 8, - "flow_type": "F", - "entry": "98d0948b-c50d-4033-b07c-403d324aa147", - "rule_sets": [{ - "uuid": "98d0948b-c50d-4033-b07c-403d324aa147", - "webhook_action": "GET", - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "eng": "All Responses" - }, - "destination": "06a3be8b-36f9-4f73-b31a-95a1e8ee920d", - "uuid": "1e89ff33-80fe-4d34-9ced-3b96f5aacd50", - "destination_type": "A" - } - ], - "webhook": "http://localhost:49999/where", - "ruleset_type": "webhook", - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 0, - "x": 328, - "config": {} - }], - "metadata": { - "expires": 10080, - "revision": 1, - "id": 25995, - "name": "Triggerer", - "saved_on": "2016-07-21T16:35:05.717556Z" - } - } - ], - "triggers": [] -} diff --git a/media/test_flows/triggered_flow.json b/media/test_flows/triggered_flow.json deleted file mode 100644 index cfe6901a54e..00000000000 --- a/media/test_flows/triggered_flow.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "campaigns": [], - "version": 3, - "site": "http://rapdipro.io", - "flows": [ - { - "definition": { - "entry": "4ec3d47a-eef3-4d80-b5b1-38dab8e518dc", - "rule_sets": [], - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "4ec3d47a-eef3-4d80-b5b1-38dab8e518dc", - "actions": [ - { - "msg": "This is the triggered flow", - "type": "reply" - } - ] - } - ], - "metadata": { - "notes": [] - } - }, - "id": 12140, - "flow_type": "F", - "name": "Triggered Flow" - }, - { - "definition": { - "entry": "b6c4d782-5165-4541-bb2e-7348c9676882", - "rule_sets": [], - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "b6c4d782-5165-4541-bb2e-7348c9676882", - "actions": [ - { - "name": "Triggered Flow", - "contacts": [], - "variables": [], - "groups": [ - { - "name": "Survey Audience", - "id": 6250 - } - ], - "type": "trigger-flow", - "id": 12140 - } - ] - } - ], - "metadata": { - "notes": [] - } - }, - "id": 12141, - "flow_type": "F", - "name": "Trigger a Flow" - } - ], - "triggers": [] -} diff --git a/media/test_flows/two_to_all.json b/media/test_flows/two_to_all.json deleted file mode 100644 index b9d3e9e2b66..00000000000 --- a/media/test_flows/two_to_all.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "campaigns": [], - "version": 10, - "site": "https://app.rapidpro.io", - "flows": [ - { - "base_language": "eng", - "action_sets": [ - { - "y": 0, - "x": 100, - "destination": null, - "uuid": "a42b6981-1b8c-44a9-8260-3bf504c9bb25", - "actions": [ - { - "msg": { - "eng": "first message" - }, - "media": {}, - "send_all": true, - "type": "reply" - }, - { - "msg": { - "eng": "second message" - }, - "media": {}, - "send_all": true, - "type": "reply" - } - ] - } - ], - "version": 10, - "flow_type": "F", - "entry": "a42b6981-1b8c-44a9-8260-3bf504c9bb25", - "rule_sets": [], - "metadata": { - "expires": 10080, - "revision": 3, - "uuid": "a9de95b7-2959-40b7-afdd-99ef1975b812", - "name": "Two to all", - "saved_on": "2017-03-17T14:27:29.032085Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/ussd_example.json b/media/test_flows/ussd_example.json deleted file mode 100644 index 8f52a2ea9a7..00000000000 --- a/media/test_flows/ussd_example.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "version": 8, - "flows": [ - { - "base_language": "base", - "action_sets": [], - "version": 8, - "flow_type": "U", - "entry": "5e0fe53f-1caa-434d-97e7-189f33353372", - "rule_sets": [ - { - "uuid": "5e0fe53f-1caa-434d-97e7-189f33353372", - "webhook_action": null, - "rules": [ - { - "category": { - "base": "Sports" - }, - "test": { - "test": 1, - "type": "eq" - }, - "destination": "66aa0bb5-d1e5-4026-a056-fd22c353539e", - "uuid": "337e5e25-204b-4786-bee6-ff4c431986eb", - "destination_type": "R" - }, - { - "category": { - "base": "Politics" - }, - "test": { - "test": 2, - "type": "eq" - }, - "destination": "66aa0bb5-d1e5-4026-a056-fd22c353539e", - "uuid": "45803c40-aaf3-44d3-a301-f7eb35fa6be4", - "destination_type": "R" - }, - { - "category": { - "base": "Movies" - }, - "test": { - "test": 3, - "type": "eq" - }, - "destination": "66aa0bb5-d1e5-4026-a056-fd22c353539e", - "uuid": "13f3ed00-44d0-4119-b5fd-269c8f09fce3", - "destination_type": "R" - }, - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "Other" - }, - "destination": null, - "uuid": "6006a206-10f0-4937-a33f-7ec80deb8540" - } - ], - "webhook": null, - "ruleset_type": "wait_menu", - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 0, - "x": 624, - "config": { - "ussd_menu": [ - { - "category": { - "base": "Sports" - }, - "uuid": "337e5e25-204b-4786-bee6-ff4c431986eb", - "option": 1, - "label": "I'm interested in sports" - }, - { - "category": { - "base": "Politics" - }, - "uuid": "45803c40-aaf3-44d3-a301-f7eb35fa6be4", - "option": 2, - "label": "I'm interested in politics" - }, - { - "category": { - "base": "Movies" - }, - "uuid": "13f3ed00-44d0-4119-b5fd-269c8f09fce3", - "option": 3, - "label": "I'm interested in movies" - } - ], - "ussd_message": { - "base": "What would you like to read about?" - } - } - }, - { - "uuid": "66aa0bb5-d1e5-4026-a056-fd22c353539e", - "webhook_action": null, - "rules": [ - { - "test": { - "test": "true", - "type": "true" - }, - "category": { - "base": "All Responses" - }, - "uuid": "0df9b0ac-d241-460c-9b7c-f9f350a661bf" - } - ], - "webhook": null, - "ruleset_type": "wait_ussd", - "label": "Response 2", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 310, - "x": 725, - "config": { - "ussd_menu": [ - { - "category": { - "base": "Dfd" - }, - "uuid": "03f39461-b649-4cb0-97f9-9ce6ecb5c606", - "option": 1, - "label": "dfdf" - }, - { - "category": {}, - "uuid": "8211b1dc-b443-4b1c-8849-bf18a69e13ef", - "option": 2, - "label": "" - } - ], - "ussd_message": { - "base": "Thank you!" - } - } - } - ], - "metadata": { - "name": "USSD example", - "notes": [], - "expires": 10080, - "revision": 37, - "id": 26, - "saved_on": "2016-02-17T16:17:48.396242Z" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/webhook_rule_first.json b/media/test_flows/webhook_rule_first.json deleted file mode 100644 index 6be5a7e436b..00000000000 --- a/media/test_flows/webhook_rule_first.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "version": 7, - "flows": [ - { - "version": 7, - "base_language": "eng", - "action_sets": [ - { - "y": 140, - "x": 190, - "destination": null, - "uuid": "c81d60ec-9a74-48d6-a55f-e70a5d7195d3", - "actions": [ - { - "msg": { - "eng": "Testing this out" - }, - "type": "reply" - } - ] - } - ], - "last_saved": "2015-07-29T20:57:32.146036Z", - "entry": "9b3b6b7d-13ec-46ea-8918-a83a4099be33", - "rule_sets": [ - { - "uuid": "9b3b6b7d-13ec-46ea-8918-a83a4099be33", - "webhook_action": "GET", - "rules": [ - { - "category": { - "base": "All Responses", - "eng": "All Responses" - }, - "uuid": "0734d69a-99c1-45f6-a3df-7246408c4565", - "destination": "c81d60ec-9a74-48d6-a55f-e70a5d7195d3", - "destination_type": "A", - "test": { - "test": "true", - "type": "true" - }, - "config": { - "type": "true", - "verbose_name": "contains anything", - "name": "Other", - "operands": 0 - } - } - ], - "webhook": "http://google.com", - "ruleset_type": "webhook", - "label": "Response 1", - "operand": "@step.value", - "finished_key": null, - "response_type": "", - "y": 0, - "x": 100 - } - ], - "flow_type": "F", - "metadata": { - "expires": 10080, - "id": 33868, - "name": "Test Webhook First" - } - } - ], - "triggers": [] -} \ No newline at end of file diff --git a/media/test_flows/with_message_topic.json b/media/test_flows/with_message_topic.json deleted file mode 100644 index b99e4a0aafa..00000000000 --- a/media/test_flows/with_message_topic.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": "13", - "flows": [ - { - "uuid": "c07d368e-fe1d-469d-b267-bca02d17c3e3", - "name": "Topic Flow", - "spec_version": "13.0.0", - "language": "eng", - "type": "messaging", - "revision": 1, - "expire_after_minutes": 10080, - "localization": {}, - "nodes": [ - { - "uuid": "5bf98a89-d38d-40ba-8e5e-d54cad1777f1", - "actions": [ - { - "attachments": [], - "text": "This is a message with a topic.", - "type": "send_msg", - "quick_replies": [], - "uuid": "b103d563-9320-40fe-8f96-c9d3fbe0262d", - "templating": null, - "topic": "agent" - } - ], - "exits": [ - { - "uuid": "29dd720b-00ed-4304-97b0-38c65bc38e30" - } - ] - } - ], - "_ui": { - "nodes": { - "5bf98a89-d38d-40ba-8e5e-d54cad1777f1": { - "position": { - "left": 20, - "top": 40 - }, - "type": "execute_actions" - } - } - } - } - ] -}