Dante
02/21/2025, 3:28 PMKyle
02/22/2025, 12:34 PM// 1. Get your squad configuration
const squad = {...squadConfig}
// 2. Create transient squad configuration with overrides
const callPayload = {
squad: {
...squad,
membersOverrides: {
variableValues: {
customer_name: "John",
product_type: "Premium"
}
}
}
};
// 3. Make the call with the transient squad
// use create call API or SDK
class Squad {
/**
* This is the name of the squad.
*/
name?: string;
/**This is the list of assistants that make up the squad.The call will start with the first assistant in the list.
*/
members: SquadMemberDTO[];/**This can be used to override all the assistants' settings and provide values for their template variables.Both membersOverrides and members[n].assistantOverrides can be used together. First, members[n].assistantOverrides is applied. Then, membersOverrides is applied as a global override.
*/
membersOverrides?: AssistantOverrides;
}
giorgior27
03/07/2025, 4:31 PMShubham Bajaj
03/08/2025, 2:37 AMmembersOverrides
works, you can make use of it.giorgior27
03/10/2025, 2:28 PM