Skip to content

Commit

Permalink
Update g2tns.tftpl
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-luo authored Dec 20, 2023
1 parent 5fe36dd commit ca54401
Showing 1 changed file with 67 additions and 7 deletions.
74 changes: 67 additions & 7 deletions twilio-iac/helplines/ca/templates/studio-flows/g2tns.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 All @@ -478,7 +492,7 @@ ${
}
],
"properties": {
"play": channel_flow_vars["fr_switch_english_url"],
"play": channel_flow_vars["fr_switch_url"],
"speech_timeout": "auto",
"offset": {
"x": 560,
Expand All @@ -502,7 +516,7 @@ ${
"event": "noMatch"
},
{
"next": "FrSwitchEnglish",
"next": "MSG60025F",
"event": "match",
"conditions": [
{
Expand Down Expand Up @@ -582,7 +596,7 @@ ${
"type": "say-play",
"transitions": [
{
"next": "FrSwitchEnglish",
"next": "MSG60025F",
"event": "audioComplete"
}
],
Expand Down Expand Up @@ -906,7 +920,53 @@ ${
"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",
"flags": {
Expand Down

0 comments on commit ca54401

Please sign in to comment.