Skip to content

Commit 039d37b

Browse files
authored
Merge pull request RocketChat#48 from WideChat/cg_app_defaults
app.Dialogflow default config
2 parents 76d8f0f + 84d7c67 commit 039d37b

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

config/Settings.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@ export enum AppSetting {
2727
}
2828

2929
export enum DefaultMessage {
30-
DEFAULT_DialogflowServiceUnavailableMessage = 'Sorry, I\'m having trouble answering your question.',
31-
DEFAULT_DialogflowRequestFailedMessage = 'Sorry, something went wrong.',
32-
DEFAULT_DialogflowHandoverMessage = 'Transferring to an online agent',
30+
DEFAULT_DialogflowRequestFailedMessage = 'Sorry, I\'m having trouble with that.',
3331
DEFAULT_DialogflowHandoverFailedMessage = 'Sorry I\'m unable to transfer you to an agent.',
34-
DEFAULT_DialogflowCloseChatMessage = 'Closing the chat, Goodbye',
35-
DEFAULT_DialogflowWelcomeMessage = 'Thanks for connecting',
32+
DEFAULT_DialogflowWelcomeMessage = 'Thank you for contacting Viasat.',
33+
DEFAULT_DialogflowServiceUnavailableMessage = 'There are no agents currently available. Our Customer Care team is available by phone 24/7 at 1-855-463-9333.',
34+
DEFAULT_DialogflowCloseChatMessage = 'Thanks for contacting Viasat Customer Care. We appreciate your business. Please close this window to end your chat session.',
35+
DEFAULT_DialogflowHandoverMessage = 'Connecting you with a live agent',
36+
DEFAULT_DialogflowCustomerTimeoutWarningMessage = 'Are you still there? Please send a message within %t or this chat will time out.',
3637
}
3738

3839
export const settings: Array<ISetting> = [
3940
{
4041
id: AppSetting.DialogflowBotUsername,
4142
public: true,
4243
type: SettingType.STRING,
43-
packageValue: '',
44+
packageValue: 'virtualassistant',
4445
i18nLabel: 'bot_username',
4546
required: true,
4647
},
@@ -92,7 +93,7 @@ export const settings: Array<ISetting> = [
9293
public: true,
9394
type: SettingType.NUMBER,
9495
packageValue: 0,
95-
value: 0,
96+
value: 3,
9697
i18nLabel: 'dialogflow_fallback_responses_limit',
9798
i18nDescription: 'dialogflow_fallback_responses_limit_description',
9899
required: false,
@@ -101,7 +102,7 @@ export const settings: Array<ISetting> = [
101102
id: AppSetting.FallbackTargetDepartment,
102103
public: true,
103104
type: SettingType.STRING,
104-
packageValue: '',
105+
packageValue: 'Viasat Customer Support',
105106
i18nLabel: 'target_department_for_handover',
106107
i18nDescription: 'target_department_for_handover_description',
107108
required: false,
@@ -110,7 +111,7 @@ export const settings: Array<ISetting> = [
110111
id: AppSetting.DialogflowHandoverMessage,
111112
public: true,
112113
type: SettingType.STRING,
113-
packageValue: '',
114+
packageValue: DefaultMessage.DEFAULT_DialogflowHandoverMessage,
114115
i18nLabel: 'dialogflow_handover_message',
115116
i18nDescription: 'dialogflow_handover_message_description',
116117
required: false,
@@ -119,7 +120,7 @@ export const settings: Array<ISetting> = [
119120
id: AppSetting.DialogflowServiceUnavailableMessage,
120121
public: true,
121122
type: SettingType.STRING,
122-
packageValue: '',
123+
packageValue: DefaultMessage.DEFAULT_DialogflowServiceUnavailableMessage,
123124
i18nLabel: 'dialogflow_service_unavailable_message',
124125
i18nDescription: 'dialogflow_service_unavailable_message_description',
125126
required: false,
@@ -128,7 +129,7 @@ export const settings: Array<ISetting> = [
128129
id: AppSetting.DialogflowCloseChatMessage,
129130
public: true,
130131
type: SettingType.STRING,
131-
packageValue: '',
132+
packageValue: DefaultMessage.DEFAULT_DialogflowCloseChatMessage,
132133
i18nLabel: 'dialogflow_close_chat_message',
133134
i18nDescription: 'dialogflow_close_chat_message_description',
134135
required: false,
@@ -157,7 +158,7 @@ export const settings: Array<ISetting> = [
157158
id: AppSetting.DialogflowChatClosedByVisitorEventName,
158159
public: true,
159160
type: SettingType.STRING,
160-
packageValue: 'closed_by_visitor',
161+
packageValue: 'end_session',
161162
i18nLabel: 'dialogflow_chat_closed_by_visitor_event_name',
162163
i18nDescription: 'dialogflow_chat_closed_by_visitor_event_name_description',
163164
required: false,
@@ -166,7 +167,7 @@ export const settings: Array<ISetting> = [
166167
id: AppSetting.DialogflowEnableWelcomeMessage,
167168
public: true,
168169
type: SettingType.BOOLEAN,
169-
packageValue: false,
170+
packageValue: true,
170171
i18nLabel: 'dialogflow_enable_welcome_message',
171172
i18nDescription: 'dialogflow_enable_welcome_message_description',
172173
required: false,
@@ -184,7 +185,7 @@ export const settings: Array<ISetting> = [
184185
id: AppSetting.DialogflowWelcomeIntentOnStart,
185186
public: true,
186187
type: SettingType.BOOLEAN,
187-
packageValue: false,
188+
packageValue: true,
188189
i18nLabel: 'dialogflow_welcome_intent_on_start',
189190
i18nDescription: 'dialogflow_welcome_intent_on_start_description',
190191
required: true,
@@ -193,7 +194,7 @@ export const settings: Array<ISetting> = [
193194
id: AppSetting.DialogflowEnableCustomerTimeout,
194195
public: true,
195196
type: SettingType.BOOLEAN,
196-
packageValue: false,
197+
packageValue: true,
197198
i18nLabel: 'dialogflow_enable_customer_timeout',
198199
i18nDescription: 'dialogflow_enable_customer_timeout_description',
199200
required: true,
@@ -211,7 +212,7 @@ export const settings: Array<ISetting> = [
211212
id: AppSetting.DialogflowCustomerTimeoutWarningTime,
212213
public: true,
213214
type: SettingType.NUMBER,
214-
packageValue: 40,
215+
packageValue: 600,
215216
i18nLabel: 'dialogflow_customer_timeout_warning_time',
216217
i18nDescription: 'dialogflow_customer_timeout_warning_time_description',
217218
required: true,
@@ -220,7 +221,7 @@ export const settings: Array<ISetting> = [
220221
id: AppSetting.DialogflowCustomerTimeoutWarningMessage,
221222
public: true,
222223
type: SettingType.STRING,
223-
packageValue: 'Are you still there? Please send a message within %t or this chat will time out.',
224+
packageValue: DefaultMessage.DEFAULT_DialogflowCustomerTimeoutWarningMessage,
224225
i18nLabel: 'dialogflow_customer_timeout_warning_message',
225226
i18nDescription: 'dialogflow_customer_timeout_warning_message_description',
226227
required: true,
@@ -229,7 +230,7 @@ export const settings: Array<ISetting> = [
229230
id: AppSetting.DialogflowSessionMaintenanceInterval,
230231
public: true,
231232
type: SettingType.STRING,
232-
packageValue: '8 minutes',
233+
packageValue: '5 minutes',
233234
i18nLabel: 'dialogflow_session_maintenance_interval',
234235
i18nDescription: 'dialogflow_session_maintenance_interval_description',
235236
required: false,

0 commit comments

Comments
 (0)