When in the retell test chat and test call the custom function works perfeclty fine and gives all the info to the webhook. When I call from my phone the function only gives part of the info and not all of it which is required to run the workflow. This is the result I get in my webhook in n8n:
},
"body":
{
"phone_number":
"647-325-0618"
},
And this is my custom function: {
"type": "object",
"required": [
"phone_number",
"status_of_customer"
],
"properties": {
"phone_number": {
"type": "string",
"description": "The user's phone number to check for existing booking"
},
"status_of_customer": {
"type": "string",
"description": "Makes sure you are aware of the callers status, could be cancel, or booking",
"enum": ["booking",
"cancel"
]
}
}
}