ambitious-aqua
ambitious-aqua4w ago

Tools Assistants. How to pass parameter to api tool

I see no way from asistants to send a parameter to my api type tool that sends a whatsapp. Specifically I need to send the phone number of the call (in workflows: {{phone_number}} ).
No description
5 Replies
Sahil
Sahil4w ago
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards,
Vapi
Customer Support Team
xenophobic-harlequin
xenophobic-harlequin4w ago
I'm using {{customer.number}} to send the caller's number to my api. I haven't found a way to get the called phone number to pass as a reliable variable, so I'm making an api call to my database where I'm grabbing any additional data I might need (called phone number in this case) and then I can use all that data again throughout the conversation. Def an extra step, but it's the only way I could reliably make it work.. Hope that helps..
ambitious-aqua
ambitious-aquaOP4w ago
@MRepublic I did the test with customer.number and it worked thank you very much, the only problem is that it sent a whatsapp to a random phone, hehe, it's not reliable at all. It may have been because of calling from the assistant, I will try by real phone.
xenophobic-harlequin
xenophobic-harlequin4w ago
Yes, def test via a real phone. Otherwise it will just make things up sometimes, LOL! Glad I could help!
Sahil
Sahil4w ago
checking if this is resolved/solved for you?

Did you find this page helpful?