From 2f5a713ddf17f7667d0c76fdbe206bc59095f460 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 18 Mar 2021 23:07:44 +0000 Subject: [PATCH 1/3] pp.Dialogflow default config --- config/Settings.ts | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/config/Settings.ts b/config/Settings.ts index e931d68..62c3a69 100644 --- a/config/Settings.ts +++ b/config/Settings.ts @@ -27,12 +27,13 @@ export enum AppSetting { } export enum DefaultMessage { - DEFAULT_DialogflowServiceUnavailableMessage = 'Sorry, I\'m having trouble answering your question.', - DEFAULT_DialogflowRequestFailedMessage = 'Sorry, something went wrong.', - DEFAULT_DialogflowHandoverMessage = 'Transferring to an online agent', + DEFAULT_DialogflowRequestFailedMessage = 'Sorry, I\'m having trouble with that.', DEFAULT_DialogflowHandoverFailedMessage = 'Sorry I\'m unable to transfer you to an agent.', - DEFAULT_DialogflowCloseChatMessage = 'Closing the chat, Goodbye', - DEFAULT_DialogflowWelcomeMessage = 'Thanks for connecting', + DEFAULT_DialogflowWelcomeMessage = 'Thank you for contacting Viasat, please tell me in a few words how I can help you today.', + DEFAULT_DialogflowServiceUnavailableMessage = 'There are no agents currently available. Our Customer Care team is available by phone 24/7 at 1-855-463-9333.', + DEFAULT_DialogflowCloseChatMessage = 'Thanks for contacting Viasat Customer Care. We appreciate your business. Please close this window to end your chat session.', + DEFAULT_DialogflowHandoverMessage = 'Connecting you with a live agent', + DEFAULT_DialogflowCustomerTimeoutWarningMessage = 'Are you still there? Please send a message within %t or this chat will time out.', } export const settings: Array = [ @@ -40,7 +41,7 @@ export const settings: Array = [ id: AppSetting.DialogflowBotUsername, public: true, type: SettingType.STRING, - packageValue: '', + packageValue: 'virtualassistant', i18nLabel: 'bot_username', required: true, }, @@ -92,7 +93,7 @@ export const settings: Array = [ public: true, type: SettingType.NUMBER, packageValue: 0, - value: 0, + value: 3, i18nLabel: 'dialogflow_fallback_responses_limit', i18nDescription: 'dialogflow_fallback_responses_limit_description', required: false, @@ -101,7 +102,7 @@ export const settings: Array = [ id: AppSetting.FallbackTargetDepartment, public: true, type: SettingType.STRING, - packageValue: '', + packageValue: 'Viasat Customer Support', i18nLabel: 'target_department_for_handover', i18nDescription: 'target_department_for_handover_description', required: false, @@ -110,7 +111,7 @@ export const settings: Array = [ id: AppSetting.DialogflowHandoverMessage, public: true, type: SettingType.STRING, - packageValue: '', + packageValue: DefaultMessage.DEFAULT_DialogflowHandoverMessage, i18nLabel: 'dialogflow_handover_message', i18nDescription: 'dialogflow_handover_message_description', required: false, @@ -119,7 +120,7 @@ export const settings: Array = [ id: AppSetting.DialogflowServiceUnavailableMessage, public: true, type: SettingType.STRING, - packageValue: '', + packageValue: DefaultMessage.DEFAULT_DialogflowServiceUnavailableMessage, i18nLabel: 'dialogflow_service_unavailable_message', i18nDescription: 'dialogflow_service_unavailable_message_description', required: false, @@ -128,7 +129,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCloseChatMessage, public: true, type: SettingType.STRING, - packageValue: '', + packageValue: DefaultMessage.DEFAULT_DialogflowCloseChatMessage, i18nLabel: 'dialogflow_close_chat_message', i18nDescription: 'dialogflow_close_chat_message_description', required: false, @@ -157,7 +158,7 @@ export const settings: Array = [ id: AppSetting.DialogflowChatClosedByVisitorEventName, public: true, type: SettingType.STRING, - packageValue: 'closed_by_visitor', + packageValue: 'end_session', i18nLabel: 'dialogflow_chat_closed_by_visitor_event_name', i18nDescription: 'dialogflow_chat_closed_by_visitor_event_name_description', required: false, @@ -166,7 +167,7 @@ export const settings: Array = [ id: AppSetting.DialogflowEnableWelcomeMessage, public: true, type: SettingType.BOOLEAN, - packageValue: false, + packageValue: true, i18nLabel: 'dialogflow_enable_welcome_message', i18nDescription: 'dialogflow_enable_welcome_message_description', required: false, @@ -184,7 +185,7 @@ export const settings: Array = [ id: AppSetting.DialogflowWelcomeIntentOnStart, public: true, type: SettingType.BOOLEAN, - packageValue: false, + packageValue: true, i18nLabel: 'dialogflow_welcome_intent_on_start', i18nDescription: 'dialogflow_welcome_intent_on_start_description', required: true, @@ -193,7 +194,7 @@ export const settings: Array = [ id: AppSetting.DialogflowEnableCustomerTimeout, public: true, type: SettingType.BOOLEAN, - packageValue: false, + packageValue: true, i18nLabel: 'dialogflow_enable_customer_timeout', i18nDescription: 'dialogflow_enable_customer_timeout_description', required: true, @@ -202,7 +203,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCustomerTimeoutTime, public: true, type: SettingType.NUMBER, - packageValue: 60, + packageValue: 300, i18nLabel: 'dialogflow_customer_timeout_time', i18nDescription: 'dialogflow_customer_timeout_time_description', required: true, @@ -211,7 +212,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCustomerTimeoutWarningTime, public: true, type: SettingType.NUMBER, - packageValue: 40, + packageValue: 60, i18nLabel: 'dialogflow_customer_timeout_warning_time', i18nDescription: 'dialogflow_customer_timeout_warning_time_description', required: true, @@ -220,7 +221,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCustomerTimeoutWarningMessage, public: true, type: SettingType.STRING, - packageValue: 'Are you still there? Please send a message within %t or this chat will time out.', + packageValue: DefaultMessage.DEFAULT_DialogflowCustomerTimeoutWarningMessage, i18nLabel: 'dialogflow_customer_timeout_warning_message', i18nDescription: 'dialogflow_customer_timeout_warning_message_description', required: true, @@ -229,7 +230,7 @@ export const settings: Array = [ id: AppSetting.DialogflowSessionMaintenanceInterval, public: true, type: SettingType.STRING, - packageValue: '8 minutes', + packageValue: '5 minutes', i18nLabel: 'dialogflow_session_maintenance_interval', i18nDescription: 'dialogflow_session_maintenance_interval_description', required: false, From 60d3abdbe86b4c9e1198380e677a7f76bef0b231 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 19 Mar 2021 14:08:50 +0000 Subject: [PATCH 2/3] swapping timeout values --- config/Settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/Settings.ts b/config/Settings.ts index 62c3a69..38bcdd9 100644 --- a/config/Settings.ts +++ b/config/Settings.ts @@ -203,7 +203,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCustomerTimeoutTime, public: true, type: SettingType.NUMBER, - packageValue: 300, + packageValue: 60, i18nLabel: 'dialogflow_customer_timeout_time', i18nDescription: 'dialogflow_customer_timeout_time_description', required: true, @@ -212,7 +212,7 @@ export const settings: Array = [ id: AppSetting.DialogflowCustomerTimeoutWarningTime, public: true, type: SettingType.NUMBER, - packageValue: 60, + packageValue: 600, i18nLabel: 'dialogflow_customer_timeout_warning_time', i18nDescription: 'dialogflow_customer_timeout_warning_time_description', required: true, From 84d7c6763d623412d31bfbe177541b435becdffc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 19 Mar 2021 18:22:33 +0000 Subject: [PATCH 3/3] small update --- config/Settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Settings.ts b/config/Settings.ts index 38bcdd9..fc04d06 100644 --- a/config/Settings.ts +++ b/config/Settings.ts @@ -29,7 +29,7 @@ export enum AppSetting { export enum DefaultMessage { DEFAULT_DialogflowRequestFailedMessage = 'Sorry, I\'m having trouble with that.', DEFAULT_DialogflowHandoverFailedMessage = 'Sorry I\'m unable to transfer you to an agent.', - DEFAULT_DialogflowWelcomeMessage = 'Thank you for contacting Viasat, please tell me in a few words how I can help you today.', + DEFAULT_DialogflowWelcomeMessage = 'Thank you for contacting Viasat.', DEFAULT_DialogflowServiceUnavailableMessage = 'There are no agents currently available. Our Customer Care team is available by phone 24/7 at 1-855-463-9333.', DEFAULT_DialogflowCloseChatMessage = 'Thanks for contacting Viasat Customer Care. We appreciate your business. Please close this window to end your chat session.', DEFAULT_DialogflowHandoverMessage = 'Connecting you with a live agent',