messages 配置可用于自定义 Web SDK 中显示的任何字符串。这包括现有语言或添加新语言(例如,de、es、fr、ja)。
ccaas.config({
messages: {
[lang]: {
[group]: {
[key]: '__string__'
}
}
}
})
以下是自定义英文版内容的 messages 对象示例:
ccaas.config({
messages: {
en: {
button: {
yes: 'OK'
}
}
}
})
如需查看可自定义的所有 Web SDK 消息的列表,请参阅 Web SDK v3 字符串指南。
常见消息
这些消息用于 Web 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'
}
}
}
})
首页
这些消息仅在首页上使用。这是消费者在启动 Web 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'
}
}
}
})
通话渠道
当消费者选择通话渠道时,系统会使用这些消息。
call
{
"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"
}
Chat 渠道
当消费者选择聊天渠道后,系统会使用这些消息。
聊天
{
"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!"
}
transcript
{
"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"
}
rating
{
"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"
}
deflection
{
"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."
}
area
{
"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"
}