Squads and Structured Data
# support
m
I have a squad in place. I have successfully set the assistant to silently transfer and silently hand off data to the next assistant when certain conditions are met. My goal, however, is to export or send as a webhook all all of the structured data collected over the course of the conversation with the multiple agents. However, the call logs only show structured data collected by the first assistant. They don't seem to show anything else picked up later in the conversation.
v
To collect and export structured data from all assistants in a squad, configure each assistant with
analysisPlan.structuredDataMultiPlan
and access the aggregated results via
call.analysis.structuredDataMulti
. Then, set up a webhook to receive the full analysis object at the end of the call. Example webhook payload:
Copy code
json
{
  "type": "assistant-request",
  "call": {
    "analysis": {
      "structuredDataMulti": [
        { "assistant": "A", "data": { ... } },
        { "assistant": "B", "data": { ... } }
      ]
    }
  }
}
Make sure your webhook endpoint is ready to process the
structuredDataMulti
array for all assistants in the squad. Reference: [Changelog March 23, 2025](https://docs.vapi.ai/changelog/2025/3/23), [Webhooks API](https://docs.vapi.ai/api-reference/webhooks/server-message) Sources: - [Changelog March 23, 2025](https://docs.vapi.ai/changelog/2025/3/23) - [Webhooks API](https://docs.vapi.ai/api-reference/webhooks/server-message)
m
@User is there any way to do this directly in the prompt
3 Views