Skip to content
How to include the ...
 
Notifications
Clear all

How to include the caller's phone number in a webhook response?

4 Posts
2 Users
0 Reactions
4 Views
Christophe_Chapiteau
(@christophe_chapiteau)
Posts: 8
Active Member
Topic starter
 

Hello everyone,

I'm working on configuring my AI agent to identify the caller's phone number. To accomplish this, I've set up a custom webhook to collect call data and a webhook response to transmit this information back to the agent.

Within the custom webhook, the caller's number is captured under the key "from_number". However, I'm uncertain about what to place in the “body” field of the webhook response to correctly pass this data.
I attempted using ChatGPT, but the information isn't being relayed to the agent.

Any advice would be greatly appreciated. Thank you in advance!

 
Posted : 29/03/2025 6:25 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

It truly depends on how you intend to pass the data and what the requesting services anticipate in return.

For instance, you could simply map the variable into that field if the service expects the phone number as plain text.

Alternatively, you could encapsulate it within a JSON object (a collection).

If you require additional support, kindly furnish the following:

  • More specifics regarding what you aim to transmit back. Please consult the external service’s API documentation.

Hope this assists! Let me know if you have any further questions or encounter any issues.

P.S.: Investing some effort into the callin.io Academy will save you considerable time and frustration when using callin.io.

 
Posted : 30/03/2025 3:50 am
Christophe_Chapiteau
(@christophe_chapiteau)
Posts: 8
Active Member
Topic starter
 

Hi Samliew,

As a beginner, I'm really interested in understanding your approach to this scenario.
What would be the better way to handle this from your perspective, given your more advanced experience?
How would you tackle this? Could you explain it in simple terms?

Sometimes your explanations feel a bit robotic.

:frowning:

I attempted this solution in my webhook response:

json
{
"numero_tel": "{{1.call.from_number}}"
}

The issue is that it provides my number about half the time, and the other times it shows random numbers.

Do you have any suggestions on how to improve this?

Thanks in advance.

 
Posted : 01/04/2025 7:40 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

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.

P.S.: Investing some effort into the callin.io Academy will save you lots of time and frustration using callin.io.

 
Posted : 01/04/2025 9:20 am
Share: