absent-sapphire•4d ago
Urgent - Unable to pass variable to API Request Tool
Hi,
I’m trying to pass dynamic parameters (for example organization_id and agency_id, these are catched in assistant-request hook) in the HTTP request made by the API Request tool.
The Liquid syntax is displayed, but the values are never resolved. The same variables, however, are correctly populated both in the prompt and in the welcome sentence.
Without this functionality, the API Request feature loses much of its usefulness, and it seems strange to me that the documentation does not include any example showing how to pass dynamic parameters—after all, passing parameters to an API is a fundamental use case.
I’d like to understand whether there’s a specific step needed to enable variable resolution in API Request, or if this is a known bug/limitation.
Thanks in advance.

7 Replies
Hi Giovanni,
We replied to your other ticket but in case you didn't receive it, could you please provide a call id where this API request tool is being used?
absent-sapphireOP•2d ago
Hello Kyle, we can discuss here in order to share information with community.
Call ID: 3f7a1320-4592-49ab-ba17-ab7f153edf42
absent-sapphireOP•2d ago
When I call the phone number, no assistant is associated to it, in this way the webhook is called with event type assistant-request, in this point I return the variable that I want save in the context of call:

absent-sapphireOP•2d ago
The assistant is properly associated and variables are properly rendered in welcome sentence (the assistant replace liquid syntax with the value I passed in webhook)

absent-sapphireOP•2d ago
At this point I think "Ok, if the assistant speak the right values, it means that also {{organization_id}} and {{agency_id}} are available, I can use it to send request to API Request:

absent-sapphireOP•2d ago
The tool is properly invoked but path parameters are not replaced with real values:

absent-sapphireOP•2d ago
I don't want replicate tool just because I'm unable to pass parameters in API Request Tool, it seem very very strange I'm unable to perform this action.
Furthermore I have also another problem, because I can receive the invocation but I can't see any information about call_id, I would discriminate the call_id which triggered the invocation