Hi everyone,
I’m trying to set up my AI agent to recognize the caller’s phone number. To achieve this, I created a custom webhook that gathers call data and a webhook response to send the information back to the agent.
In the custom webhook, the caller’s number is stored under "from_number"
. However, I’m unsure what to include in the “body” section of the webhook response to properly pass this information.
I tried to use ChatGPT but the info isn’t pass to the agent.
Any guidance would be greatly appreciated. Thanks in advance!
It really depends on how you want to pass it, and what the requesting services expects back.
e.g.: you could just map the variable into that field if the service is just expecting the phone number as plain text.
or, you could wrap it in a JSON object (collection).
If you need further assistance, please provide the following:
- more details on what you actually want to send back. please refer to the external service’s API documentation.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Hi Samliew,
I am a beginnerso I would be interested on how you would do it in this case.
What would be the better way of doing it for you, since you are more advance.
How would you approach this. Please explain it in simple ways.
When I read you I feel like I’m reading a bot 
I tried this solution in my webhook response :
{
“numero_tel”: “{{1.call.from_number}}”
}
The problem is that it tells me my number once in 2 times, and the other times it says random numbers.
Any idea on how to improve it .
Thanks in advance.
You’ll have to ask the external service’s support team about why they are sending unexpected information.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.