Merge pull request #2573 from Safelite/feature/CASH-697
CASH-697 - Passing AI-Generated Summary to SSR when Transferring from…
This commit is contained in:
commit
15d5b3095f
1 changed files with 9 additions and 1 deletions
|
|
@ -94,8 +94,16 @@ export default {
|
||||||
FirstName: transfer.data.first_name,
|
FirstName: transfer.data.first_name,
|
||||||
LastName: transfer.data.last_name,
|
LastName: transfer.data.last_name,
|
||||||
Email: transfer.data.email,
|
Email: transfer.data.email,
|
||||||
Subject: transfer.data.chat_summary, // for now passing in chat_summery in Subject. But this will be changed in future.
|
Subject: transfer.data.chat_summary,
|
||||||
};
|
};
|
||||||
|
window.embedded_svc.settings.extraPrechatFormDetails = [
|
||||||
|
{
|
||||||
|
label: "Scarlett AI Summary",
|
||||||
|
value: transfer.data.chat_summary,
|
||||||
|
transcriptFields: ["Scarlett_AI_Summary__c"],
|
||||||
|
displayToAgent: true,
|
||||||
|
},
|
||||||
|
];
|
||||||
if (
|
if (
|
||||||
window.embedded_svc.liveAgentAPI &&
|
window.embedded_svc.liveAgentAPI &&
|
||||||
typeof window.embedded_svc.liveAgentAPI.startChat === "function"
|
typeof window.embedded_svc.liveAgentAPI.startChat === "function"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue