structured input across a configured squad not ret...
# support
y
I've configured a squad and have set each assistant's structured output within the squad using the structuredDataMultiPlan per assistant. i.e assistant 1 has the attached plan as assistant1 analysis_plan.json and assistant 2 analysis_plan.json Now, when I make a call to this squad, I am getting an output as such: "analysis": { "summary": "The call involved an AI agent verifying the user's identity by confirming their date of birth and ZIP code. Following this, the AI conducted a health screening for the Twin Health program, asking about diabetes diagnosis, height, weight, and insulin use. Based on the user's responses, the AI confirmed eligibility and proceeded to transfer them to a lab availability assistant.", "structuredDataMulti": [ { "key": "enrollment_screener_data", "data": { "screening_successful": true } } ], "successEvaluation": "true" } Here are some call-ids that show this: 0199c051-a26b-7dd2-8a40-1d683d4a4594 0199c01c-01ff-7445-8489-8aad632bd606 So I am 50% of the way there. I am wondering if I have misconfigured something? Ideally, this array would have the key from the first assistant as well as the second assistant in the squad. In the summary, we can clearly see that the DOB and the zip code was verified, but the structured output from assistant 1 isn't reaching the final output. The structured output from assistant 2 however is https://cdn.discordapp.com/attachments/1425221917845225503/1425221918059008010/assistant_1_analysis_plan.json?ex=68e6ccd8&is=68e57b58&hm=18bf881d9390c89aedd1c15a2fea924755f925def5009b2896d8bca1adbc86e8& https://cdn.discordapp.com/attachments/1425221917845225503/1425221918612787241/assistant_2_analysis_plan.json?ex=68e6ccd8&is=68e57b58&hm=2a284d1680a443c43bf7c1d2d19369878c35a71901a75f8ae072e43f17250194&
v
I can help you sort this out. It looks like the first assistant’s structured output isn’t merging into the final squad response. The second one’s data shows up fine, so it’s likely a config or scope issue. Make sure each assistant’s analysis_plan is defined separately under its own section and not being replaced at the squad level. Also, double-check if both are using structuredDataMultiPlan—mixing it with structuredDataPlan can cause missing outputs. Could you share how you’ve set them up inside the squad config? @Yashas Rao
y
@Vercel Thanks for the support! I am not overriding them on the squad config (the squad create API). I am only setting this when I create the assistant layer. I've actually noticed only the active assistant in the squad is returning the payload actually. i.e if person hangs up in assistant 3 of squad, that payload returns, etc. They are all using structuredDataMultiPlan. So i have a json config that first creates assistants with this data -> creates the squad linking the assistants here. I am not overriding this on the squad layer. The only thing I am overriding right now for all assistants is the voicemail detection
v
From what you said, it seems the squad is only sending back the structured data from the last active assistant instead of combining results from all of them. That usually points to the squad not merging outputs automatically. Could you share your squad creation JSON so I can take a quick look? Also, it might help to log each assistant’s output before the final merge to see if the earlier ones are being skipped. @Yashas Rao
y
yeah i have a custom json script, so that's why it wouldn't make as much sense. But are you saying I should set it on the assistant override when creating hte squad? or from the per-assistant layer
but per assistant, looks like this @Vercel
Copy code
"name": "Enrollment Onboarding",
        "analysis_plan": {
          "structuredDataMultiPlan": [
            {
              "key": "onboarding_appointment_assistant_data",
              "plan": {
                "enabled": true,
                "schema": {
                  "type": "object",
                  "properties": {
                    "onboarding_appointment_scheduled": {
                      "type": "boolean",
                      "description": "Was the onboarding appointment successfully scheduled?"
                    }
                  },
                  "required": ["onboarding_appointment_scheduled"]
                }
              }
            }
          ]
        }
and then this setup is on the assistant creation layer
squad creation just glues these assistants together per ID
2 Views