From 38fb0ed97945a9e0989defdc23495ac9e97992f1 Mon Sep 17 00:00:00 2001 From: Dee Luo <79488570+dee-luo@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:23:11 -0400 Subject: [PATCH] KHP IVR changes --- .../ca/templates/studio-flows/khp_main.tftpl | 61 ++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/twilio-iac/helplines/ca/templates/studio-flows/khp_main.tftpl b/twilio-iac/helplines/ca/templates/studio-flows/khp_main.tftpl index c621424f9e..f4a0f2ef89 100644 --- a/twilio-iac/helplines/ca/templates/studio-flows/khp_main.tftpl +++ b/twilio-iac/helplines/ca/templates/studio-flows/khp_main.tftpl @@ -696,7 +696,8 @@ ${ "type": "split-based-on", "transitions": [ { - "event": "noMatch" + "event": "noMatch", + "next": "Msg60011E-Inflight" }, { "next": "Msg60011E-Inflight", @@ -1219,7 +1220,7 @@ ${ "stop_gather": true, "gather_language": "en", "profanity_filter": "true", - "timeout": 2 + "timeout": 5 } }, { @@ -1249,7 +1250,7 @@ ${ "type": "split-based-on", "transitions": [ { - "next": "main_disconnect", + "next": "Msg10006E-Info", "event": "noMatch" }, { @@ -1262,7 +1263,7 @@ ${ "{{flow.variables.retry_counter}}" ], "type": "less_than", - "value": "3" + "value": "2" } ] } @@ -1293,23 +1294,6 @@ ${ "loop": 1 } }, - { - "name": "main_disconnect", - "type": "say-play", - "transitions": [ - { - "event": "audioComplete" - } - ], - "properties": { - "play": channel_flow_vars["en_disconnect_url"], - "offset": { - "x": -1840, - "y": -1540 - }, - "loop": 1 - } - }, { "name": "sendToQ6004_FrInterpreter", "type": "send-to-flex", @@ -1359,7 +1343,8 @@ ${ "type": "split-based-on", "transitions": [ { - "event": "noMatch" + "event": "noMatch", + "next": "Msg60011E-Inflight" }, { "next": "sendToQ6001_English", @@ -1423,7 +1408,39 @@ ${ "attributes": "{\"language\": \"en-CA\",\n\"type\": \"inbound\", \"name\": \"{{trigger.call.From}}\",\"ignoreAgent\":\"\", \"transferTargetType\":\"\",\"channelType\":\"voice\", \"interpreter\": \"indigenous\"}", "waitUrlMethod": "GET" } + }, + { + "name": "MainMenuB_Retry", + "type": "gather-input-on-call", + "transitions": [ + { + "next": "split_main_menu", + "event": "keypress" + }, + { + "event": "speech" + }, + { + "next": "split_main_menu", + "event": "timeout" + } + ], + "properties": { + "play": "https://twilio-service-4854.twil.io/MSG10000B.mp3", + "number_of_digits": 1, + "speech_timeout": "auto", + "offset": { + "x": -1070, + "y": -1810 + }, + "loop": 1, + "finish_on_key": "#", + "stop_gather": true, + "gather_language": "en", + "profanity_filter": "true", + "timeout": 5 } + } ], "initial_state": "Trigger", "flags": {