Inbound Dynamic Assistant Issue
# support
s
For inbound calls, I would like the assistant to greet the caller by mentioning my name when answering. Despite several attempts, including hard-coding the name, I have been unable to achieve this. I have defined my name using the {{name}} variable in the initial message prompt. All webhook connections in my Make scenario are properly configured, and I have verified multiple times that the data returned from Vapi is accurate and arrives in the expected format. I also tested webhook responses containing only assistantId and assistantOverrides → variableValues, as well as responses containing only assistantOverrides → variableValues. However, the assistant still does not include my name in its initial greeting.
v
Check your
firstMessageMode
setting, as timing issues might prevent the name from being available when the initial greeting plays. Try using
assistant-speaks-first
with a predefined message instead of
assistant-speaks-first-with-model-generated-message
. Here's how to properly structure your JSON payload:
Copy code
json
{
  "assistantOverrides": {
    "variableValues": {
      "name": "YourName"
    },
    "firstMessageMode": "assistant-speaks-first"
  }
}
Sources: - [Discord discussion about firstMessageMode](https://discord.com/channels/1211482211119796234/1340603345701830736) - [Vapi documentation on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables)
s
Let me try one second
k
Ensure you correctly pass the {{name}} variable in the assistantOverrides parameter with variableValues during the call setup, verify webhook configurations, and test with static values to ensure dynamic variables are being passed properly..
s
I’ll send a screenshot
I have completed all the necessary verifications for my inbound call setup. I assigned a phone number to the assistant in Vapi. I created a webhook via Make.com to receive incoming call events (both web and phone calls), and I successfully receive the data. In my webhook response, I am sending: json { "assistantOverrides": { "variableValues": { "name": "Josh" }, "firstMessageMode": "assistant-speaks-first" } } I also configured my Assistant's First Message template as: Hello, {{name}} Welcome back! However, even though everything seems correctly configured, the assistant does not say my name during the greeting. It just says "Hello, Welcome back!" without inserting the name. https://cdn.discordapp.com/attachments/1365445530699698269/1365452341310132235/bfa6546c-6cb8-45a0-a60d-643785f49911.jpg?ex=680d5c17&is=680c0a97&hm=f832e466d2ef55e6c50ceab31e23a65c709f2eb552538c37fd7fde0156374277&
s
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
s
cf7e2f42-9289-4ab6-8084-da1e8718e64e Here