https://retellai.com/?utm_source=discord&utm_medium=seo logo
u
@AI Evy Please help me
a
Thanks for tagging me @umair313. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer You can access logs for function calls by reviewing the public log of each call. After a call ends, the public_log_url is available, which contains details of all requests and responses, including function calls, for debugging and tracing purposes. You can find this log in the call history tab of the dashboard or by downloading it directly from the provided URL after the call ends [(1) ]() . If your weather API node is getting stuck, check the public log for errors or missing responses related to the function node. This can help you identify if the request is made, what the response is, and where the process might be failing .
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) ​
u
I run the agent with test button
how I can see what was the url when request made I am only seeing error in log API call from function returns 404
@AI Evy Response to above questions
a
Thanks for the follow-up, @umair313. I'll get back to you soon.
### Answer If you are running the agent using the test button and want to see the exact URL used for an API call from your function (for example, your weather API node) , you should check the public log for that call. The public log contains all requests and responses exchanged during the call, including detailed information about function calls and their results. This log is available after each call ends and can be accessed via the public_log_url, which you can find in the call details or download directly from the call history in your dashboard [(1) ]() [(2) ]() [(3) ]() . If you are seeing a 404 error for your function's API call, look in the public log to confirm the actual URL that was requested. This will help you verify if the URL is correct, if the endpoint exists, and what payload was sent. The log provides complete traceability for debugging function execution .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Latest Features (Call Analysis, Backchanneling) And Python Custom LLM Update](https://www.retellai.com/changelog/latest-features-call-analysis-backchanneling-and-python-custom-llm-update) ​
u
@AI Evy I am only seeing these logs 2025-09-15 22:25:19.841 call_17c0fd24f4de641b5beb862c3ce info: Starting call: call_17c0fd24f4de641b5beb862c3ce 2025-09-15 22:25:21.091 call_17c0fd24f4de641b5beb862c3ce info: Transitioning from node begin (name: begin) to node start-node-1757840296673 (name: Welcome Node) 2025-09-15 22:25:32.382 call_17c0fd24f4de641b5beb862c3ce info: Transitioning from node start-node-1757840296673 (name: Welcome Node) to node node-1757970372359 (name: Weather) 2025-09-15 22:25:32.384 call_17c0fd24f4de641b5beb862c3ce info: Calling tool: Weather Arguments: {} 2025-09-15 22:25:33.108 call_17c0fd24f4de641b5beb862c3ce error: Error in executing custom function call: Weather Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 404 response status: 404 response data: [{"cod":"1","message":"2"},"404","city not found"] 2025-09-15 22:25:33.108 call_17c0fd24f4de641b5beb862c3ce info: Received result for tool: tool_call_ab6ba2 Weather Result: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 404 response status: 404 response data: [{"cod":"1","message":"2"},"404","city not found"] 2025-09-15 22:25:52.657 call_17c0fd24f4de641b5beb862c3ce info: Ending call: call_17c0fd24f4de641b5beb862c3ce
a
Thanks for the follow-up, @umair313. I'll get back to you soon.
### Answer Based on your log, you are seeing function call execution details and error messages from the public log, but the log does not show the exact full outbound URL your weather API function is calling—only the function/tool name, arguments, and error result. This is the expected level of detail in the public_log_url for calls, as documented: the public log contains all requests and responses exchanged during the call, including function call attempts, arguments passed, and results such as error codes and payloads, but not necessarily the full HTTP URL for custom functions [(1) ]() [(2) ]() [(3) ]() . If you need to debug further, you should: - Check your function/tool configuration to ensure the correct endpoint and arguments are set (in the "Functions" section of your agent in the dashboard) . - Use the public log to confirm what arguments were passed and what error the API returned (in your case, a 404 and "city not found") . - If you require the full outbound URL, you may need to add additional logging inside your custom function's implementation (on your backend, if you control it) , since Retell's log will only show what it receives from the function, not the internal HTTP request details [(3) ]() . You can access the public log for each call via the public_log_url field in the call object, which is available after the call ends and can be found in the call history tab or by API [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @umair313. I'll get back to you soon.
### Answer To extract the temperature value from your API response in a Retell AI custom function, you need to parse the JSON response from your weather API and return just the temperature value in your custom function’s response. Retell will convert the result to a string and make it available to the LLM for further processing in the conversation [(1) ]() [(2) ]() . For example, if your weather API returns:
Copy code
json
{
  "temperature": "25f",
  "status": "sunny"
}
You should have your custom function return only the temperature value, like:
Copy code
json
{
  "result": "25f"
}
Or, if you want to include the temperature in a more complex object, ensure the relevant field is present so you can extract and use it as a dynamic variable later . If your function is implemented in Python (using FastAPI) , the response logic might look like:
Copy code
python
if args["city"] == "New York":
    return JSONResponse(status_code=200, content={"result": "25f and sunny"})
else:
    return JSONResponse(status_code=200, content={"result": "20f and cloudy"})
Make sure the key containing the temperature (e.g., "result" or "temperature") matches what you want the agent to use in the conversation. You can then extract this value as a dynamic variable in your function configuration for use in subsequent dialogue turns .
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy return by 3rd party api what I do in function response keys and values
a
Thanks for the follow-up, @umair313. I'll get back to you soon.
### Answer When configuring the function response in Retell AI, you should specify which keys and values to extract from the third-party API response so they can be used as dynamic variables in your agent's conversation. In the function configuration, you can map response fields (like "temperature") to dynamic variables (e.g., {{temperature}}) for later use in dialogue. For example, if your weather API returns:
Copy code
json
{
  "temperature": "25f",
  "status": "sunny"
}
You can set the function response mapping to extract "temperature" and assign it as a dynamic variable. Then, in your conversation flow or prompt, reference that variable using {{temperature}} to use the value in responses. This approach allows you to make the returned API values available for your Retell agent to use in subsequent turns or responses [(1) ]() , [(2) ]() .
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@User how I can access values from response which are in list for example [{"temp": 1}, {"temp":5}]
@AI Evy how I can access values from response which are in list for example [{"temp": 1}, {"temp":5}]
a
Thanks for the follow-up, @umair313. I'll get back to you soon.
### Answer To access values from a list in a third-party API response (like [{"temp": 1}, {"temp":5}]) , you should extract the specific value you want in your custom function’s backend logic and return it as a field in the JSON response. Retell AI’s function node expects you to map the relevant value(s) from the array to a named field so you can reference it as a dynamic variable in your conversation flow. For example, if your API returns:
Copy code
json
[
  {"temp": 1},
  {"temp": 5}
]
You should process this in your backend and return a response like:
Copy code
json
{
  "temperature1": 1,
  "temperature2": 5
}
Then, in your Retell function response mapping, you can use {{temperature1}} and {{temperature2}} as dynamic variables in your prompts or flows [(1) ]() , [(2) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.