Unable to set dynamic customer name in inbound cal...
# support
j
Hello I'm trying to make agent greet user using his name directly fetched from Azure Entra ID. I created a workflow as shown below in screenshot using variable {{customerName}}. I did configure my phone-number directly to my server refering this docs: https://docs.vapi.ai/assistants/personalization My server overwrites variableValues: if message.get("type") == "assistant-request": return JSONResponse({ "workflowId": VAPI_WORKFLOW_ID, "assistantOverrides": { "variableValues": { "customerName": customerName } } }, status_code=200) Logs data: a) Type: "Assistant Request" Response from my server is: { "workflowId": "5b882aed-0eb7-45cb-a13d-cf1b5aa5889e", "assistantOverrides": { "variableValues": { "customerName": "Jakub" } } } b) Type: "Status update" Request data contains "variableValues": { "customerName": "Jakub" } call ID: cf384e81-9197-432e-b213-6ca4bc6da088 Agent is unable to directly greet me using my name saying only "Hello" https://cdn.discordapp.com/attachments/1387055014932906024/1387055015117590655/image.png?ex=68803465&is=687ee2e5&hm=b88d16a145ef28d194ad8d7a403b59364d77cbaad1be4c8d776b7c4660c36775&
k
The Problem Workflows expect variables in workflowOverrides.variableValues You're providing variables in assistantOverrides.variableValues WorkflowStream only looks at workflowOverrides → Empty variables → Failed substitution You need to change your server response to use workflowOverrides instead of assistantOverrides: { "workflowId": "5b882aed-0eb7-45cb-a13d-cf1b5aa5889e", "assistantOverrides": { "variableValues": { "customerName": "Jakub Nowicki" } } }