API call during call referencing the callers phone...
# support
j
I can see the correct caller number in the call logs under customer.number (e.g. "+6140…") and it’s present as soon as the call starts, but inside the Assistant runtime I can’t access it reliably with {{phone}} or {{customer.number}} when calling tools. Is there a supported way to reference the live customer.number directly in Assistant prompts/tools during the call, or do I need to always pass it in from a Workflow? I had the lookup call tool working in a workflow but when I try it in an assistant it doesnt work. Have tried multiple variables like {{phone}} as well.
c
Hi, could you please provide a call id where you used this lookup call tool in an assistant? We would like to review the logs and see what information is in its place
j
0c3ab897-efe7-4f92-9c07-dd2b67ef1134 6a1caa2e-137a-4ab7-8770-30df10ca6e67 adc7963b-0139-4c8c-9d16-cef7fe712ab7 6345ee78-944b-4be8-9229-dddf1e66a1da 2bee7b06-1603-4a37-81ce-f0001fda8d91 24ed2dbe-1983-4975-a764-470016a11ab1 i was trying various variables - i had it working in workflow inbound, but the same variable didnt work on assistant agent just want to be able to API pass the callers number to lookup their name from airtable or another source
i just re-tested in workflow and precall API tool using {{customer.number}} works and passes the callers number - but cant for the life of me get it to work with an assistant confusing for me, do workflow and assistant have different in-call variables or data or something? https://cdn.discordapp.com/attachments/1410109904647225495/1411460907695079474/image.png?ex=68b4bce8&is=68b36b68&hm=cce5bd55b86710505e0fbbfd77f6a9f05d4de19e787b13f8db3ebc60a191a1d3&
c
Thank you for the callIds. We will take a look at them and get back to you soon. To answer your question, {{customer.number}} is a default variable that should pull information in assistants or workflows. The only reason why it wouldn't pull information is if the customer object was empty.
2 Views