Packages

An open source two way communication platform for the social sector

Current section

Files

Jump to
glific priv data flows registration.json
Raw

priv/data/flows/registration.json

{
"_ui": {
"nodes": {
"0d9310ec-62c0-4a4d-8685-c3bea1f9e23e": {
"position": {
"left": 380,
"top": 920
},
"type": "execute_actions"
},
"0ea4f5b1-8b98-4a48-9038-11c406f937c2": {
"position": {
"left": 500,
"top": 1000
},
"type": "execute_actions"
},
"1654b934-1861-4565-891e-73d54aa35a98": {
"position": {
"left": 400,
"top": 1240
},
"type": "execute_actions"
},
"1bd815c0-f1b0-4da1-b942-38fd28329ca7": {
"position": {
"left": 620,
"top": 1080
},
"type": "execute_actions"
},
"1d4bdc91-6996-4879-b5ea-c3996b3a03c0": {
"position": {
"left": 860,
"top": 740
},
"type": "execute_actions"
},
"3631eb12-391d-4d69-afe6-8446ed5ebbca": {
"position": {
"left": 440,
"top": 0
},
"type": "execute_actions"
},
"5d13fa3e-29a8-439a-8b40-2c8c85f252a3": {
"position": {
"left": 400,
"top": 1360
},
"type": "execute_actions"
},
"64b4223e-3dc1-4283-bcfe-7a3b76f11a08": {
"config": {
"cases": {}
},
"position": {
"left": 360,
"top": 680
},
"type": "wait_for_response"
},
"93f7697c-f869-47ef-9370-f8325697088b": {
"position": {
"left": 180,
"top": 360
},
"type": "execute_actions"
},
"d7f7f4d9-6a4d-4443-9dfd-d92bb919f96b": {
"position": {
"left": 260,
"top": 840
},
"type": "execute_actions"
},
"e109d93a-bd05-4937-8ab7-d99763e87f80": {
"position": {
"left": 440,
"top": 360
},
"type": "execute_actions"
},
"f7a928ea-75fa-4346-b776-3b85e2ec52a9": {
"config": {
"cases": {}
},
"position": {
"left": 440,
"top": 200
},
"type": "wait_for_response"
}
},
"stickies": {}
},
"expire_after_minutes": 10080,
"language": "base",
"localization": {
"hi": {
"0b257da6-515a-4beb-baa9-eb617db36765": {
"name": [
"19 या उससे ऊपर"
]
},
"34696b56-4c2b-4ab3-86cd-a3d795d9b688": {
"name": [
"हिन्दी"
]
},
"3e84709b-bdf0-4f9b-bfd2-284a34b0ce5b": {
"name": [
"नाम"
]
},
"41525160-355f-4708-ab99-160b866829d8": {
"text": [
"हमें अपना परिचय देने के लिए धन्यवाद @contact.fields.name 😊 "
]
},
"4297fca7-9441-4489-ae22-8f65a9534d90": {
"name": [
"सभी प्रतिक्रियाएं"
]
},
"50d39ac9-9c2b-4aa5-ab3d-bee7dd2cd946": {
"text": [
"क्षमा करें, हम आपको समझ नहीं पाए।\n\nकृपया (1,2,3,4) में से किसी एक विकल्प का चयन करें"
]
},
"58578969-ec19-49bf-8910-3db585508f35": {
"text": [
"क्षमा करें, हम आपको समझ नहीं पाए।\nरचनात्मक कार्यकलाप को प्राप्त करने के लिए आपकी पसंदीदा भाषा क्या है?"
]
},
"74388e34-71e0-45ef-9632-feecef7b6af9": {
"name": [
"अन्य"
]
},
"7fce7d80-cb53-4b53-bd88-659ff506ffd0": {
"name": [
"11 से 14"
]
},
"98f47f2a-e175-48e1-9716-853659300bf1": {
"name": [
"10 से कम"
]
},
"a321c893-85a0-4318-b8bd-f65cb2f07e9d": {
"text": [
"हमें आपका नाम जानकर खुशी हुई @contact.fields.name \nआप कितने साल के हैं? \n\nअगर आप 10 वर्ष से कम हैं तो 1 भेजें \nअगर आप 11 वर्ष से 14 वर्ष की आयु के हैं तो 2 भेजें \n15 से 18 साल होने पर 3 भेजें \nअगर आप 19 या उससे ऊपर हैं तो 4 भेजें"
]
},
"bbe57054-0d1c-4001-ba95-d947fe099f05": {
"text": [
"कृपया हमें अपना नाम बताएं"
]
},
"d03a4c5c-5b30-491b-8d27-4a63862fab55": {
"name": [
"अन्य"
]
},
"e7420a28-69a6-41bd-951d-d9f9f57bc1d1": {
"name": [
"अंग्रेज़ी"
]
},
"f7f182ca-478e-4be7-9b0f-50e51ec40bc4": {
"name": [
"15 से 18"
]
},
"fdccbbd4-3dc3-40cc-bf58-1e430776adea": {
"text": [
"क्षमा करें, हम आपको समझ नहीं पाए।\n\nकृपया हमें अपना नाम बताएं।\n"
]
}
}
},
"name": "Registration Workflow",
"nodes": [
{
"actions": [
{
"attachments": [],
"quick_replies": [],
"text": "You can ask for user's name.\n\nPlease tell us your full name. ex-\nVikas Singh",
"type": "send_msg",
"uuid": "bbe57054-0d1c-4001-ba95-d947fe099f05"
}
],
"exits": [
{
"destination_uuid": "f7a928ea-75fa-4346-b776-3b85e2ec52a9",
"uuid": "4311a8a0-a9d5-4b4f-b00a-83a63c04da00"
}
],
"uuid": "3631eb12-391d-4d69-afe6-8446ed5ebbca"
},
{
"actions": [],
"exits": [
{
"destination_uuid": "93f7697c-f869-47ef-9370-f8325697088b",
"uuid": "a368616e-2c18-480d-a5dd-e75256ee3736"
}
],
"router": {
"cases": [],
"categories": [
{
"exit_uuid": "a368616e-2c18-480d-a5dd-e75256ee3736",
"name": "All Responses",
"uuid": "4297fca7-9441-4489-ae22-8f65a9534d90"
}
],
"default_category_uuid": "4297fca7-9441-4489-ae22-8f65a9534d90",
"operand": "@input.text",
"result_name": "contact_name",
"type": "switch",
"wait": {
"type": "msg"
}
},
"uuid": "f7a928ea-75fa-4346-b776-3b85e2ec52a9"
},
{
"actions": [
{
"field": {
"key": "name",
"name": "Name"
},
"type": "set_contact_field",
"uuid": "b68fca5f-edfa-4c1b-abd5-55a25650b767",
"value": "@results.contact_name.input"
}
],
"exits": [
{
"destination_uuid": "e109d93a-bd05-4937-8ab7-d99763e87f80",
"uuid": "bf215fa3-4b95-493e-a398-a6ab5f9b4778"
}
],
"uuid": "93f7697c-f869-47ef-9370-f8325697088b"
},
{
"actions": [
{
"attachments": [],
"quick_replies": [],
"text": "You can ask for details such as age.\n\nTell us how old you are:\nType 1 if you are less than 10 years\nType 2 if you are 11 years to 14 years of age\nType 3 if you are 15 to 18 years\nType 4 if you are 19 or above ",
"type": "send_msg",
"uuid": "a321c893-85a0-4318-b8bd-f65cb2f07e9d"
}
],
"exits": [
{
"destination_uuid": "64b4223e-3dc1-4283-bcfe-7a3b76f11a08",
"uuid": "0e7267f2-7fce-442a-8dc6-16959a030691"
}
],
"uuid": "e109d93a-bd05-4937-8ab7-d99763e87f80"
},
{
"actions": [],
"exits": [
{
"destination_uuid": "d7f7f4d9-6a4d-4443-9dfd-d92bb919f96b",
"uuid": "f1fc8b2c-c7f8-4489-a1cc-37b033152307"
},
{
"destination_uuid": "0d9310ec-62c0-4a4d-8685-c3bea1f9e23e",
"uuid": "3ad6cff7-8d60-41bc-a881-0bb93908f540"
},
{
"destination_uuid": "0ea4f5b1-8b98-4a48-9038-11c406f937c2",
"uuid": "0e1195d9-d658-481f-b51b-794e33a00989"
},
{
"destination_uuid": "1bd815c0-f1b0-4da1-b942-38fd28329ca7",
"uuid": "eddd128b-69e6-43f5-ac53-0a18b0a151f5"
},
{
"destination_uuid": "1d4bdc91-6996-4879-b5ea-c3996b3a03c0",
"uuid": "1ea86390-6831-4154-8fb4-a7c678f1e666"
}
],
"router": {
"cases": [
{
"arguments": [
"1"
],
"category_uuid": "98f47f2a-e175-48e1-9716-853659300bf1",
"type": "has_number_eq",
"uuid": "01d34281-e41b-4f63-8d2b-6f07af372e02"
},
{
"arguments": [
"2"
],
"category_uuid": "7fce7d80-cb53-4b53-bd88-659ff506ffd0",
"type": "has_number_eq",
"uuid": "80489811-ec3d-4c87-8328-b50842645561"
},
{
"arguments": [
"3"
],
"category_uuid": "f7f182ca-478e-4be7-9b0f-50e51ec40bc4",
"type": "has_number_eq",
"uuid": "d4335a03-3924-4725-bc1b-4ecd8fc4710d"
},
{
"arguments": [
"4"
],
"category_uuid": "0b257da6-515a-4beb-baa9-eb617db36765",
"type": "has_number_eq",
"uuid": "379d0c9a-5b62-4f69-9ff1-783aaf38f5aa"
}
],
"categories": [
{
"exit_uuid": "f1fc8b2c-c7f8-4489-a1cc-37b033152307",
"name": "Less than 10",
"uuid": "98f47f2a-e175-48e1-9716-853659300bf1"
},
{
"exit_uuid": "3ad6cff7-8d60-41bc-a881-0bb93908f540",
"name": "11 to 14",
"uuid": "7fce7d80-cb53-4b53-bd88-659ff506ffd0"
},
{
"exit_uuid": "0e1195d9-d658-481f-b51b-794e33a00989",
"name": "15 to 18",
"uuid": "f7f182ca-478e-4be7-9b0f-50e51ec40bc4"
},
{
"exit_uuid": "eddd128b-69e6-43f5-ac53-0a18b0a151f5",
"name": "19 or above",
"uuid": "0b257da6-515a-4beb-baa9-eb617db36765"
},
{
"exit_uuid": "1ea86390-6831-4154-8fb4-a7c678f1e666",
"name": "Other",
"uuid": "74388e34-71e0-45ef-9632-feecef7b6af9"
}
],
"default_category_uuid": "74388e34-71e0-45ef-9632-feecef7b6af9",
"operand": "@input.text",
"result_name": "age_group",
"type": "switch",
"wait": {
"type": "msg"
}
},
"uuid": "64b4223e-3dc1-4283-bcfe-7a3b76f11a08"
},
{
"actions": [
{
"attachments": [],
"quick_replies": [],
"text": "Sorry, we didn't understand that.\nPlease select one of the options from (1,2,3,4)",
"type": "send_msg",
"uuid": "50d39ac9-9c2b-4aa5-ab3d-bee7dd2cd946"
}
],
"exits": [
{
"destination_uuid": "64b4223e-3dc1-4283-bcfe-7a3b76f11a08",
"uuid": "61830b8d-6ceb-4c87-9423-3c03ac04334e"
}
],
"uuid": "1d4bdc91-6996-4879-b5ea-c3996b3a03c0"
},
{
"actions": [
{
"labels": [
{
"name": "Age Group less than 10",
"uuid": "Age Group less than 10:ID"
}
],
"type": "add_input_labels",
"uuid": "97863fdf-b35c-438f-8103-aebcc3e5255f"
}
],
"exits": [
{
"destination_uuid": "1654b934-1861-4565-891e-73d54aa35a98",
"uuid": "75c018a9-bf9f-4f19-94e1-2aebb9c4c788"
}
],
"uuid": "d7f7f4d9-6a4d-4443-9dfd-d92bb919f96b"
},
{
"actions": [
{
"labels": [
{
"name": "Age Group 11 to 14",
"uuid": "Age Group 11 to 14:ID"
}
],
"type": "add_input_labels",
"uuid": "a5c7c6b8-4162-4ee4-a10a-0c4647a5127c"
}
],
"exits": [
{
"destination_uuid": "1654b934-1861-4565-891e-73d54aa35a98",
"uuid": "74492370-9f7d-4678-bd08-c46371b2e498"
}
],
"uuid": "0d9310ec-62c0-4a4d-8685-c3bea1f9e23e"
},
{
"actions": [
{
"labels": [
{
"name": "Age Group 15 to 18",
"uuid": "Age Group 15 to 18:ID"
}
],
"type": "add_input_labels",
"uuid": "91ed9360-8367-460f-ac48-886329dd1a81"
}
],
"exits": [
{
"destination_uuid": "1654b934-1861-4565-891e-73d54aa35a98",
"uuid": "773de281-f517-4d84-b000-8fc3ffb9d290"
}
],
"uuid": "0ea4f5b1-8b98-4a48-9038-11c406f937c2"
},
{
"actions": [
{
"labels": [
{
"name": "Age Group 19 or above",
"uuid": "Age Group 19 or above:ID"
}
],
"type": "add_input_labels",
"uuid": "af39057c-015e-4460-a384-47956ca9ea7a"
}
],
"exits": [
{
"destination_uuid": "1654b934-1861-4565-891e-73d54aa35a98",
"uuid": "f893e399-37b0-420e-80c5-a7b968a93580"
}
],
"uuid": "1bd815c0-f1b0-4da1-b942-38fd28329ca7"
},
{
"actions": [
{
"field": {
"key": "age_group",
"name": "Age Group"
},
"type": "set_contact_field",
"uuid": "1a5cadff-66ec-4b5d-991b-08d12fa8723b",
"value": "@results.age_group.category"
}
],
"exits": [
{
"destination_uuid": "5d13fa3e-29a8-439a-8b40-2c8c85f252a3",
"uuid": "0d295458-a5a7-48fa-98da-7545dc9a2a05"
}
],
"uuid": "1654b934-1861-4565-891e-73d54aa35a98"
},
{
"actions": [
{
"attachments": [],
"quick_replies": [],
"text": "Thank you for introducing yourself to us @contact.fields.name 😊 ",
"type": "send_msg",
"uuid": "41525160-355f-4708-ab99-160b866829d8"
}
],
"exits": [
{
"destination_uuid": null,
"uuid": "7e4f97ec-5fd4-4e04-ac94-e01e4fb4992d"
}
],
"uuid": "5d13fa3e-29a8-439a-8b40-2c8c85f252a3"
}
],
"spec_version": "13.1.0",
"type": "messaging",
"uuid": "REGISTRATION_UUID",
"vars": [
"REGISTRATION_UUID"
]
}