web snippet
# support
v
Hello, is there a way to return call summary for an html vapi web snippet? I am able to output the transcript in the web app, but I want to analyze the transcript
v
Yes, you can get the call summary through the analysis object that's available after a call ends. The summary is generated automatically based on the assistant's analysisPlan.summaryPlan configuration. Here's how you can access it:
Copy code
// When the call ends, you'll receive a call object that includes the analysis
const call = await vapiClient.calls.get(callId);
if (call.status === 'ended') {
  // Access the summary from the analysis object
  const summary = call.analysis?.summary;
  console.log('Call Summary:', summary);
}
TLDR: Transcript/Summary is accessible through the standard call object interface.