MdotMoment11
10/28/2025, 11:38 PMVapi Support Bot
10/28/2025, 11:39 PMjavascript
// After receiving end-of-call webhook
setTimeout(async () => {
const call = await vapi.calls.get(callId);
const structuredOutputs = call.artifact?.structuredOutputs;
// Process structured outputs here
}, 5000); // Wait 5 seconds for processing
This polling method is the best available workaround until a dedicated webhook is introduced.
Sources:
- [Structured outputs quickstart](https://docs.vapi.ai/assistants/structured-outputs-quickstart)
- [Server events](https://docs.vapi.ai/server-url/events)Vapi Support Bot
10/28/2025, 11:41 PMChiranjeet Mishra
10/29/2025, 7:46 PMend-call message type in the ClientInboundMessage. Include a message with the type property set to "end-call" when sending inbound messages. For more details, refer to the [documentation](https://docs.vapi.ai/changelog/2025/1/14). Let us know if you need anything else.