Skip to content

Commit

Permalink
KHP IVR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-luo authored Oct 29, 2024
1 parent 44fce73 commit 38fb0ed
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions twilio-iac/helplines/ca/templates/studio-flows/khp_main.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ ${
"type": "split-based-on",
"transitions": [
{
"event": "noMatch"
"event": "noMatch",
"next": "Msg60011E-Inflight"
},
{
"next": "Msg60011E-Inflight",
Expand Down Expand Up @@ -1219,7 +1220,7 @@ ${
"stop_gather": true,
"gather_language": "en",
"profanity_filter": "true",
"timeout": 2
"timeout": 5
}
},
{
Expand Down Expand Up @@ -1249,7 +1250,7 @@ ${
"type": "split-based-on",
"transitions": [
{
"next": "main_disconnect",
"next": "Msg10006E-Info",
"event": "noMatch"
},
{
Expand All @@ -1262,7 +1263,7 @@ ${
"{{flow.variables.retry_counter}}"
],
"type": "less_than",
"value": "3"
"value": "2"
}
]
}
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -1359,7 +1343,8 @@ ${
"type": "split-based-on",
"transitions": [
{
"event": "noMatch"
"event": "noMatch",
"next": "Msg60011E-Inflight"
},
{
"next": "sendToQ6001_English",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 38fb0ed

Please sign in to comment.