Initial Try to pass prechat details from scarlett
This commit is contained in:
parent
defd461145
commit
21ca0f2d27
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,12 @@ export const webchatHelper = () => {
|
||||||
if (webchatGlobalNonpersistedState.shouldLaunchSierra) {
|
if (webchatGlobalNonpersistedState.shouldLaunchSierra) {
|
||||||
window.dispatchEvent(new CustomEvent("launch-sierra-webchat")); // launches the sierra chat
|
window.dispatchEvent(new CustomEvent("launch-sierra-webchat")); // launches the sierra chat
|
||||||
} else {
|
} else {
|
||||||
|
window.embeddedservice_bootstrap.prechatAPI.setHiddenPrechatFields({
|
||||||
|
ScarlettAISummary: "sScarletAISummary",
|
||||||
|
FirstName: "sFirstName",
|
||||||
|
LastName: "sLastName",
|
||||||
|
Email: "sEmail",
|
||||||
|
});
|
||||||
window.embeddedservice_bootstrap.utilAPI.launchChat(); // launches the salesForce prechat form
|
window.embeddedservice_bootstrap.utilAPI.launchChat(); // launches the salesForce prechat form
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue