Robert_
11/19/2025, 8:43 PM/api/user/{{customer.number}}
When using this in a workflow or just a single assistant, we get this:
✅ /api/user/+1234567890 <---- working perfectly
When using the same assistant with the same tool in a squad, we get this:
⚠️ /api/user/{{customer.number}} <---- LiquidJS tag does not get replaced
The documentation around this is very confusing. Is there some difference in customer variables being passed around when using assistants in a squad?Chiranjeet Mishra
11/27/2025, 11:55 PM{{customer.number}} to personalize the interactions by embedding customer-specific data. Here’s a quick guide:
1. **Set up Dynamic Variables**: Use double curly braces to define variables in your prompts (e.g., Hello {{customerName}}!).
2. **API Call Payload**: When starting a call, send a JSON payload to customize the assistant behavior using assistantOverrides and variableValues. Example:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": { "name": "John" }
},
"customer": { "number": "+1xxxxxxxxxx" },
"phoneNumberId": "your-phone-id"
}
3. **Server Integration**: Ensure your server endpoint handles Vapi requests, fetching necessary customer data from your CRM to populate these variables dynamically. Refer to the middleware setup for more details.
You can find further information on implementing these variables on the [Vapi documentation for dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables).randomreaper
12/23/2025, 10:47 PMChiranjeet Mishra
12/30/2025, 1:56 AMwhen calling the sendLeadSms tool, use {{customer.number}} as the value for CustomerPhone
This will instruct the model to insert the inbound caller’s number at runtime until the underlying variable behavior is confirmed.