Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,328 +6,15 @@
"type": "input",
"name": "friendlyName",
"label": "Nickname",
"placeholder": "GuestName",
"required": true
},
{
"type": "input",
"name": "firstName",
"label": "First Name",
"placeholder": "GuestName",
"placeholder": "Enter Your Name",
"required": true
},
{
"type": "email",
"name": "contactIdentifier",
"label": "Email",
"required": true,
"placeholder": "Email"
},
{
"label": "Age",
"type": "select",
"name": "age",
"required": true,
"defaultValue": "",
"options": [
{
"value": "",
"label": ""
},
{
"value": "Unborn",
"label": "Unborn"
},
{
"value": "00",
"label": "0"
},
{
"value": "01",
"label": "1"
},
{
"value": "02",
"label": "2"
},
{
"value": "03",
"label": "3"
},
{
"value": "04",
"label": "4"
},
{
"value": "05",
"label": "5"
},
{
"value": "06",
"label": "6"
},
{
"value": "07",
"label": "7"
},
{
"value": "08",
"label": "8"
},
{
"value": "09",
"label": "9"
},
{
"value": "10",
"label": "10"
},
{
"value": "11",
"label": "11"
},
{
"value": "12",
"label": "12"
},
{
"value": "13",
"label": "13"
},
{
"value": "14",
"label": "14"
},
{
"value": "15",
"label": "15"
},
{
"value": "16",
"label": "16"
},
{
"value": "17",
"label": "17"
},
{
"value": "18",
"label": "18"
},
{
"value": "19",
"label": "19"
},
{
"value": "20",
"label": "20"
},
{
"value": "21",
"label": "21"
},
{
"value": "22",
"label": "22"
},
{
"value": "23",
"label": "23"
},
{
"value": "24",
"label": "24"
},
{
"value": ">25",
"label": ">25"
},
{
"value": "Unknown",
"label": "Unknown"
}
]
},
{
"label": "Gender",
"type": "select",
"name": "gender",
"name": "email",
"label": "Email Address",
"required": true,
"defaultValue": "",
"options": [
{
"value": "",
"label": ""
},
{
"value": "Girl",
"label": "Girl"
},
{
"value": "Boy",
"label": "Boy"
},
{
"value": "Non-Binary",
"label": "Non-Binary"
},
{
"value": "Unknown",
"label": "Unknown"
}
]
},
{
"type": "select",
"name": "province",
"label": "Province",
"required": false,
"defaultValue": "",
"options": [
{
"value": "",
"label": ""
},
{
"value": "Northern",
"label": "Northern"
},
{
"value": "Eastern",
"label": "Eastern"
},
{
"value": "Western",
"label": "Western"
},
{
"value": "Southern",
"label": "Southern"
},
{
"value": "Unknown",
"label": "Unknown"
}
]
},
{
"name": "district",
"label": "District",
"type": "dependent-select",
"dependsOn": "province",
"required": false,
"options": {
"Northern": [
{
"value": "District A",
"label": "District A"
},
{
"value": "District B",
"label": "District B"
},
{
"value": "District C",
"label": "District C"
},
{
"value": "Unknown",
"label": "Unknown"
}
],
"Eastern": [
{
"value": "District A",
"label": "District A"
},
{
"value": "District B",
"label": "District B"
},
{
"value": "District C",
"label": "District C"
},
{
"value": "Unknown",
"label": "Unknown"
}
],
"Western": [
{
"value": "District A",
"label": "District A"
},
{
"value": "District B",
"label": "District B"
},
{
"value": "District C",
"label": "District C"
},
{
"value": "Unknown",
"label": "Unknown"
}
],
"Southern": [
{
"value": "District A",
"label": "District A"
},
{
"value": "District B",
"label": "District B"
},
{
"value": "District C",
"label": "District C"
},
{
"value": "Unknown",
"label": "Unknown"
}
]
}
},
{
"label": "How urgent is your situation?",
"type": "select",
"name": "urgencyLevel",
"required": false,
"defaultValue": "",
"options": [
{
"value": "",
"label": ""
},
{
"value": "Urgent",
"label": "Urgent"
},
{
"value": "Critical",
"label": "Critical"
},
{
"value": "Non-critical",
"label": "Non-critical"
},
{
"value": "Other",
"label": "Other"
}
]
},
{
"type": "checkbox",
"name": "termsAndConditions",
"label": "I've read and accept the <a href=\"https://en.wikipedia.org/wiki/Terms_of_service\" target=\"_blank\">Terms and Conditions</a>",
"required": {
"value": true,
"message": "Sorry, if you don't accept our terms and conditions we can't provide counselling to you."
}
"placeholder": "Enter Your Email Address"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ ${
"properties": {
"finish_on_key": "#",
"gather_language": "en",
"loop": 3,
"loop": 1,
"number_of_digits": 1,
"offset": {
"x": 702,
Expand All @@ -233,7 +233,7 @@ ${
"speech_model": "default",
"speech_timeout": "5",
"stop_gather": false,
"timeout": 2
"timeout": 1
},
"transitions": [
{
Expand Down
6 changes: 6 additions & 0 deletions twilio-iac/helplines/usvt/common.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ locals {
enable_post_survey = false
enable_external_recordings = true
permission_config = "demo"
enable_lex_v2 = true

lex_v2_bot_languages = {
en : ["pre_survey"]
}

workflows = {
master : {
friendly_name = "Master Workflow"
Expand Down
Loading
Loading