Squads Summary issue
# support
r
In Assistance, while using Squads, we are unable to pass the value for the Summary section as it is not being accepted. What is the correct way to pass and use the value in Squads for Summary?"
c
Set dynamic variables via assistantOverrides for personalization, capture the summary in the end-of-call report, map it to your external system like Airtable, and use structuredDataMultiPlan with a Server URL for real-time handling..
r
@User I used assistantOverrides and passed the variable, then referenced it using {{xxxx}} in the prompt, but in the summary result that value is showing as null.
@Kings_big💫 please help here to move forward
k
Try manually insert the variable values into the summary prompt..
r
@Kings_big💫 Manually it is working, but when using prompt and variables in the summary section of the VAPI dashboard, it is not working dynamically
@Kings_big💫 any update , only with solution we can proceed further
c
Just so we understand your request fully, are you trying to pass the summary value of the current call as a dynamic variable?
r
What we do : We are using vapi to automate our background verification process. We initiate calls to the people in universities or employers and check the background of our candidates like their education and employment details. The person from university or employer may speak in different languages. So we are using squads to create assistants in different languages. Use case : Consider the below use case for Employment verification using squads. We have created 3 assistants in squads named SAM, Hindi assistant & French assistant. SAM is the main assistant which speaks in English and this assistant connects to the employer and provides options to choose between different languages like Hindi & French assistant. Based on user response vapi squads will switch to respective assistant asks a set of questions and get answers for that. These questions are dynamic and we are sending this from the system prompt. We also send a unique id from our side in the system prompt. Implementation : We are using Vapi's web snippet in our angular application to initiate the call. We are sending first message, system prompt, summary prompt and a unique id in the initiation. Vapi is taking the first message, system prompt and unique id as input and the call proceeds well. But it is not taking the summary prompt which we sent through the web snippet. In summary prompt, we have mentioned the json structure that we need as response from vapi. But vapi either gives a text summary of the call or it just replies the system prompt itself. Note : We are using the same approach in single assistant approach and it works fine. We are not getting the expected summary as written in the summary prompt if we use squads.
This is the squad intiated from our angular application. this.squad = { members: [ { assistantId: "a74aba41-1961-4b85-9488-c5d1d639fea6", assistantOverrides: { variableValues: { firstMessage: this.languageConfigs?.["English"]?.firstMessage || '', systemPrompt: this.languageConfigs?.["English"]?.prompt || '', summaryPrompt: this.summaryPrompt, uniqueId: this.sendData.uniqueId || '',}}, assistantDestinations: [{ type: "assistant", assistantName: "Hindi Assistant", message: "Sure we can proceed in hindi", description: "Switch to Hindi Assistant"}] }, { assistantId: "6cbd2948-5f27-47ee-b733-c83379ac0ae2", assistantOverrides: { variableValues: { firstMessage: this.languageConfigs?.["Hindi"]?.firstMessage || '', systemPrompt: this.languageConfigs?.["Hindi"]?.prompt || '', summaryPrompt: this.summaryPrompt, uniqueId:this.sendData.uniqueId || '', } }, assistantDestinations: [{ type: "assistant", assistantName: "French Assistant", message: "Transferring you now…", description: "Switch to French Assistant"}]}, { assistantId: "cc3815a3-5c1c-4284-b66c-a9e42068666a", assistantOverrides: { variableValues: { firstMessage: this.languageConfigs?.["French"]?.firstMessage || '', systemPrompt: this.languageConfigs?.["French"]?.prompt || '' summaryPrompt: this.summaryPrompt, uniqueId:this.sendData.uniqueId || '', }}, assistantDestinations: [{ type: "assistant", assistantName: "French Assistant", message: "Transferring you now…", description: "Switch to French Assistant" }] } ] };
Expected result from summary prompt : { "employeeName": "Mukesh", "employeeNameStatus": "Verified", "employeeId": "48502", "employeeIdStatus": "Verified", "designation": "Developer", "designationStatus": "Verified", "employmentDurationFrom": "03-Feb-2002", "employmentDurationFromStatus": "Verified", "employmentDurationTo": "01-Feb-2004", "employmentDurationToStatus": "Verified", "reasonForLeaving": "Better opportunity", "reasonForLeavingStatus": "Verified", "verifierEmail": null, "verifierPhoneNumber": null, "availableDate": null, "availableTime": null, "verificationStatus": "Completed", "verifierName": "Rajesh", "title": "Product Developer", "checkAssignedId": 48502, "questions": [ { "question": "If a position was available, is the applicant eligible for rehire?", "answer": "Yes", "status": "Verified", "label": "Eligible_For_Rehire" }, { "question": "Could you describe the applicant's job performance? Please specify below average, average, above average or outstanding", "answer": "Outstanding", "status": "Verified", "label": "Job_Performance" }, { "question": "Will you be able to disclose their salary information? Ask if the applicant earned any bonuses, commission or overtime", "answer": "No, we cannot disclose", "status": "Verified", "label": "Salary_Information_Disclosure" } ] } Response I am recieving : The AI, representing AMO Inc., a third-party background screening company, initiated an employment verification call for Mukesh K. The user, Rajesh, a product developer, confirmed Mukesh K's employment details. Key information verified: * Employee Name: Mukesh K * Position: Developer * Start Date: February 13, 1902 * End Date: February 1, 1904 * Reason for Leaving: Better opportunities (confirmed by Rajesh) * Rehire Eligibility: Yes * Job Performance: Outstanding * Salary/Bonus Information: Not disclosed by Rajesh. The call ended after all necessary information was gathered and confirmed, with the user (Rajesh) indicating the call could be concluded.
@Kyle please check this and provide the solution
@Kyle @Kyle & @Kings_big💫 any update here
k
@Kings_big💫 Your help here will be appreciated. Thanks in advance
c
Just a quick update, we are currently reviewing your request details and will get back to you shortly. Thank you for your patience!
k
Thank you. Awaiting a resolution.
Please update on this
c
The format of the response you are trying to achieve will be achievable with
analysisPlan.structuredData
. Attached is a sample JSON schema that you can use to update your assistant with via the API polling UPDATE on the /assistant endpoint. Let us know if you have any questions https://cdn.discordapp.com/attachments/1405053670583697418/1410009698379501659/structuredData.json?ex=68af755c&is=68ae23dc&hm=82f7ab302c0068ed88f5993c86061111af87b7a944ad8925301044785014f800&
k
Thanks Kyle. We will try this solution
r
Hi @Kyle i have changed the squad structure as you mentioned abouve, and I am getting 400 error mentioned below. { "message": [ "squad.members.0.property analysisPlan should not exist", "squad.members.1.property analysisPlan should not exist" ], "error": "Bad Request", "statusCode": 400 } can you kindly check and metion what is the correct way or syntax to use. https://cdn.discordapp.com/attachments/1405053670583697418/1410619792699686983/Current_Squad_structure.txt?ex=68b1ad8e&is=68b05c0e&hm=964fc7231a63d2b81ea07cb28e087c3aa4202c24cc7fe3720926284778525feb&
c
Hello, We are sorry for the delay and we really appreciate your patience and kind understanding. We would love to know if your concern was solved, please do let us know if you need further assistance we are here to help!
r
@Aniah We are using a squad configuration with multiple assistants for different languages. For each assistant, we are passing dynamic values through assistantOverrides.variableValues (such as firstMessage, systemPrompt, summaryPrompt, and uniqueId). However, we are not getting the expected summary response when these overrides are applied. We have attached: The squad structure we created A screenshot showing how we configured the overrides in the VAPI dashboard The main problem: The assistant does not seem to respect the overridden summaryPrompt or dynamic variables in the final summary response. We need guidance on: Why the summary is not updating according to the overrides What is the correct approach to achieve dynamic summary responses using assistantOverrides in a multi-assistant squad setup
This issue was mentioned 20 days ago, and the solution is still not clear. Can someone look into it, or will this go on for ages?
c
We are verifying the file you sent and we will get back to you soon
Please try this file. What this file changes: - Moved analysisPlan inside the assistantOverrides object for both squad members - Now the structure is: assistantOverrides.analysisPlan instead of just analysisPlan https://cdn.discordapp.com/attachments/1405053670583697418/1412695205836226601/squad_config.json?ex=68b93a6f&is=68b7e8ef&hm=b4a06d108489c29f61fd969309956d22c1e34e8d55ca567a2488497f3c52c399&
3 Views