Skip to content

Commit

Permalink
Update ab211.tftpl
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-luo authored Dec 20, 2023
1 parent d29d5f5 commit 34d54db
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions twilio-iac/helplines/ca/templates/studio-flows/ab211.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -446,24 +446,38 @@ ${
{
"friendly_name": "If value equal_to 1",
"arguments": [
"{{widgets.FrSwitchEnglish.Digits}}"
"{{widgets.MSG60025F.Digits}}"
],
"type": "equal_to",
"value": "1"
}
]
},
{
"next": "FrSwitchInterpreter",
"event": "match",
"conditions": [
{
"friendly_name": "If value equal_to 2",
"arguments": [
"{{widgets.MSG60025F.Digits}}"
],
"type": "equal_to",
"value": "2"
}
]
}
],
"properties": {
"input": "{{widgets.FrSwitchEnglish.Digits}}",
"input": "{{widgets.MSG60025F.Digits}}",
"offset": {
"x": 240,
"y": 1410
}
}
},
{
"name": "FrSwitchEnglish",
"name": "MSG60025F",
"type": "gather-input-on-call",
"transitions": [
{
Expand Down Expand Up @@ -503,7 +517,7 @@ ${
"event": "noMatch"
},
{
"next": "FrSwitchEnglish",
"next": "MSG60025F",
"event": "match",
"conditions": [
{
Expand Down Expand Up @@ -583,7 +597,7 @@ ${
"type": "say-play",
"transitions": [
{
"next": "FrSwitchEnglish",
"next": "MSG60025F",
"event": "audioComplete"
}
],
Expand Down Expand Up @@ -907,6 +921,52 @@ ${
"profanity_filter": "true",
"timeout": 2
}
},
{
"name": "FrSwitchInterpreter",
"type": "say-play",
"transitions": [
{
"next": "sendToQ6004_FrInterpreter",
"event": "audioComplete"
}
],
"properties": {
"play": channel_flow_vars["fr_switch_url"],
"voice": "alice",
"offset": {
"x": -270,
"y": 2150
},
"loop": 1,
"language": "fr-CA"
}
},
{
"name": "sendToQ6004_FrInterpreter",
"type": "send-to-flex",
"transitions": [
{
"event": "callComplete"
},
{
"event": "failedToEnqueue"
},
{
"event": "callFailure"
}
],
"properties": {
"waitUrl": channel_flow_vars["frtr_function_url"],
"offset": {
"x": -860,
"y": 2150
},
"workflow": workflow_sids["master"],
"channel": task_channel_sids["voice"],
"attributes": "{\"type\": \"inbound\", \"name\": \"{{trigger.call.From}}\",\"ignoreAgent\":\"\", \"transferTargetType\":\"\",\"channelType\":\"voice\", \"interpreter\": \"fr\"}",
"waitUrlMethod": "GET"
}
}
],
"initial_state": "Trigger",
Expand Down

0 comments on commit 34d54db

Please sign in to comment.