mubashshir.ansari
08/04/2025, 1:06 PMtypescript
destination: {
type: "number",
message,
number,
numberE164CheckEnabled: true,
callerId,
transferPlan: {
mode: "warm-transfer-experimental",
voicemailDetectionType: "transcript",
fallbackPlan: {
message: `It seems ${fullName || "the person"} is currently busy or on another call. Can I take a message?`,
endCallEnabled: false,
},
summaryPlan: {
enabled: true,
messages: [
{
role: "system",
content: `Start with greeting: 'Hello ${fullName || ""}, this is ${assistantName}, the digital assistant. I have {{caller_name}} on the line.' Replace the caller's name with the actual caller's name. Then summarize the call in 1-2 short sentences. Include the caller's main reason for the call and any key details needed for the agent to take over. Be concise and professional. After your summary, say: 'You are now connected to the caller. Please go ahead and speak.'`,
},
{
role: "user",
content: "Here is the transcript:\n\n{{transcript}}\n\n",
},
],
},
},
}
Let me know if there’s any way to reduce this delay or if there's an alternative approach you'd recommend.Chiranjeet Mishra
08/06/2025, 7:24 AMChiranjeet Mishra
08/06/2025, 7:40 AM