Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"insightsObject": "conversations",
"attributeName": "conversation_measure_6",
"questions": ["was_helpful"]
},
{
"insightsObject": "conversations",
"attributeName": "conversation_measure_7",
"questions": ["would_recommend"]
}
]
11 changes: 7 additions & 4 deletions twilio-iac/helplines/nzba/common.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ locals {


local_config = {
helpline = "Barnardos"
default_autopilot_chatbot_enabled = false
task_language = "en-NZ"
helpline_region = "eu-west-1"
helpline = "Barnardos"
task_language = "en-NZ"
helpline_region = "eu-west-1"

lex_v2_bot_languages = {
en_NZBA : ["pre_survey", "post_survey"]
}

workflows = {
master : {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,59 @@
{
"post_survey": {
"description": "General es/bots Post Survey bot",
"description": "General configs/lex_v2/en_NZBA/bots Post Survey bot",
"locale": "en_US",
"child_directed": true,
"idle_session_ttl_in_seconds": "600",
"idle_session_ttl_in_seconds": "300",
"type": "Bot",
"intents": {
"post_survey_yes": {
"utterances": [
{
"utterance": "Yes"
},
{
"utterance": "yes"
},
{
"utterance": "yeah"
},
{
"utterance": "1"
}
],
"closing_response": {
"message": "Thank you for reaching out. Please contact us again if you need more help."
},
"slot_priorities": {
"1": {
"slot_name": "was_helpful",
"slot_type_name": "yes_no",
"slot_question": "Did you find this conversation helpful? Please answer Yes or No."
"slot_question": "Did you find this conversation helpful? Please answer Yes or No.",
"failure_response": "Thank you for reaching out. Please contact us again if you need more help."
},
"2": {
"slot_name": "would_recommend",
"slot_type_name": "yes_no",
"slot_question": "Based on this conversation, would you recommend that someone in a similar situation contact us? Please answer Yes or No."
"slot_question": "Based on this conversation, would you recommend that someone in a similar situation contact us? Please answer Yes or No.",
"failure_response": "Thank you for reaching out. Please contact us again if you need more help."
}
}
},
"post_survey_no": {
"utterances": [
{
"utterance": "No"
},
{
"utterance": "no"
},
{
"utterance": "nope"
},
{
"utterance": "2"
}
],
"closing_response": {
"message": "Thank you for reaching out. Please contact us again if you need more help."
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"pre_survey": {
"description": "Example configs/lex_v2/en_US/bots Pre Survey bot",
"description": "Example configs/lex_v2/en_NZBA/bots Pre Survey bot",
"locale": "en_US",
"child_directed": true,
"idle_session_ttl_in_seconds": "600",
"staging_bot_alias_id": "QUIVYKVF4P",
"production_bot_alias_id": "AHEY3RKT3F",
"idle_session_ttl_in_seconds": "300",
"type": "Bot",
"intents": {
"pre_survey": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"intentName": "post_survey_no",
"description": "Post Survey Intent - Yes",
"sampleUtterances": [
{
"utterance": "No"
},
{
"utterance": "no"
},
{
"utterance": "nope"
},
{
"utterance": "2"
}
],
"dialogCodeHook": {
"enabled": false
},
"fulfillmentCodeHook": {
"enabled": false,
"active": true,
"postFulfillmentStatusSpecification": {
"successNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"failureNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"timeoutNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
}
}
},
"slotPriorities": [],
"intentClosingSetting": {
"closingResponse": {
"messageGroups": [
{
"message": {
"plainTextMessage": {
"value": "Thank you for reaching out. Please contact us again if you need more help."
}
}
}
],
"allowInterrupt": true
},
"active": true,
"nextStep": {
"dialogAction": {
"type": "EndConversation"
},
"intent": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"intentName": "post_survey_yes",
"description": "Post Survey Intent - Yes",
"sampleUtterances": [
{
"utterance": "Yes"
},
{
"utterance": "yes"
},
{
"utterance": "yeah"
},
{
"utterance": "1"
}
],
"dialogCodeHook": {
"enabled": false
},
"fulfillmentCodeHook": {
"enabled": false,
"active": true,
"postFulfillmentStatusSpecification": {
"successNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"failureNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"timeoutNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
}
}
},
"slotPriorities": [
{
"priority": 1,
"slotName": "was_helpful"
},
{
"priority": 2,
"slotName": "would_recommend"
}
],
"intentClosingSetting": {
"closingResponse": {
"messageGroups": [
{
"message": {
"plainTextMessage": {
"value": "Thank you for reaching out. Please contact us again if you need more help."
}
}
}
],
"allowInterrupt": true
},
"active": true,
"nextStep": {
"dialogAction": {
"type": "EndConversation"
},
"intent": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"intentName": "pre_survey",
"description": "Example configs/lex_v2/en_NZBA/bots Pre Survey bot",
"sampleUtterances": [
{
"utterance": "trigger_pre_survey"
},
{
"utterance": "Incoming webchat contact"
}
],
"dialogCodeHook": {
"enabled": false
},
"fulfillmentCodeHook": {
"enabled": false,
"active": true,
"postFulfillmentStatusSpecification": {
"successNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"failureNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
},
"timeoutNextStep": {
"dialogAction": {
"type": "CloseIntent"
},
"intent": {}
}
}
},
"slotPriorities": [
{
"priority": 1,
"slotName": "aboutSelf"
},
{
"priority": 2,
"slotName": "age"
},
{
"priority": 3,
"slotName": "gender"
}
],
"intentClosingSetting": {
"closingResponse": {
"messageGroups": [
{
"message": {
"plainTextMessage": {
"value": "We will transfer you now. Please hold for a counsellor."
}
}
}
],
"allowInterrupt": true
},
"active": true,
"nextStep": {
"dialogAction": {
"type": "EndConversation"
},
"intent": {}
}
},
"initialResponseSetting": {
"initialResponse": {
"messageGroups": [
{
"message": {
"plainTextMessage": {
"value": "Welcome to the helpline. Please answer the following questions."
}
}
}
],
"allowInterrupt": true
},
"active": true,
"nextStep": {
"dialogAction": {
"type": "InvokeDialogCodeHook"
},
"intent": {}
},
"codeHook": {
"enableCodeHookInvocation": true,
"active": true,
"postCodeHookSpecification": {
"successNextStep": {
"dialogAction": {
"type": "ElicitSlot",
"slotToElicit": "aboutSelf"
},
"intent": {}
},
"failureNextStep": {
"dialogAction": {
"type": "EndConversation"
},
"intent": {}
},
"timeoutNextStep": {
"dialogAction": {
"type": "EndConversation"
},
"intent": {}
}
}
}
}
}
Loading
Loading