Outbound agent is still asking for phone number
# support
y
How do I prevent this from happening? I ticked 'Use Customer Phone' and added to prompt that the bot already has the phone number. We're using GHL tools to book in appointments. This is the call request payload we're sending to the bot: { "assistantId": "xxx", "assistantOverrides": { "variableValues": { "name": "{{contact.first_name}}", "email": "{{contact.email}}", "phone": "{{contact.phone}}", "contactId": "{{contact.id}}" } }, "customer": { "number": "{{contact.phone_raw}}" }, "phoneNumberId": "xxx" }
v
Suggestion: Check that your assistant's prompt and any tool configuration reference the phone variable exactly as
{{phone}}
(matching the variable name in your payload). For example, in your system prompt, use:
Copy code
text
You already have the user's phone number: {{phone}}. Do not ask for it again.
This ensures the assistant recognizes the phone number is provided and avoids prompting the user for it again. If the variable name differs in your prompt or tool, update it to match the payload key. Source: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
c
Are you sending this payload before the call starts or afterwards?
y
Yes! Thank you. This is solved.
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.
3 Views