Damian
04/12/2025, 8:51 PMVapi Support Bot
04/12/2025, 8:53 PMmembersOverrides
with a Transient Squad
This is likely the most reliable method for your use case:
javascript
// 1. Get your squad configuration
const squad = {...squadConfig}
// 2. Create transient squad configuration with overrides
const callPayload = {
squad: {
...squad,
membersOverrides: {
variableValues: {
booking_reason: "follow-up visit"
}
}
}
};
// 3. Make the call with the transient squad
// use create call API or SDK
According to the [Discord discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342518227816808449), this workaround is necessary because "membersOverrides are not currently supported with the squadID."
### 2. Updating variableValues
Mid-Call
Your first assistant could update the call data using a PATCH request:
1. First assistant (AD-start) talks to the caller and gets the booking reason
2. AD-start calls a tool that makes a PATCH /call/:id
request to update membersOverrides.variableValues
3. AD-start transfers to AD-W8
4. AD-W8 can reference the variables
This is documented in a [Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329772290497318973), though there were some reports of inconsistency.
### 3. Using Background Messages
You could have your first assistant silently update the chat history with structured data:
```javascript
vapi.send({
type: "add-message",
role: "system",Vapi Support Bot
04/12/2025, 8:53 PMAccording to the [background messages documentation](https://docs.vapi.ai/assistants/background-messages), this allows you to inject information that subsequent assistants can access.
### 4. Setting Assistant-Specific Overrides
You can use `members[n].assistantOverrides` to set variables for specific assistants:
```javascript
{
"squad": {
"members": [
{
"assistantId": "ad-start-id",
"assistantOverrides": { ... }
},
{
"assistantId": "ad-w8-id",
"assistantOverrides": {
"variableValues": {
"booking_reason": "follow-up visit"
}
}
}
]
}
}
This approach is mentioned in the [Squads API reference](https://docs.vapi.ai/api-reference/squads/create).
Since you mentioned that injecting the variable "booking_reason" worked perfectly in your make.com tests, I'd recommend trying the transient squad approach first, as it seems most aligned with your successful test case.
Would you like more details on any of these approaches or help with implementation?
Sources:
- [Discord discussion on membersOverrides](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342518227816808449)
- [Discord thread on updating variableValues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329772290497318973)
- [Background messages documentation](https://docs.vapi.ai/assistants/background-messages)
- [Squads API reference](https://docs.vapi.ai/api-reference/squads/create)Kings Big
04/12/2025, 9:11 PMDamian
04/12/2025, 9:12 PMalexrb1
04/12/2025, 11:08 PMDamian
04/13/2025, 10:44 AMalexrb1
04/13/2025, 6:26 PMDamian
04/15/2025, 5:18 PMDamian
04/15/2025, 5:19 PMalexrb1
04/15/2025, 6:11 PMDamian
04/15/2025, 6:47 PM