From 085c01b34647be402e3155ac6b785371d7ce158a Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 13:07:07 +0200 Subject: [PATCH 1/8] lex --- .../{en_US => en_NZBA}/bots/post_survey.json | 2 +- .../{en_US => en_NZBA}/bots/pre_survey.json | 2 +- .../en_NZBA/intents/post_survey_no.json | 46 + .../en_NZBA/intents/post_survey_yes.json | 61 + .../lex_v2/en_NZBA/intents/pre_survey.json | 120 ++ .../lex_v2/en_NZBA/slot_types/age.json | 1033 +++++++++++++++++ .../lex_v2/en_NZBA/slot_types/gender.json | 89 ++ .../lex_v2/en_NZBA/slot_types/yes_no.json | 61 + .../lex_v2/en_NZBA/slots/aboutSelf.json | 108 ++ .../configs/lex_v2/en_NZBA/slots/age.json | 108 ++ .../configs/lex_v2/en_NZBA/slots/gender.json | 107 ++ .../lex_v2/en_NZBA/slots/was_helpful.json | 105 ++ .../lex_v2/en_NZBA/slots/would_recommend.json | 103 ++ 13 files changed, 1943 insertions(+), 2 deletions(-) rename twilio-iac/helplines/nzba/configs/lex_v2/{en_US => en_NZBA}/bots/post_survey.json (93%) rename twilio-iac/helplines/nzba/configs/lex_v2/{en_US => en_NZBA}/bots/pre_survey.json (96%) create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/pre_survey.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/aboutSelf.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/age.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/gender.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json create mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/post_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json similarity index 93% rename from twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/post_survey.json rename to twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json index 441b666ea8..d8dcb16534 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/post_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json @@ -1,6 +1,6 @@ { "post_survey": { - "description": "General es/bots Post Survey bot", + "description": "General configs/lex_v2/en_NZBA/bots Post Survey bot", "locale": "en_US", "child_directed": true, "idle_session_ttl_in_seconds": "600", diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/pre_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json similarity index 96% rename from twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/pre_survey.json rename to twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json index 0b296b1d3b..368afb977b 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_US/bots/pre_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json @@ -1,6 +1,6 @@ { "pre_survey": { - "description": "Example configs/lex_v2/en_US/bots Pre Survey bot", + "description": "Example configs/lex_v2/en_NZBA/bots Pre Survey bot", "locale": "en_US", "child_directed": true, "idle_session_ttl_in_seconds": "600", diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json new file mode 100644 index 0000000000..5434a4f192 --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json @@ -0,0 +1,46 @@ +{ + "intentName": "post_survey_no", + "description": "Post Survey Intent - Yes", + "sampleUtterances": [ + { + "utterance": "not" + }, + { + "utterance": "n" + }, + { + "utterance": "nope" + }, + { + "utterance": "nah" + }, + { + "utterance": "no" + } + ], + "dialogCodeHook": { + "enabled": false + }, + "slotPriorities": [], + "intentClosingSetting": { + "closingResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Thank you for reaching out. Please contact us again if you need more help." + } + } + } + ], + "allowInterrupt": true + }, + "active": true, + "nextStep": { + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} + } + } +} diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json new file mode 100644 index 0000000000..f499cc0cbe --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json @@ -0,0 +1,61 @@ +{ + "intentName": "post_survey_yes", + "description": "Post Survey Intent - Yes", + "sampleUtterances": [ + { + "utterance": "yah" + }, + { + "utterance": "ya" + }, + { + "utterance": "yeah" + }, + { + "utterance": "y" + }, + { + "utterance": "yes" + }, + { + "utterance": "yep" + }, + { + "utterance": "yup" + } + ], + "dialogCodeHook": { + "enabled": false + }, + "slotPriorities": [ + { + "priority": 1, + "slotName": "was_helpful" + }, + { + "priority": 2, + "slotName": "would_recommend" + } + ], + "intentClosingSetting": { + "closingResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Thank you for reaching out. Please contact us again if you need more help." + } + } + } + ], + "allowInterrupt": true + }, + "active": true, + "nextStep": { + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} + } + } +} diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/pre_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/pre_survey.json new file mode 100644 index 0000000000..f93ea7310d --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/pre_survey.json @@ -0,0 +1,120 @@ +{ + "intentName": "pre_survey", + "description": "Example configs/lex_v2/en_NZBA/bots Pre Survey bot", + "sampleUtterances": [ + { + "utterance": "trigger_pre_survey" + }, + { + "utterance": "Incoming webchat contact" + } + ], + "dialogCodeHook": { + "enabled": false + }, + "fulfillmentCodeHook": { + "enabled": false, + "active": true, + "postFulfillmentStatusSpecification": { + "successNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "timeoutNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + } + } + }, + "slotPriorities": [ + { + "priority": 1, + "slotName": "aboutSelf" + }, + { + "priority": 2, + "slotName": "age" + }, + { + "priority": 3, + "slotName": "gender" + } + ], + "intentClosingSetting": { + "closingResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "We will transfer you now. Please hold for a counsellor." + } + } + } + ], + "allowInterrupt": true + }, + "active": true, + "nextStep": { + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} + } + }, + "initialResponseSetting": { + "initialResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Welcome to the helpline. Please answer the following questions." + } + } + } + ], + "allowInterrupt": true + }, + "active": true, + "nextStep": { + "dialogAction": { + "type": "InvokeDialogCodeHook" + }, + "intent": {} + }, + "codeHook": { + "enableCodeHookInvocation": true, + "active": true, + "postCodeHookSpecification": { + "successNextStep": { + "dialogAction": { + "type": "ElicitSlot", + "slotToElicit": "aboutSelf" + }, + "intent": {} + }, + "failureNextStep": { + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} + }, + "timeoutNextStep": { + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} + } + } + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json new file mode 100644 index 0000000000..125d864cb8 --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json @@ -0,0 +1,1033 @@ +{ + "slotTypeName": "age", + "slotTypeValues": [ + { + "sampleValue": { + "value": "1" + }, + "synonyms": [ + { + "value": "one" + } + ] + }, + { + "sampleValue": { + "value": "2" + }, + "synonyms": [ + { + "value": "two" + } + ] + }, + { + "sampleValue": { + "value": "3" + }, + "synonyms": [ + { + "value": "three" + } + ] + }, + { + "sampleValue": { + "value": "4" + }, + "synonyms": [ + { + "value": "four" + } + ] + }, + { + "sampleValue": { + "value": "5" + }, + "synonyms": [ + { + "value": "five" + } + ] + }, + { + "sampleValue": { + "value": "6" + }, + "synonyms": [ + { + "value": "six" + } + ] + }, + { + "sampleValue": { + "value": "7" + }, + "synonyms": [ + { + "value": "seven" + } + ] + }, + { + "sampleValue": { + "value": "8" + }, + "synonyms": [ + { + "value": "eight" + } + ] + }, + { + "sampleValue": { + "value": "9" + }, + "synonyms": [ + { + "value": "nine" + } + ] + }, + { + "sampleValue": { + "value": "10" + }, + "synonyms": [ + { + "value": "ten" + } + ] + }, + { + "sampleValue": { + "value": "11" + }, + "synonyms": [ + { + "value": "eleven" + } + ] + }, + { + "sampleValue": { + "value": "12" + }, + "synonyms": [ + { + "value": "twelve" + } + ] + }, + { + "sampleValue": { + "value": "13" + }, + "synonyms": [ + { + "value": "thirteen" + } + ] + }, + { + "sampleValue": { + "value": "14" + }, + "synonyms": [ + { + "value": "fourteen" + } + ] + }, + { + "sampleValue": { + "value": "15" + }, + "synonyms": [ + { + "value": "fifteen" + } + ] + }, + { + "sampleValue": { + "value": "16" + }, + "synonyms": [ + { + "value": "sixteen" + } + ] + }, + { + "sampleValue": { + "value": "17" + }, + "synonyms": [ + { + "value": "seventeen" + } + ] + }, + { + "sampleValue": { + "value": "18" + }, + "synonyms": [ + { + "value": "eighteen" + } + ] + }, + { + "sampleValue": { + "value": "19" + }, + "synonyms": [ + { + "value": "nineteen" + } + ] + }, + { + "sampleValue": { + "value": "20" + }, + "synonyms": [ + { + "value": "twenty" + } + ] + }, + { + "sampleValue": { + "value": "21" + }, + "synonyms": [ + { + "value": "twenty one" + } + ] + }, + { + "sampleValue": { + "value": "22" + }, + "synonyms": [ + { + "value": "twenty two" + } + ] + }, + { + "sampleValue": { + "value": "23" + }, + "synonyms": [ + { + "value": "twenty three" + } + ] + }, + { + "sampleValue": { + "value": "24" + }, + "synonyms": [ + { + "value": "twenty four" + } + ] + }, + { + "sampleValue": { + "value": "25" + }, + "synonyms": [ + { + "value": "twenty five" + } + ] + }, + { + "sampleValue": { + "value": "26" + }, + "synonyms": [ + { + "value": "twenty six" + } + ] + }, + { + "sampleValue": { + "value": "27" + }, + "synonyms": [ + { + "value": "twenty seven" + } + ] + }, + { + "sampleValue": { + "value": "28" + }, + "synonyms": [ + { + "value": "twenty eight" + } + ] + }, + { + "sampleValue": { + "value": "29" + }, + "synonyms": [ + { + "value": "twenty nine" + } + ] + }, + { + "sampleValue": { + "value": "30" + }, + "synonyms": [ + { + "value": "thirty" + } + ] + }, + { + "sampleValue": { + "value": "31" + }, + "synonyms": [ + { + "value": "thirty one" + } + ] + }, + { + "sampleValue": { + "value": "32" + }, + "synonyms": [ + { + "value": "thirty two" + } + ] + }, + { + "sampleValue": { + "value": "33" + }, + "synonyms": [ + { + "value": "thirty three" + } + ] + }, + { + "sampleValue": { + "value": "34" + }, + "synonyms": [ + { + "value": "thirty four" + } + ] + }, + { + "sampleValue": { + "value": "35" + }, + "synonyms": [ + { + "value": "thirty five" + } + ] + }, + { + "sampleValue": { + "value": "36" + }, + "synonyms": [ + { + "value": "thirty six" + } + ] + }, + { + "sampleValue": { + "value": "37" + }, + "synonyms": [ + { + "value": "thirty seven" + } + ] + }, + { + "sampleValue": { + "value": "38" + }, + "synonyms": [ + { + "value": "thirty eight" + } + ] + }, + { + "sampleValue": { + "value": "39" + }, + "synonyms": [ + { + "value": "thirty nine" + } + ] + }, + { + "sampleValue": { + "value": "40" + }, + "synonyms": [ + { + "value": "forty" + } + ] + }, + { + "sampleValue": { + "value": "41" + }, + "synonyms": [ + { + "value": "forty one" + } + ] + }, + { + "sampleValue": { + "value": "42" + }, + "synonyms": [ + { + "value": "forty two" + } + ] + }, + { + "sampleValue": { + "value": "43" + }, + "synonyms": [ + { + "value": "forty three" + } + ] + }, + { + "sampleValue": { + "value": "44" + }, + "synonyms": [ + { + "value": "forty four" + } + ] + }, + { + "sampleValue": { + "value": "45" + }, + "synonyms": [ + { + "value": "forty five" + } + ] + }, + { + "sampleValue": { + "value": "46" + }, + "synonyms": [ + { + "value": "forty six" + } + ] + }, + { + "sampleValue": { + "value": "47" + }, + "synonyms": [ + { + "value": "forty seven" + } + ] + }, + { + "sampleValue": { + "value": "48" + }, + "synonyms": [ + { + "value": "forty eight" + } + ] + }, + { + "sampleValue": { + "value": "49" + }, + "synonyms": [ + { + "value": "forty nine" + } + ] + }, + { + "sampleValue": { + "value": "50" + }, + "synonyms": [ + { + "value": "fifty" + } + ] + }, + { + "sampleValue": { + "value": "51" + }, + "synonyms": [ + { + "value": "fifty one" + } + ] + }, + { + "sampleValue": { + "value": "52" + }, + "synonyms": [ + { + "value": "fifty two" + } + ] + }, + { + "sampleValue": { + "value": "53" + }, + "synonyms": [ + { + "value": "fifty three" + } + ] + }, + { + "sampleValue": { + "value": "54" + }, + "synonyms": [ + { + "value": "fifty four" + } + ] + }, + { + "sampleValue": { + "value": "55" + }, + "synonyms": [ + { + "value": "fifty five" + } + ] + }, + { + "sampleValue": { + "value": "56" + }, + "synonyms": [ + { + "value": "fifty six" + } + ] + }, + { + "sampleValue": { + "value": "57" + }, + "synonyms": [ + { + "value": "fifty seven" + } + ] + }, + { + "sampleValue": { + "value": "58" + }, + "synonyms": [ + { + "value": "fifty eight" + } + ] + }, + { + "sampleValue": { + "value": "59" + }, + "synonyms": [ + { + "value": "fifty nine" + } + ] + }, + { + "sampleValue": { + "value": "60" + }, + "synonyms": [ + { + "value": "sixty" + } + ] + }, + { + "sampleValue": { + "value": "61" + }, + "synonyms": [ + { + "value": "sixty one" + } + ] + }, + { + "sampleValue": { + "value": "62" + }, + "synonyms": [ + { + "value": "sixty two" + } + ] + }, + { + "sampleValue": { + "value": "63" + }, + "synonyms": [ + { + "value": "sixty three" + } + ] + }, + { + "sampleValue": { + "value": "64" + }, + "synonyms": [ + { + "value": "sixty four" + } + ] + }, + { + "sampleValue": { + "value": "65" + }, + "synonyms": [ + { + "value": "sixty five" + } + ] + }, + { + "sampleValue": { + "value": "66" + }, + "synonyms": [ + { + "value": "sixty six" + } + ] + }, + { + "sampleValue": { + "value": "67" + }, + "synonyms": [ + { + "value": "sixty seven" + } + ] + }, + { + "sampleValue": { + "value": "68" + }, + "synonyms": [ + { + "value": "sixty eight" + } + ] + }, + { + "sampleValue": { + "value": "69" + }, + "synonyms": [ + { + "value": "sixty nine" + } + ] + }, + { + "sampleValue": { + "value": "70" + }, + "synonyms": [ + { + "value": "seventy" + } + ] + }, + { + "sampleValue": { + "value": "71" + }, + "synonyms": [ + { + "value": "seventy one" + } + ] + }, + { + "sampleValue": { + "value": "72" + }, + "synonyms": [ + { + "value": "seventy two" + } + ] + }, + { + "sampleValue": { + "value": "73" + }, + "synonyms": [ + { + "value": "seventy three" + } + ] + }, + { + "sampleValue": { + "value": "74" + }, + "synonyms": [ + { + "value": "seventy four" + } + ] + }, + { + "sampleValue": { + "value": "75" + }, + "synonyms": [ + { + "value": "seventy five" + } + ] + }, + { + "sampleValue": { + "value": "76" + }, + "synonyms": [ + { + "value": "seventy six" + } + ] + }, + { + "sampleValue": { + "value": "77" + }, + "synonyms": [ + { + "value": "seventy seven" + } + ] + }, + { + "sampleValue": { + "value": "78" + }, + "synonyms": [ + { + "value": "seventy eight" + } + ] + }, + { + "sampleValue": { + "value": "79" + }, + "synonyms": [ + { + "value": "seventy nine" + } + ] + }, + { + "sampleValue": { + "value": "80" + }, + "synonyms": [ + { + "value": "eighty" + } + ] + }, + { + "sampleValue": { + "value": "81" + }, + "synonyms": [ + { + "value": "eighty one" + } + ] + }, + { + "sampleValue": { + "value": "82" + }, + "synonyms": [ + { + "value": "eighty two" + } + ] + }, + { + "sampleValue": { + "value": "83" + }, + "synonyms": [ + { + "value": "eighty three" + } + ] + }, + { + "sampleValue": { + "value": "84" + }, + "synonyms": [ + { + "value": "eighty four" + } + ] + }, + { + "sampleValue": { + "value": "85" + }, + "synonyms": [ + { + "value": "eighty five" + } + ] + }, + { + "sampleValue": { + "value": "86" + }, + "synonyms": [ + { + "value": "eighty six" + } + ] + }, + { + "sampleValue": { + "value": "87" + }, + "synonyms": [ + { + "value": "eighty seven" + } + ] + }, + { + "sampleValue": { + "value": "88" + }, + "synonyms": [ + { + "value": "eighty eight" + } + ] + }, + { + "sampleValue": { + "value": "89" + }, + "synonyms": [ + { + "value": "eighty nine" + } + ] + }, + { + "sampleValue": { + "value": "90" + }, + "synonyms": [ + { + "value": "ninety" + } + ] + }, + { + "sampleValue": { + "value": "91" + }, + "synonyms": [ + { + "value": "ninety one" + } + ] + }, + { + "sampleValue": { + "value": "92" + }, + "synonyms": [ + { + "value": "ninety two" + } + ] + }, + { + "sampleValue": { + "value": "93" + }, + "synonyms": [ + { + "value": "ninety three" + } + ] + }, + { + "sampleValue": { + "value": "94" + }, + "synonyms": [ + { + "value": "ninety four" + } + ] + }, + { + "sampleValue": { + "value": "95" + }, + "synonyms": [ + { + "value": "ninety five" + } + ] + }, + { + "sampleValue": { + "value": "96" + }, + "synonyms": [ + { + "value": "ninety six" + } + ] + }, + { + "sampleValue": { + "value": "97" + }, + "synonyms": [ + { + "value": "ninety seven" + } + ] + }, + { + "sampleValue": { + "value": "98" + }, + "synonyms": [ + { + "value": "ninety eight" + } + ] + }, + { + "sampleValue": { + "value": "99" + }, + "synonyms": [ + { + "value": "ninety nine" + } + ] + }, + { + "sampleValue": { + "value": "100" + }, + "synonyms": [ + { + "value": "one hundred" + } + ] + }, + { + "sampleValue": { + "value": "Unknown" + }, + "synonyms": [ + { + "value": "prefer not" + }, + { + "value": "Rather not say" + }, + { + "value": "prefer not to" + }, + { + "value": "X" + }, + { + "value": "Prefer not to answer" + }, + { + "value": "0" + } + ] + } + ], + "valueSelectionSetting": { + "resolutionStrategy": "TopResolution" + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json new file mode 100644 index 0000000000..2f0850a0ea --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json @@ -0,0 +1,89 @@ +{ + "slotTypeName": "gender", + "slotTypeValues": [ + { + "sampleValue": { + "value": "Boy" + }, + "synonyms": [ + { + "value": "Boy" + }, + { + "value": "Male" + }, + { + "value": "Dude" + }, + { + "value": "Guy" + }, + { + "value": "Man" + }, + { + "value": "M" + }, + { + "value": "He" + } + ] + }, + { + "sampleValue": { + "value": "Girl" + }, + "synonyms": [ + { + "value": "Woman" + }, + { + "value": "Lady" + }, + { + "value": "Female" + }, + { + "value": "She" + }, + { + "value": "F" + } + ] + }, + { + "sampleValue": { + "value": "Non-Binary" + }, + "synonyms": [ + { + "value": "None" + }, + { + "value": "non binary" + } + ] + }, + { + "sampleValue": { + "value": "Unknown" + }, + "synonyms": [ + { + "value": "x" + }, + { + "value": "not sure" + } + ] + }, + { + "sampleValue": { + "value": "prefer not to answer" + } + } + ], + "valueSelectionSetting": { + "resolutionStrategy": "TopResolution" + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json new file mode 100644 index 0000000000..a006e2dd20 --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json @@ -0,0 +1,61 @@ +{ + "slotTypeName": "yes_no", + "slotTypeValues": [ + { + "sampleValue": { + "value": "Yes" + }, + "synonyms": [ + { + "value": "Yah" + }, + { + "value": "Y" + }, + { + "value": "Yeah" + }, + { + "value": "Ya" + }, + { + "value": "1" + }, + { + "value": "One" + }, + { + "value": "X" + } + ] + }, + { + "sampleValue": { + "value": "No" + }, + "synonyms": [ + { + "value": "Na" + }, + { + "value": "Nah" + }, + { + "value": "Noo" + }, + { + "value": "N" + }, + { + "value": "2" + }, + { + "value": "Two" + } + ] + } + ], + "valueSelectionSetting": { + "resolutionStrategy": "TopResolution" + } +} diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/aboutSelf.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/aboutSelf.json new file mode 100644 index 0000000000..0fbb4c698c --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/aboutSelf.json @@ -0,0 +1,108 @@ +{ + "slotName": "aboutSelf", + "slotTypeName": "yes_no", + "intentName": "pre_survey", + "description": "Slot aboutSelf for intent pre_survey", + "valueElicitationSetting": { + "slotConstraint": "Required", + "promptSpecification": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Are you calling about yourself? Please answer Yes or No." + } + }, + "variations": [ + { + "plainTextMessage": { + "value": "You can answer 'Yes' or 'No'. Are you calling about yourself?" + } + } + ] + } + ], + "maxRetries": 1, + "allowInterrupt": true, + "messageSelectionStrategy": "Ordered", + "promptAttemptsSpecification": { + "Initial": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + }, + "Retry1": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + } + } + }, + "slotCaptureSetting": { + "captureNextStep": { + "dialogAction": { + "type": "ElicitSlot", + "slotToElicit": "age" + }, + "intent": {} + }, + "failureResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "We are having trouble understanding your response. But nothing to worry, we will transfer you to a counsellor." + } + } + } + ], + "allowInterrupt": true + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "elicitationCodeHook": { + "enableCodeHookInvocation": true + } + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/age.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/age.json new file mode 100644 index 0000000000..55869b4f2e --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/age.json @@ -0,0 +1,108 @@ +{ + "slotName": "age", + "slotTypeName": "age", + "intentName": "pre_survey", + "description": "Slot age for intent pre_survey", + "valueElicitationSetting": { + "slotConstraint": "Required", + "promptSpecification": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "How old are you?" + } + }, + "variations": [ + { + "plainTextMessage": { + "value": "You can answer with a number like: 12. How old are you?" + } + } + ] + } + ], + "maxRetries": 1, + "allowInterrupt": true, + "messageSelectionStrategy": "Ordered", + "promptAttemptsSpecification": { + "Initial": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + }, + "Retry1": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + } + } + }, + "slotCaptureSetting": { + "captureNextStep": { + "dialogAction": { + "type": "ElicitSlot", + "slotToElicit": "gender" + }, + "intent": {} + }, + "failureResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "We are having trouble understanding your response. But nothing to worry, we will transfer you to a counsellor." + } + } + } + ], + "allowInterrupt": true + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "elicitationCodeHook": { + "enableCodeHookInvocation": true + } + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/gender.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/gender.json new file mode 100644 index 0000000000..6979a328e2 --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/gender.json @@ -0,0 +1,107 @@ +{ + "slotName": "gender", + "slotTypeName": "gender", + "intentName": "pre_survey", + "description": "Slot gender for intent pre_survey", + "valueElicitationSetting": { + "slotConstraint": "Required", + "promptSpecification": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "What is your gender?" + } + }, + "variations": [ + { + "plainTextMessage": { + "value": "You can answer male, female, boy, girl, non-binary, etc. You can also answer 'X' if you are not sure or if you don't want to share. What is your gender?" + } + } + ] + } + ], + "maxRetries": 1, + "allowInterrupt": true, + "messageSelectionStrategy": "Ordered", + "promptAttemptsSpecification": { + "Initial": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + }, + "Retry1": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + } + } + }, + "slotCaptureSetting": { + "captureNextStep": { + "dialogAction": { + "type": "FulfillIntent" + }, + "intent": {} + }, + "failureResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "We are having trouble understanding your response. But nothing to worry, we will transfer you to a counsellor." + } + } + } + ], + "allowInterrupt": true + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "elicitationCodeHook": { + "enableCodeHookInvocation": true + } + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json new file mode 100644 index 0000000000..74aad41e50 --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json @@ -0,0 +1,105 @@ +{ + "slotName": "was_helpful", + "description": "was_helpful", + "slotTypeName": "yes_no", + "intentName": "post_survey_yes", + "valueElicitationSetting": { + "slotConstraint": "Required", + "promptSpecification": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Did you find this conversation helpful? Please answer Yes or No." + } + } + } + ], + "maxRetries": 1, + "allowInterrupt": true, + "messageSelectionStrategy": "Random", + "promptAttemptsSpecification": { + "Initial": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + }, + "Retry1": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + } + } + }, + "slotCaptureSetting": { + "captureNextStep": { + "dialogAction": { + "type": "ElicitSlot", + "slotToElicit": "would_recommend" + }, + "intent": {} + }, + "failureResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Sorry, I didn't understand that." + } + } + } + ], + "allowInterrupt": true + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "elicitationCodeHook": { + "enableCodeHookInvocation": true + } + } + }, + + "obfuscationSetting": { + "obfuscationSettingType": "None" + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json new file mode 100644 index 0000000000..7cbaadfacb --- /dev/null +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json @@ -0,0 +1,103 @@ +{ + "slotName": "would_recommend", + "description": "would_recommend", + "slotTypeName": "yes_no", + "intentName": "post_survey_yes", + "valueElicitationSetting": { + "slotConstraint": "Required", + "promptSpecification": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Based on this conversation, would you recommend that someone in a similar situation contact us? Please answer Yes or No." + } + } + } + ], + "maxRetries": 1, + "allowInterrupt": true, + "messageSelectionStrategy": "Random", + "promptAttemptsSpecification": { + "Initial": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + }, + "Retry1": { + "allowInterrupt": true, + "allowedInputTypes": { + "allowAudioInput": true, + "allowDTMFInput": true + }, + "audioAndDTMFInputSpecification": { + "startTimeoutMs": 4000, + "audioSpecification": { + "maxLengthMs": 15000, + "endTimeoutMs": 640 + }, + "dtmfSpecification": { + "maxLength": 513, + "endTimeoutMs": 5000, + "deletionCharacter": "*", + "endCharacter": "#" + } + }, + "textInputSpecification": { + "startTimeoutMs": 30000 + } + } + } + }, + "slotCaptureSetting": { + "captureNextStep": { + "dialogAction": { + "type": "FulfillIntent" + }, + "intent": {} + }, + "failureResponse": { + "messageGroups": [ + { + "message": { + "plainTextMessage": { + "value": "Sorry, I didn't understand that." + } + } + } + ], + "allowInterrupt": true + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "elicitationCodeHook": { + "enableCodeHookInvocation": true + } + } + }, + "obfuscationSetting": { + "obfuscationSettingType": "None" + } +} From b4c5f7a505323d2f959dd77e0f124990daa57ec1 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 14:03:47 +0200 Subject: [PATCH 2/8] flags --- twilio-iac/helplines/nzba/common.hcl | 11 +++++++---- .../nzba/configs/service-configuration/common.json | 2 +- .../nzba/configs/service-configuration/staging.json | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/twilio-iac/helplines/nzba/common.hcl b/twilio-iac/helplines/nzba/common.hcl index 94dd078095..2cd1870099 100644 --- a/twilio-iac/helplines/nzba/common.hcl +++ b/twilio-iac/helplines/nzba/common.hcl @@ -6,10 +6,13 @@ locals { local_config = { - helpline = "Barnardos" - default_autopilot_chatbot_enabled = false - task_language = "en-NZ" - helpline_region = "eu-west-1" + helpline = "Barnardos" + task_language = "en-NZ" + helpline_region = "eu-west-1" + + lex_v2_bot_languages = { + en_NZBA : ["pre_survey", "post_survey"] + } workflows = { master : { diff --git a/twilio-iac/helplines/nzba/configs/service-configuration/common.json b/twilio-iac/helplines/nzba/configs/service-configuration/common.json index 4b57184855..f8750cee59 100644 --- a/twilio-iac/helplines/nzba/configs/service-configuration/common.json +++ b/twilio-iac/helplines/nzba/configs/service-configuration/common.json @@ -8,7 +8,7 @@ "feature_flags": { "use_prepopulate_mappings": true }, - "helplineLanguage": "en-NZ", + "helplineLanguage": "en-US", "permissionConfig": "nzba" }, "ui_attributes": { diff --git a/twilio-iac/helplines/nzba/configs/service-configuration/staging.json b/twilio-iac/helplines/nzba/configs/service-configuration/staging.json index 202adbca4c..f44c75627e 100644 --- a/twilio-iac/helplines/nzba/configs/service-configuration/staging.json +++ b/twilio-iac/helplines/nzba/configs/service-configuration/staging.json @@ -7,6 +7,7 @@ "enable_lambda_post_survey_processing": true, "enable_post_survey": true, "enable_lex_v2": true, + "enable_lex": true, "enable_conferencing": true, "use_twilio_lambda_for_conference_functions": true } From 6f1b0f9a3676fbadd8af2698d7d3ca004223f899 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 14:49:12 +0200 Subject: [PATCH 3/8] fix bots --- .../lex_v2/en_NZBA/bots/post_survey.json | 37 +- .../lex_v2/en_NZBA/bots/pre_survey.json | 5 +- .../en_NZBA/intents/post_survey_no.json | 43 +- .../en_NZBA/intents/post_survey_yes.json | 49 +- .../lex_v2/en_NZBA/slot_types/age.json | 1033 ----------------- .../lex_v2/en_NZBA/slot_types/gender.json | 89 -- .../lex_v2/en_NZBA/slot_types/yes_no.json | 61 - .../lex_v2/en_NZBA/slots/was_helpful.json | 4 - .../lex_v2/en_NZBA/slots/would_recommend.json | 5 +- 9 files changed, 101 insertions(+), 1225 deletions(-) delete mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json delete mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json delete mode 100644 twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json index d8dcb16534..afc5b3bfa1 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json @@ -3,10 +3,25 @@ "description": "General configs/lex_v2/en_NZBA/bots Post Survey bot", "locale": "en_US", "child_directed": true, - "idle_session_ttl_in_seconds": "600", + "idle_session_ttl_in_seconds": "300", + "staging_bot_alias_id": "TSTALIASID", "type": "Bot", "intents": { "post_survey_yes": { + "utterances": [ + { + "utterance": "Yes" + }, + { + "utterance": "yes" + }, + { + "utterance": "yeah" + }, + { + "utterance": "1" + } + ], "closing_response": { "message": "Thank you for reaching out. Please contact us again if you need more help." }, @@ -14,16 +29,32 @@ "1": { "slot_name": "was_helpful", "slot_type_name": "yes_no", - "slot_question": "Did you find this conversation helpful? Please answer Yes or No." + "slot_question": "Did you find this conversation helpful? Please answer Yes or No.", + "failure_response": "Thank you for reaching out. Please contact us again if you need more help." }, "2": { "slot_name": "would_recommend", "slot_type_name": "yes_no", - "slot_question": "Based on this conversation, would you recommend that someone in a similar situation contact us? Please answer Yes or No." + "slot_question": "Based on this conversation, would you recommend that someone in a similar situation contact us? Please answer Yes or No.", + "failure_response": "Thank you for reaching out. Please contact us again if you need more help." } } }, "post_survey_no": { + "utterances": [ + { + "utterance": "No" + }, + { + "utterance": "no" + }, + { + "utterance": "nope" + }, + { + "utterance": "2" + } + ], "closing_response": { "message": "Thank you for reaching out. Please contact us again if you need more help." }, diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json index 368afb977b..2099be1299 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json @@ -3,9 +3,8 @@ "description": "Example configs/lex_v2/en_NZBA/bots Pre Survey bot", "locale": "en_US", "child_directed": true, - "idle_session_ttl_in_seconds": "600", - "staging_bot_alias_id": "QUIVYKVF4P", - "production_bot_alias_id": "AHEY3RKT3F", + "idle_session_ttl_in_seconds": "300", + "staging_bot_alias_id": "TSTALIASID", "type": "Bot", "intents": { "pre_survey": { diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json index 5434a4f192..e3f8ac7834 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_no.json @@ -3,24 +3,45 @@ "description": "Post Survey Intent - Yes", "sampleUtterances": [ { - "utterance": "not" + "utterance": "No" }, { - "utterance": "n" + "utterance": "no" }, { "utterance": "nope" }, { - "utterance": "nah" - }, - { - "utterance": "no" + "utterance": "2" } ], "dialogCodeHook": { "enabled": false }, + "fulfillmentCodeHook": { + "enabled": false, + "active": true, + "postFulfillmentStatusSpecification": { + "successNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "timeoutNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + } + } + }, "slotPriorities": [], "intentClosingSetting": { "closingResponse": { @@ -37,10 +58,10 @@ }, "active": true, "nextStep": { - "dialogAction": { - "type": "EndConversation" - }, - "intent": {} + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} } } -} +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json index f499cc0cbe..f71b991ca1 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/intents/post_survey_yes.json @@ -3,30 +3,45 @@ "description": "Post Survey Intent - Yes", "sampleUtterances": [ { - "utterance": "yah" - }, - { - "utterance": "ya" - }, - { - "utterance": "yeah" - }, - { - "utterance": "y" + "utterance": "Yes" }, { "utterance": "yes" }, { - "utterance": "yep" + "utterance": "yeah" }, { - "utterance": "yup" + "utterance": "1" } ], "dialogCodeHook": { "enabled": false }, + "fulfillmentCodeHook": { + "enabled": false, + "active": true, + "postFulfillmentStatusSpecification": { + "successNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "failureNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + }, + "timeoutNextStep": { + "dialogAction": { + "type": "CloseIntent" + }, + "intent": {} + } + } + }, "slotPriorities": [ { "priority": 1, @@ -52,10 +67,10 @@ }, "active": true, "nextStep": { - "dialogAction": { - "type": "EndConversation" - }, - "intent": {} + "dialogAction": { + "type": "EndConversation" + }, + "intent": {} } } -} +} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json deleted file mode 100644 index 125d864cb8..0000000000 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/age.json +++ /dev/null @@ -1,1033 +0,0 @@ -{ - "slotTypeName": "age", - "slotTypeValues": [ - { - "sampleValue": { - "value": "1" - }, - "synonyms": [ - { - "value": "one" - } - ] - }, - { - "sampleValue": { - "value": "2" - }, - "synonyms": [ - { - "value": "two" - } - ] - }, - { - "sampleValue": { - "value": "3" - }, - "synonyms": [ - { - "value": "three" - } - ] - }, - { - "sampleValue": { - "value": "4" - }, - "synonyms": [ - { - "value": "four" - } - ] - }, - { - "sampleValue": { - "value": "5" - }, - "synonyms": [ - { - "value": "five" - } - ] - }, - { - "sampleValue": { - "value": "6" - }, - "synonyms": [ - { - "value": "six" - } - ] - }, - { - "sampleValue": { - "value": "7" - }, - "synonyms": [ - { - "value": "seven" - } - ] - }, - { - "sampleValue": { - "value": "8" - }, - "synonyms": [ - { - "value": "eight" - } - ] - }, - { - "sampleValue": { - "value": "9" - }, - "synonyms": [ - { - "value": "nine" - } - ] - }, - { - "sampleValue": { - "value": "10" - }, - "synonyms": [ - { - "value": "ten" - } - ] - }, - { - "sampleValue": { - "value": "11" - }, - "synonyms": [ - { - "value": "eleven" - } - ] - }, - { - "sampleValue": { - "value": "12" - }, - "synonyms": [ - { - "value": "twelve" - } - ] - }, - { - "sampleValue": { - "value": "13" - }, - "synonyms": [ - { - "value": "thirteen" - } - ] - }, - { - "sampleValue": { - "value": "14" - }, - "synonyms": [ - { - "value": "fourteen" - } - ] - }, - { - "sampleValue": { - "value": "15" - }, - "synonyms": [ - { - "value": "fifteen" - } - ] - }, - { - "sampleValue": { - "value": "16" - }, - "synonyms": [ - { - "value": "sixteen" - } - ] - }, - { - "sampleValue": { - "value": "17" - }, - "synonyms": [ - { - "value": "seventeen" - } - ] - }, - { - "sampleValue": { - "value": "18" - }, - "synonyms": [ - { - "value": "eighteen" - } - ] - }, - { - "sampleValue": { - "value": "19" - }, - "synonyms": [ - { - "value": "nineteen" - } - ] - }, - { - "sampleValue": { - "value": "20" - }, - "synonyms": [ - { - "value": "twenty" - } - ] - }, - { - "sampleValue": { - "value": "21" - }, - "synonyms": [ - { - "value": "twenty one" - } - ] - }, - { - "sampleValue": { - "value": "22" - }, - "synonyms": [ - { - "value": "twenty two" - } - ] - }, - { - "sampleValue": { - "value": "23" - }, - "synonyms": [ - { - "value": "twenty three" - } - ] - }, - { - "sampleValue": { - "value": "24" - }, - "synonyms": [ - { - "value": "twenty four" - } - ] - }, - { - "sampleValue": { - "value": "25" - }, - "synonyms": [ - { - "value": "twenty five" - } - ] - }, - { - "sampleValue": { - "value": "26" - }, - "synonyms": [ - { - "value": "twenty six" - } - ] - }, - { - "sampleValue": { - "value": "27" - }, - "synonyms": [ - { - "value": "twenty seven" - } - ] - }, - { - "sampleValue": { - "value": "28" - }, - "synonyms": [ - { - "value": "twenty eight" - } - ] - }, - { - "sampleValue": { - "value": "29" - }, - "synonyms": [ - { - "value": "twenty nine" - } - ] - }, - { - "sampleValue": { - "value": "30" - }, - "synonyms": [ - { - "value": "thirty" - } - ] - }, - { - "sampleValue": { - "value": "31" - }, - "synonyms": [ - { - "value": "thirty one" - } - ] - }, - { - "sampleValue": { - "value": "32" - }, - "synonyms": [ - { - "value": "thirty two" - } - ] - }, - { - "sampleValue": { - "value": "33" - }, - "synonyms": [ - { - "value": "thirty three" - } - ] - }, - { - "sampleValue": { - "value": "34" - }, - "synonyms": [ - { - "value": "thirty four" - } - ] - }, - { - "sampleValue": { - "value": "35" - }, - "synonyms": [ - { - "value": "thirty five" - } - ] - }, - { - "sampleValue": { - "value": "36" - }, - "synonyms": [ - { - "value": "thirty six" - } - ] - }, - { - "sampleValue": { - "value": "37" - }, - "synonyms": [ - { - "value": "thirty seven" - } - ] - }, - { - "sampleValue": { - "value": "38" - }, - "synonyms": [ - { - "value": "thirty eight" - } - ] - }, - { - "sampleValue": { - "value": "39" - }, - "synonyms": [ - { - "value": "thirty nine" - } - ] - }, - { - "sampleValue": { - "value": "40" - }, - "synonyms": [ - { - "value": "forty" - } - ] - }, - { - "sampleValue": { - "value": "41" - }, - "synonyms": [ - { - "value": "forty one" - } - ] - }, - { - "sampleValue": { - "value": "42" - }, - "synonyms": [ - { - "value": "forty two" - } - ] - }, - { - "sampleValue": { - "value": "43" - }, - "synonyms": [ - { - "value": "forty three" - } - ] - }, - { - "sampleValue": { - "value": "44" - }, - "synonyms": [ - { - "value": "forty four" - } - ] - }, - { - "sampleValue": { - "value": "45" - }, - "synonyms": [ - { - "value": "forty five" - } - ] - }, - { - "sampleValue": { - "value": "46" - }, - "synonyms": [ - { - "value": "forty six" - } - ] - }, - { - "sampleValue": { - "value": "47" - }, - "synonyms": [ - { - "value": "forty seven" - } - ] - }, - { - "sampleValue": { - "value": "48" - }, - "synonyms": [ - { - "value": "forty eight" - } - ] - }, - { - "sampleValue": { - "value": "49" - }, - "synonyms": [ - { - "value": "forty nine" - } - ] - }, - { - "sampleValue": { - "value": "50" - }, - "synonyms": [ - { - "value": "fifty" - } - ] - }, - { - "sampleValue": { - "value": "51" - }, - "synonyms": [ - { - "value": "fifty one" - } - ] - }, - { - "sampleValue": { - "value": "52" - }, - "synonyms": [ - { - "value": "fifty two" - } - ] - }, - { - "sampleValue": { - "value": "53" - }, - "synonyms": [ - { - "value": "fifty three" - } - ] - }, - { - "sampleValue": { - "value": "54" - }, - "synonyms": [ - { - "value": "fifty four" - } - ] - }, - { - "sampleValue": { - "value": "55" - }, - "synonyms": [ - { - "value": "fifty five" - } - ] - }, - { - "sampleValue": { - "value": "56" - }, - "synonyms": [ - { - "value": "fifty six" - } - ] - }, - { - "sampleValue": { - "value": "57" - }, - "synonyms": [ - { - "value": "fifty seven" - } - ] - }, - { - "sampleValue": { - "value": "58" - }, - "synonyms": [ - { - "value": "fifty eight" - } - ] - }, - { - "sampleValue": { - "value": "59" - }, - "synonyms": [ - { - "value": "fifty nine" - } - ] - }, - { - "sampleValue": { - "value": "60" - }, - "synonyms": [ - { - "value": "sixty" - } - ] - }, - { - "sampleValue": { - "value": "61" - }, - "synonyms": [ - { - "value": "sixty one" - } - ] - }, - { - "sampleValue": { - "value": "62" - }, - "synonyms": [ - { - "value": "sixty two" - } - ] - }, - { - "sampleValue": { - "value": "63" - }, - "synonyms": [ - { - "value": "sixty three" - } - ] - }, - { - "sampleValue": { - "value": "64" - }, - "synonyms": [ - { - "value": "sixty four" - } - ] - }, - { - "sampleValue": { - "value": "65" - }, - "synonyms": [ - { - "value": "sixty five" - } - ] - }, - { - "sampleValue": { - "value": "66" - }, - "synonyms": [ - { - "value": "sixty six" - } - ] - }, - { - "sampleValue": { - "value": "67" - }, - "synonyms": [ - { - "value": "sixty seven" - } - ] - }, - { - "sampleValue": { - "value": "68" - }, - "synonyms": [ - { - "value": "sixty eight" - } - ] - }, - { - "sampleValue": { - "value": "69" - }, - "synonyms": [ - { - "value": "sixty nine" - } - ] - }, - { - "sampleValue": { - "value": "70" - }, - "synonyms": [ - { - "value": "seventy" - } - ] - }, - { - "sampleValue": { - "value": "71" - }, - "synonyms": [ - { - "value": "seventy one" - } - ] - }, - { - "sampleValue": { - "value": "72" - }, - "synonyms": [ - { - "value": "seventy two" - } - ] - }, - { - "sampleValue": { - "value": "73" - }, - "synonyms": [ - { - "value": "seventy three" - } - ] - }, - { - "sampleValue": { - "value": "74" - }, - "synonyms": [ - { - "value": "seventy four" - } - ] - }, - { - "sampleValue": { - "value": "75" - }, - "synonyms": [ - { - "value": "seventy five" - } - ] - }, - { - "sampleValue": { - "value": "76" - }, - "synonyms": [ - { - "value": "seventy six" - } - ] - }, - { - "sampleValue": { - "value": "77" - }, - "synonyms": [ - { - "value": "seventy seven" - } - ] - }, - { - "sampleValue": { - "value": "78" - }, - "synonyms": [ - { - "value": "seventy eight" - } - ] - }, - { - "sampleValue": { - "value": "79" - }, - "synonyms": [ - { - "value": "seventy nine" - } - ] - }, - { - "sampleValue": { - "value": "80" - }, - "synonyms": [ - { - "value": "eighty" - } - ] - }, - { - "sampleValue": { - "value": "81" - }, - "synonyms": [ - { - "value": "eighty one" - } - ] - }, - { - "sampleValue": { - "value": "82" - }, - "synonyms": [ - { - "value": "eighty two" - } - ] - }, - { - "sampleValue": { - "value": "83" - }, - "synonyms": [ - { - "value": "eighty three" - } - ] - }, - { - "sampleValue": { - "value": "84" - }, - "synonyms": [ - { - "value": "eighty four" - } - ] - }, - { - "sampleValue": { - "value": "85" - }, - "synonyms": [ - { - "value": "eighty five" - } - ] - }, - { - "sampleValue": { - "value": "86" - }, - "synonyms": [ - { - "value": "eighty six" - } - ] - }, - { - "sampleValue": { - "value": "87" - }, - "synonyms": [ - { - "value": "eighty seven" - } - ] - }, - { - "sampleValue": { - "value": "88" - }, - "synonyms": [ - { - "value": "eighty eight" - } - ] - }, - { - "sampleValue": { - "value": "89" - }, - "synonyms": [ - { - "value": "eighty nine" - } - ] - }, - { - "sampleValue": { - "value": "90" - }, - "synonyms": [ - { - "value": "ninety" - } - ] - }, - { - "sampleValue": { - "value": "91" - }, - "synonyms": [ - { - "value": "ninety one" - } - ] - }, - { - "sampleValue": { - "value": "92" - }, - "synonyms": [ - { - "value": "ninety two" - } - ] - }, - { - "sampleValue": { - "value": "93" - }, - "synonyms": [ - { - "value": "ninety three" - } - ] - }, - { - "sampleValue": { - "value": "94" - }, - "synonyms": [ - { - "value": "ninety four" - } - ] - }, - { - "sampleValue": { - "value": "95" - }, - "synonyms": [ - { - "value": "ninety five" - } - ] - }, - { - "sampleValue": { - "value": "96" - }, - "synonyms": [ - { - "value": "ninety six" - } - ] - }, - { - "sampleValue": { - "value": "97" - }, - "synonyms": [ - { - "value": "ninety seven" - } - ] - }, - { - "sampleValue": { - "value": "98" - }, - "synonyms": [ - { - "value": "ninety eight" - } - ] - }, - { - "sampleValue": { - "value": "99" - }, - "synonyms": [ - { - "value": "ninety nine" - } - ] - }, - { - "sampleValue": { - "value": "100" - }, - "synonyms": [ - { - "value": "one hundred" - } - ] - }, - { - "sampleValue": { - "value": "Unknown" - }, - "synonyms": [ - { - "value": "prefer not" - }, - { - "value": "Rather not say" - }, - { - "value": "prefer not to" - }, - { - "value": "X" - }, - { - "value": "Prefer not to answer" - }, - { - "value": "0" - } - ] - } - ], - "valueSelectionSetting": { - "resolutionStrategy": "TopResolution" - } -} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json deleted file mode 100644 index 2f0850a0ea..0000000000 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/gender.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "slotTypeName": "gender", - "slotTypeValues": [ - { - "sampleValue": { - "value": "Boy" - }, - "synonyms": [ - { - "value": "Boy" - }, - { - "value": "Male" - }, - { - "value": "Dude" - }, - { - "value": "Guy" - }, - { - "value": "Man" - }, - { - "value": "M" - }, - { - "value": "He" - } - ] - }, - { - "sampleValue": { - "value": "Girl" - }, - "synonyms": [ - { - "value": "Woman" - }, - { - "value": "Lady" - }, - { - "value": "Female" - }, - { - "value": "She" - }, - { - "value": "F" - } - ] - }, - { - "sampleValue": { - "value": "Non-Binary" - }, - "synonyms": [ - { - "value": "None" - }, - { - "value": "non binary" - } - ] - }, - { - "sampleValue": { - "value": "Unknown" - }, - "synonyms": [ - { - "value": "x" - }, - { - "value": "not sure" - } - ] - }, - { - "sampleValue": { - "value": "prefer not to answer" - } - } - ], - "valueSelectionSetting": { - "resolutionStrategy": "TopResolution" - } -} \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json deleted file mode 100644 index a006e2dd20..0000000000 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slot_types/yes_no.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "slotTypeName": "yes_no", - "slotTypeValues": [ - { - "sampleValue": { - "value": "Yes" - }, - "synonyms": [ - { - "value": "Yah" - }, - { - "value": "Y" - }, - { - "value": "Yeah" - }, - { - "value": "Ya" - }, - { - "value": "1" - }, - { - "value": "One" - }, - { - "value": "X" - } - ] - }, - { - "sampleValue": { - "value": "No" - }, - "synonyms": [ - { - "value": "Na" - }, - { - "value": "Nah" - }, - { - "value": "Noo" - }, - { - "value": "N" - }, - { - "value": "2" - }, - { - "value": "Two" - } - ] - } - ], - "valueSelectionSetting": { - "resolutionStrategy": "TopResolution" - } -} diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json index 74aad41e50..01837d5ccf 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/was_helpful.json @@ -97,9 +97,5 @@ "enableCodeHookInvocation": true } } - }, - - "obfuscationSetting": { - "obfuscationSettingType": "None" } } \ No newline at end of file diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json index 7cbaadfacb..8c853a920a 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/slots/would_recommend.json @@ -96,8 +96,5 @@ "enableCodeHookInvocation": true } } - }, - "obfuscationSetting": { - "obfuscationSettingType": "None" } -} +} \ No newline at end of file From 41e51f2729157447a501f7f03dfdf8526f90e59e Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 15:14:46 +0200 Subject: [PATCH 4/8] filter expressions --- twilio-iac/helplines/nzba/staging.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index 7d2cbf4505..45ed641211 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -7,7 +7,7 @@ locals { enable_external_recordings = true enable_post_survey = true enable_datadog_monitoring = false - custom_task_routing_filter_expression = "channelType =='voice' OR 'web'" + custom_task_routing_filter_expression = "channelType IN ['web','voice'] OR isContactlessTask == true" permission_config = "nzba" #Studio flow From 7501c4a1fb1045999868c7b5b70d9e38adde9022 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 16:24:05 +0200 Subject: [PATCH 5/8] change template --- twilio-iac/helplines/nzba/staging.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index 45ed641211..7fb5b792bc 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -23,7 +23,7 @@ locals { webchat : { channel_type = "web" contact_identity = "" - templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-lex-v3-blocking-lambda.tftpl" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-lex-v2-blocking-lambda.tftpl" channel_flow_vars = {} chatbot_unique_names = [] }, From 9b6d6476d3b1ec8df72a5147e85ce060d02464fe Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Wed, 18 Feb 2026 17:26:50 +0200 Subject: [PATCH 6/8] bot language --- twilio-iac/helplines/nzba/staging.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index 7fb5b792bc..04043f2091 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -12,7 +12,7 @@ locals { #Studio flow flow_vars = { - bot_language = "en-US" + bot_language = "en_NZBA" widget_from = "Barnardos" chat_blocked_message = "Sorry, you're not able to contact Barnardos from this device or account" error_message = "There has been an error with your message, please try writing us again." From 09559d265a15ac8a66ff982f03ce56073f31dbfd Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 20 Feb 2026 20:39:37 +0200 Subject: [PATCH 7/8] remove alias id --- .../helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json | 1 - .../helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json | 1 - 2 files changed, 2 deletions(-) diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json index afc5b3bfa1..14ee3906cb 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/post_survey.json @@ -4,7 +4,6 @@ "locale": "en_US", "child_directed": true, "idle_session_ttl_in_seconds": "300", - "staging_bot_alias_id": "TSTALIASID", "type": "Bot", "intents": { "post_survey_yes": { diff --git a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json index 2099be1299..2444124042 100644 --- a/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json +++ b/twilio-iac/helplines/nzba/configs/lex_v2/en_NZBA/bots/pre_survey.json @@ -4,7 +4,6 @@ "locale": "en_US", "child_directed": true, "idle_session_ttl_in_seconds": "300", - "staging_bot_alias_id": "TSTALIASID", "type": "Bot", "intents": { "pre_survey": { From a952636567731e92b2b33d0785dcf97b948cbadf Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Tue, 24 Feb 2026 15:26:47 +0200 Subject: [PATCH 8/8] update --- .../nzba/v1/insights/postSurvey.json | 12 ++ .../terraform-modules/channels/v1/main.tf | 4 +- webchat/configurations/nzba-staging.ts | 204 +----------------- 3 files changed, 16 insertions(+), 204 deletions(-) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/insights/postSurvey.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/insights/postSurvey.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/insights/postSurvey.json new file mode 100644 index 0000000000..4da11fecf3 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/insights/postSurvey.json @@ -0,0 +1,12 @@ +[ + { + "insightsObject": "conversations", + "attributeName": "conversation_measure_6", + "questions": ["was_helpful"] + }, + { + "insightsObject": "conversations", + "attributeName": "conversation_measure_7", + "questions": ["would_recommend"] + } +] \ No newline at end of file diff --git a/twilio-iac/terraform-modules/channels/v1/main.tf b/twilio-iac/terraform-modules/channels/v1/main.tf index 09c3f643b0..442d541839 100644 --- a/twilio-iac/terraform-modules/channels/v1/main.tf +++ b/twilio-iac/terraform-modules/channels/v1/main.tf @@ -16,7 +16,9 @@ locals { webhook_url_studio_errors = nonsensitive(data.aws_ssm_parameter.webhook_url_studio_errors.value) custom_lambda_channels = {for key, val in var.channels: key => val if val.lambda_channel == true} - lambda_twilio_account_scoped_url = nonsensitive("https://hrm-${var.environment}.tl.techmatters.org/lambda/twilio/account-scoped/${var.twilio_account_sid}") +lambda_twilio_account_scoped_url = nonsensitive( + "https://hrm-${var.environment}${var.region == "eu-west-1" ? "-eu" : ""}.tl.techmatters.org/lambda/twilio/account-scoped/${var.twilio_account_sid}" +) get_profile_flags_for_identifier_base_url = nonsensitive(var.get_profile_flags_for_identifier_base_url == "" ? var.serverless_url : var.get_profile_flags_for_identifier_base_url) } diff --git a/webchat/configurations/nzba-staging.ts b/webchat/configurations/nzba-staging.ts index ac3512c5ed..06c772b6b6 100644 --- a/webchat/configurations/nzba-staging.ts +++ b/webchat/configurations/nzba-staging.ts @@ -19,7 +19,7 @@ import type { PreEngagementFormDefinition } from '../src/pre-engagement-form'; const accountSid = 'AC574591f522bc6e981aea7d34fb14fa5e'; const flexFlowSid = 'FO72895d84c5d2136ef19d0afc50a59f39'; -const defaultLanguage = 'en-NZ'; +const defaultLanguage = 'en-US'; const captureIp = true; const contactType: ContactType = 'ip'; @@ -47,208 +47,6 @@ const preEngagementConfig: PreEngagementFormDefinition = { label: 'First Name', required: true, }, - { - 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', - 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',