Skip to content

Commit

Permalink
Merge pull request RocketChat#48 from WideChat/cg_app_defaults
Browse files Browse the repository at this point in the history
app.Dialogflow default config
  • Loading branch information
chadgoss authored Mar 19, 2021
2 parents 76d8f0f + 84d7c67 commit 039d37b
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions config/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,21 @@ 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.',
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<ISetting> = [
{
id: AppSetting.DialogflowBotUsername,
public: true,
type: SettingType.STRING,
packageValue: '',
packageValue: 'virtualassistant',
i18nLabel: 'bot_username',
required: true,
},
Expand Down Expand Up @@ -92,7 +93,7 @@ export const settings: Array<ISetting> = [
public: true,
type: SettingType.NUMBER,
packageValue: 0,
value: 0,
value: 3,
i18nLabel: 'dialogflow_fallback_responses_limit',
i18nDescription: 'dialogflow_fallback_responses_limit_description',
required: false,
Expand All @@ -101,7 +102,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -110,7 +111,7 @@ export const settings: Array<ISetting> = [
id: AppSetting.DialogflowHandoverMessage,
public: true,
type: SettingType.STRING,
packageValue: '',
packageValue: DefaultMessage.DEFAULT_DialogflowHandoverMessage,
i18nLabel: 'dialogflow_handover_message',
i18nDescription: 'dialogflow_handover_message_description',
required: false,
Expand All @@ -119,7 +120,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -128,7 +129,7 @@ export const settings: Array<ISetting> = [
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,
Expand Down Expand Up @@ -157,7 +158,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -166,7 +167,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -184,7 +185,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -193,7 +194,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -211,7 +212,7 @@ export const settings: Array<ISetting> = [
id: AppSetting.DialogflowCustomerTimeoutWarningTime,
public: true,
type: SettingType.NUMBER,
packageValue: 40,
packageValue: 600,
i18nLabel: 'dialogflow_customer_timeout_warning_time',
i18nDescription: 'dialogflow_customer_timeout_warning_time_description',
required: true,
Expand All @@ -220,7 +221,7 @@ export const settings: Array<ISetting> = [
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,
Expand All @@ -229,7 +230,7 @@ export const settings: Array<ISetting> = [
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,
Expand Down

0 comments on commit 039d37b

Please sign in to comment.