Unable to set dynamic customer name in inbound call

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"
image.png
Add customer-specific information to your voice assistant conversations
Was this page helpful?