Skip to content

Commit

Permalink
Conversations: Alejandro/conversations/fix lex flows (#2408)
Browse files Browse the repository at this point in the history
* update templates

* BR

* et

* hu

* mt

* mw

* nz

* pk

* zm

* zm

* BR v2

* Fixing flex flow aws parameter
  • Loading branch information
janorivera authored Jul 16, 2024
1 parent 9a66082 commit 3cc29c8
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 2 deletions.
16 changes: 16 additions & 0 deletions twilio-iac/helplines/br/templates/studio-flows/messaging.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,14 @@ ${
{
"value": "contactReasonMemory",
"key": "memoryAttribute"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down Expand Up @@ -579,6 +587,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ ${
{
"value": "languageMemory",
"key": "memoryAttribute"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
10 changes: 9 additions & 1 deletion twilio-iac/helplines/mw/templates/studio-flows/mw-lex.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,15 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
}
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/${flow_vars["capture_channel_with_bot_function_name"]}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,14 @@ ${
{
"value": "preSurveyCompleteEn",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down Expand Up @@ -1424,6 +1432,14 @@ ${
{
"value": "preSurveyCompleteFil",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/${flow_vars["capture_channel_with_bot_function_name"]}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,14 @@ ${
{
"value": "preSurveyComplete",
"key": "releaseFlag"
},
{
"value": "{{trigger.message.ChannelAttributes.channel_type | downcase}}",
"key": "channelType"
},
{
"value": "false",
"key": "isConversation"
}
],
"url": "${serverless_url}/channelCapture/captureChannelWithBot"
Expand Down
2 changes: 1 addition & 1 deletion twilio-iac/terraform-modules/channels/v1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ resource "aws_ssm_parameter" "channel_flex_flow_sid" {
for idx, channel in var.channels :
idx => channel if(channel.channel_type == "custom" && channel.messaging_mode == "programmable-chat")
}
name = "/${lower(var.environment)}/twilio/${nonsensitive(var.twilio_account_sid)}/flex_flow_sid"
name = "/${lower(var.environment)}/twilio/${nonsensitive(var.twilio_account_sid)}/${each.key}_flex_flow_sid"
type = "SecureString"
value = twilio_flex_flex_flows_v1.channel_flow[each.key].sid
description = "${title(replace(each.key, "_", " "))} Flex Flow SID"
Expand Down

0 comments on commit 3cc29c8

Please sign in to comment.