absent-sapphire
absent-sapphire9h ago

How do i get an end-of-call report for VAPI chat?

Reading through the documentation, there doesn't seem to be a way to "end" a chat so that an end of call report is generated to get the structured data.
2 Replies
Vapi Support Bot
To retrieve an end-of-call (structured data) report in VAPI, structured outputs are generated automatically after the call ends and can be accessed from the call artifact. Here’s a code example to fetch structured outputs from a completed call:
const call = await vapi.calls.get(callId);
const outputs = call.artifact?.structuredOutputs;
const call = await vapi.calls.get(callId);
const outputs = call.artifact?.structuredOutputs;
Note: The documentation only describes this for voice calls, not chat sessions. If you need structured outputs for chat, please confirm with Vapi support.
For more details, see the Structured Outputs documentation. Source: - Structured outputs
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
absent-sapphire
absent-sapphireOP9h ago
This is only for calls. I need it got chat sessions

Did you find this page helpful?