Calling party number issue
# support
u
all of a sudden the ai agent is unable to recognize the calling parties number, I had this at the top of the system prompt:Customer's number is {{customer.number}} and it was working, now it just stopped working
v
The most likely cause is a syntax issue with your variable. Double-check that you're using the correct format with double curly braces:
Copy code
Customer's number is {{customer.number}}
If that doesn't work, try setting the customer information explicitly when creating a call:
Copy code
javascript
const call = await vapiClient.calls.create({
  phoneNumberId: "your-phone-number-id",
  customer: {
    number: "+1234567890", // Customer's phone number in E.164 format
    name: "John Doe"
  },
  assistant: {
    // Your assistant configuration
  }
});
Sources: - [Troubleshooting customer.number](https://discord.com/channels/1211482211119796234/1336772166330351646) - [Setting the customer.number](https://discord.com/channels/1211482211119796234/1341835905656291369)
u
this is inbound, not outbound
its inbound calls
k
Can you give me more context/information? This is an inbound call and you want your receptionist to answer the call and put a number to name? Is that correct?
u
Yes. Inbound call, and i was just trying to see if the calling party number can be passed to the agent through that variable, actually let me put it this way, this prompt was working until yesterday and now it's not, like if I woukd ask it, whats my phone.number it would read out my number
Now it just says I don't have that info
k
You simply just have to add this to your prompt: You always remember the customers number The person who is calling number is {{customer.number}}