aaryan._t
09/18/2025, 10:19 PMAI Evy
09/18/2025, 10:19 PMAI Evy
09/18/2025, 10:19 PMAI Evy
09/18/2025, 10:19 PMAI Evy
09/18/2025, 10:19 PMaaryan._t
09/18/2025, 10:21 PMaaryan._t
09/18/2025, 10:23 PMAI Evy
09/18/2025, 10:23 PMAI Evy
09/18/2025, 10:23 PMWhen user selected a slot, please book the appointment by calling the `book_appointment` function.
You can expand this in your node instruction to specify all required fields, for example:
"When user has provided a slot, name, and phone number, please book the appointment by calling the book_appointment function and include the phone number."
This ensures the instruction is present at the point where the booking function is actually triggered, which is inside the function node [(1) ]() .AI Evy
09/18/2025, 10:23 PMAI Evy
09/18/2025, 10:23 PMaaryan._t
09/18/2025, 10:30 PMAI Evy
09/18/2025, 10:30 PMAI Evy
09/18/2025, 10:30 PMAI Evy
09/18/2025, 10:30 PMAI Evy
09/18/2025, 10:30 PMaaryan._t
09/18/2025, 10:31 PMAI Evy
09/18/2025, 10:31 PMAI Evy
09/18/2025, 10:31 PMWhen user has provided a slot, name, and phone number, please book the appointment by calling the `book_appointment` function and include the phone number as attendeePhoneNumber.
3. Confirm the function call includes the phone number variable in the correct format and with the correct key (likely attendeePhoneNumber) .
The payload should look like:
json
{
"time": "Tuesday 2pm",
"name": "John Smith",
"email": "johnsmith@gmail.com",
"attendeePhoneNumber": "+15551234567"
}
Replace +15551234567 with your collected variable.
If you still get errors, double-check the exact field name Cal.com expects for the phone number and ensure your dynamic variable is populated at runtime [(1) ]() [(2) ]() .AI Evy
09/18/2025, 10:31 PMAI Evy
09/18/2025, 10:31 PMaaryan._t
09/18/2025, 10:32 PMaaryan._t
09/18/2025, 10:33 PMAI Evy
09/18/2025, 10:33 PMAI Evy
09/18/2025, 10:33 PMAI Evy
09/18/2025, 10:33 PMAI Evy
09/18/2025, 10:33 PMaaryan._t
09/18/2025, 10:34 PMAI Evy
09/18/2025, 10:34 PMAI Evy
09/18/2025, 10:34 PMAI Evy
09/18/2025, 10:34 PMAI Evy
09/18/2025, 10:34 PMaaryan._t
09/18/2025, 10:41 PMAI Evy
09/18/2025, 10:41 PMAI Evy
09/18/2025, 10:42 PMjson
{
"time": "Tuesday 2pm",
"name": "John Smith",
"email": "johnsmith@gmail.com",
"attendeePhoneNumber": "+15551234567"
}
Make sure your dynamic variable is referenced with the correct key in the function node [(2) ]() .
If you have verified both steps and it's still not working, confirm that your dynamic variable name matches exactly between where it is set and where it is referenced, and that all values are strings [(1) ]() . If the field is missing, Retell AI will leave the variable in curly braces (e.g., {{phone_number}}) , which means it was never set .AI Evy
09/18/2025, 10:42 PMAI Evy
09/18/2025, 10:42 PM