自訂訊息和翻譯

messages 設定可用於自訂 Web SDK 中顯示的任何字串。包括現有語言或新增語言 (例如deesfrja)。

ccaas.config({
  messages: {
    [lang]: {
      [group]: {
        [key]: '__string__'
      }
    }
  }
})

以下是 messages 物件的範例,用於自訂英文副本:

ccaas.config({
 messages: {
   en: {
     button: {
       yes: 'OK'
      }
   }
 }
})

如要查看可自訂的所有 Web SDK 訊息清單,請參閱「Web SDK v3 字串指南」。

常見訊息

這些訊息會顯示在網頁 SDK 中出現通用元素的任何位置。

按鈕

{
  "yes": "Yes",
  "no": "No",
  "cancel": "Cancel",
  "back": "Back",
  "exit": "Exit",
  "end": "End",
  "close": "Close",
  "submit": "Submit",
  "ok": "Okay",
  "send": "Send",
  "resend": "Resend",
  "skip": "Skip",
  "refresh": "Refresh",
  "continueConversation": "Continue conversation",
  "newConversation": "Start A New conversation"
}

範例:

ccaas.config({
  messages: {
    en: {
      button: {
        yes: 'OK'
      }
    }
  }
})

首頁

這些訊息只會顯示在首頁。消費者啟動網頁 SDK 時,通常會看到這個畫面。

首頁

{
  "minimize": "Tap to minimize",
  "support": "{0} Support",
  "start": "Need any help?"
}
ccaas.config({
  messages: {
    en: {
      home: {
        start: 'Hi, how can I help you?'
      }
    }
  }
})

這些訊息會顯示在「選單」畫面。包括佇列和頻道選擇畫面。

{
  "greeting": "Hi there, how can we help?",
  "backMessage": "Looks like you changed your mind! How else can we help?",
  "emptyMessage": "We're sorry, this support option is not available right now.",
  "queueMessage": "Let's help you with {0}",
  "channelsMessage": "How would you like to communicate?",
  "selectOption": "Select an option",
  "externalLinkConfirm": "Did that resolve your issue?",
  "deflectionDefaultMessage": "We are currently experiencing a high volume of requests with a current wait time of {0}. How would you like to reach out?",
  "deflectionAfterhourMessage": "We are currently closed. We look forward to helping you during our normal business hours.",
  "deflectionKeepWaitingMessage": "Thank you for continuing to wait. The remaining wait time is {0}.",
  "collectEmail": "Provide your email address",
  "additionalOptions": "Additional options",
  "ahdOptionsCloseMessage": "We're sorry, but we're unable to continue this conversation because our support center is now closed. Please select from one of the available options."
}

頻道

{
  "chat": "Chat now",
  "instantCall": "Call now",
  "scheduledCall": "Schedule call",
  "email": "Email",
  "keepWaiting": "Keep Waiting",
  "selectChat": "Let's connect you to one of our chat support specialists",
  "selectInstantCall": "Let one of our support specialists give you a call now",
  "selectScheduledCall": "Let's schedule a time for a support specialist to call and help you",
  "selectEmail": "Please send us an email so we can help"
}

重新導向

這些訊息用於包含重新導向訊息的網頁。

重新導向

{
  "title": "Visit the page below",
  "action": "Open this page in a new tab"
}
Example:
ccaas.config({
  messages: {
    en: {
      redirection: {
        action: 'Open a new tab'
      }
    }
  }
})

通話頻道

消費者選取通話管道後,系統就會使用這些訊息。

呼叫

{
  "description": "Provide your phone number below",
  "instantTitle": "We'll Call You",
  "scheduleTitle": "Let's Schedule a Call",
  "refreshTitle": "Time slots have expired",
  "refreshContent": "Please refresh to view available time slots.",
  "waitTime": "wait time",
  "pickTime": "Pick a time that works best for you",
  "recordWarning": "Your call may be monitored or recorded for training and quality assurance purposes.",
  "recordTitle": "Permission to Record",
  "recordContent": "Do you give permission for {0} to record your call for training and quality?",
  "callMe": "Call Me",
  "wait": "Wait {0}",
  "phoneNumberPlaceholder": "Your phone number",
  "phoneNumberLabel": "Phone number",
  "phoneNumberInvalid": "Enter a valid phone number",
  "emailPlaceholder": "Your email address",
  "emailLabel": "Email",
  "emailInvalid": "Enter a valid email address",
  "cancelTitle": "Cancel the existing call?",
  "cancelContent": "You scheduled a support call for {0} at {1}.",
  "keepButton": "Keep It",
  "successTitle": "We'll Call You",
  "successScheduledContent": "Your phone should ring around - {0}",
  "successInstantContent": "Your phone should be ringing shortly"
}

即時通訊管道

消費者選取即時通訊管道後,系統就會使用這些訊息。

對話

{
  "today": "Today",
  "yesterday": "Yesterday",
  "newMessages": "{0} new messages",
  "startMessage": "One moment please...",
  "inputPlaceholder": "Type your message here...",
  "endButton": "End chat",
  "endConfirm": "Are you sure you want to end this chat?",
  "withOneAgent": "Chatting with {0}",
  "withTwoAgents": "Chatting with {0} & {1}",
  "withMultipleAgents": "Multiple Agents",
  "discussWithAgent": "Do you want to discuss this with a human agent?",
  "dropFile": "Drag & Drop image or video here",
  "escalateAgent": "Escalate to agent",
  "addAttachment": "Add image or video attachment",
  "requestCobrowse": "Request Co-browse session",
  "timeoutHint": "Your previous chat has ended, please click to start a new chat",
  "dismissedHint": "Welcome Back! Do you have the same issue or a new issue?"
}

upload

{
  "failureSize": "Looks like we couldn't upload. Please try uploading a file that is less than {0}.",
  "failureType": "Looks like we couldn't upload. We only accept .JPG, .PNG, or .MP4.",
  "failureUnknown": "Looks like we couldn't upload. Please try again!"
}

轉錄稿

{
      "requestTranscript": "Request Transcript",
      "message": "Send the chat transcript to your email",
      "placeholder": "Add Email",
      "success1": "The transcript of the completed chat will be emailed to {0}",
      "success2": "The transcript of the completed chat will be emailed to {0} and {1} other recipients",
      "fail": "The transcript will not be emailed.",
      "overflow": "A maximum of 5 emails are allowed.",
      "expired": "Delivery time expired. Transcripts can only be requested within 2 hours after the chat ends.",
      "maxRequest": "A maximum of 10 transcript requests are allowed.",
      "unableSend": "Unable to send. Please try again.",
      "requested": "Transcript requested",
      "emailTranscript": "Email transcript",
      "request": "Request",
      "helpText": "Enter up to 5 email addresses",
      "deleteEmail": "Delete email",
      "downloadTranscript": "Download transcript",
      "updated": "Transcript request updated",
      "invalidEmail": "Invalid email address. Please enter a valid email.",
      "emptyEmail": "Please enter a valid email.",
      "requestCompleted": "Transcript request completed"
}

事件

{
  "chatDismissed": "We have not heard from you in a while. This chat session is closed.",
  "chatTimeout": "This chat has timed out",
  "chatEnded": "This chat has ended",
  "transferToMenu": "{0} is transferring this chat to another agent...",
  "transferToAgent": "{0} is adding another agent to this conversation...",
  "escalationStarted": "We are connecting you with a human agent",
  "escalationFailed": "We're sorry. We are unable to process your request further at this moment. Please reach out to us again later. Thank you.",
  "escalationAccepted": "{0} just joined the conversation",
  "cobrowseRequestedFromAgent": "{0} is about to request a Co-browse session with you.",
  "cobrowseRequestedFromEndUser": "Co-browse request sent to Agent.",
  "cobrowseStarted": "Co-browse started.",
  "cobrowseEnded": "Co-browse ended.",
  "cobrowseFailed": "Co-browse failed.",
  "taskVaStarted": "{0} transferred the chat to {1}",
  "taskVaFinished": "The chat with {0} was completed. You were returned to {1}",
  "taskVaFailed": "The chat with {0} failed. You were returned to {1}",
  "taskVaInterrupted": "The chat with {0} was interrupted by {1}",
  "taskVaCancelled": "The chat with {0} was cancelled by {1}",
  "taskVaDismissed": "The chat with {0} was dismissed. You were returned to {1}",
  "transferAccepted": "{0} just joined the conversation",
  "memberLeft": "{0} just left the conversation",
  "transferFailed": "Transfer has failed"
}

評分

{
  "formTitle": "Rate Your Experience",
  "formFeedback": "Let us know how we can improve.",
  "resultTitle": "Thank you!",
  "resultSubtitle": "We appreciate your feedback"
}

問卷調查

{
  "errorTitle": "Uh-oh. Something went wrong.",
  "errorContent": "There might be an issue here. Please try again.",
  "required": "Required"
}

偏轉

{
  "continueEmail": "Continue with Email Support",
  "continueVa": "Continue with Virtual Agent Support",
  "continueHuman": "Continue with Human Agent Support",
  "vaOverCapacity": "Our customer support is experiencing exceptionally high volume. The estimated wait time is {0} minutes.",
  "vaAfterHours": "Our support center is closed. Please select the support type you want to continue.",
  "pfOverCapacity": "I'm sorry. I'm having trouble processing your request right now. I can transfer you to a human agent. However, the current estimated wait time is {0} minutes due to exceptionally high volume of support requests.",
  "pfAfterHours": "I'm sorry. I'm having trouble processing your request right now. Our support center is currently closed as well. Please send us an email with your support request and we will respond back to you at the earliest.",
  "recurring": "Thanks for your patience! The remaining wait time is {0}.",
  "closed": "Unfortunately, our support center is currently closed. Please try reaching us later. Thank you."
}

區域

{
  "widgetOpen": "Open Support Widget",
  "widgetClosed": "Minimize Support Widget",
}

表單

{
  "closeButton": "Close form",
  "confirmCloseTitle": "Confirm form closure",
  "confirmCloseContent1": "Are you sure you're ready to close this form? Any unsubmitted data will be lost.",
  "confirmCloseContent2": "You can minimize the form to return to the conversation without losing any data.",
  "startNewTitle": "Start new form",
  "startNewContent": "Starting a new form will close the form that is in progress, and any unsubmitted data will be lost.",
  "failedError": "Form failed to load",
  "timeoutError": "Form has timed out",
  "statusInProgress": "In Progress",
  "statusCompleted": "Completed",
  "submissionFailedTitle": "Form Submission Failed",
  "submissionFailedContent": "There was an issue submitting your form. Please try again."
}

ewt

{
  "connecting": "We're working on connecting you with an agent.\nThanks for your patience.",
  "escalateToAgent": "You're being transferred to a live support representative...",
  "transferToAgent": "You're being transferred to another support representative...",
  "queuePosition": "Your queue position",
  "estimateWaitTime": "Estimated wait time",
  "done": "Done"
}