Vapi squads issues
Hi, I'm not getting the "end of the call report" while using Squads. It returns the system prompt in the summary. Additionally squads does not seem to work properly while I'm using it for multiple languages. In my use case, I have created English assistant and Hindi assistant. Squads feature is able to switch to the Hindi assistant from English assistant based on request. But switches back to English again randomly during the conversation.
this.squad = {
members: [
{
assistantId: "c5ca559c-78a4-4867-b930-07c87e72172b",
assistantOverrides: {
variableValues: {
firstMessage: this.languageConfigs?.["English"]?.firstMessage '',
systemPrompt: this.languageConfigs?.["English"]?.prompt '',
summaryPrompt: this.summaryPrompt
}
},
assistantDestinations: [{
type: "assistant",
assistantName: "Hindi Assistant",
message: "Sure we can proceed in hindi",
description: "Switch to Hindi Assistant"
}]
},
{
assistantId: "cceeb764-7b1d-4ea0-9d2d-ecb5515930eb",
assistantOverrides: {
variableValues: {
firstMessage: this.languageConfigs?.["Hindi"]?.firstMessage '',
systemPrompt: this.languageConfigs?.["Hindi"]?.prompt '',
summaryPrompt: this.summaryPrompt
}
},
},
]
};
this.squad = {
members: [
{
assistantId: "c5ca559c-78a4-4867-b930-07c87e72172b",
assistantOverrides: {
variableValues: {
firstMessage: this.languageConfigs?.["English"]?.firstMessage '',
systemPrompt: this.languageConfigs?.["English"]?.prompt '',
summaryPrompt: this.summaryPrompt
}
},
assistantDestinations: [{
type: "assistant",
assistantName: "Hindi Assistant",
message: "Sure we can proceed in hindi",
description: "Switch to Hindi Assistant"
}]
},
{
assistantId: "cceeb764-7b1d-4ea0-9d2d-ecb5515930eb",
assistantOverrides: {
variableValues: {
firstMessage: this.languageConfigs?.["Hindi"]?.firstMessage '',
systemPrompt: this.languageConfigs?.["Hindi"]?.prompt '',
summaryPrompt: this.summaryPrompt
}
},
},
]
};