https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a reason an agent doesn't send through a ...
# ❓・ai-evy-support
r
@AI Evy is there a reason an agent doesn't send through a payload when calling a function node?
a
Thanks for tagging me @Reed. I'll look through relevant sources and get back to you shortly.
### Answer When a custom function is called from a function node, Retell does send a payload to your specified URL [(1) ]() . The request includes the function name and parameters . However, there's an important distinction to understand: Retell sends additional context beyond just the raw function parameters [(2) ]() . The payload includes: -
tool_call_id
for internal tracking -
name
for identifying the tool - Call metadata, full transcript, timestamps, and other context If your external API expects only the raw function parameters and rejects requests with additional data, you'll need to handle this through your backend server . The request should go to your backend server first, where you can extract the relevant information from Retell's payload and then make a separate request to your external API with only the data it expects . Common troubleshooting steps if the function isn't triggering: 1. Verify your endpoint URL is correct and reachable [(3) ]() 2. Ensure "Wait for Result" is enabled if you need the function to complete before transitioning [(4) ]() 3. Confirm your agent has been published with the latest changes [(3) ]() 4. Check your server logs to see if requests are arriving
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] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Retell is NOT sending the payload as the raw POST body](https://discord.com/channels/1186424376300679209/1397379673436196927) [[3] Function Node Not Triggering External Webhook](https://discord.com/channels/1186424376300679209/1422215353857212450) [[4] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
r
@AI Evy the external webhook receives a payload from retell agent with meta data, but it's missing the specific arguments from the retell function within the call flow. The JSON is formatted to mark these arguments as required, but this is being ignored.
a
Thanks for the follow-up, @Reed. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer When defining parameters for your custom function in Conversation Flow, you need to ensure the JSON schema is properly formatted with the
required
array [(1) ]() [(2) ]() . The parameter definition should follow this structure:
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
Key points to verify: 1. **HTTP Method**: Parameter definitions are only available for POST, PATCH, and PUT requests . If you're using GET or DELETE, parameters won't be sent in the request body. 2. **JSON Schema Format**: Ensure your parameter schema follows the OpenAI Function Calling format correctly . The
required
array should list parameter names as strings. 3. **Function Description**: The function description helps the LLM understand when to call the function and what arguments to extract from the conversation . If your webhook is receiving metadata but missing the specific arguments despite marking them as required, double-check: - Your HTTP method is POST, PATCH, or PUT (not GET or DELETE) - The parameter names in your
required
array exactly match the property names in your schema - Your agent has been published with the latest function configuration changes If you're still experiencing issues after verifying these points, I'd recommend checking your server logs to see the exact payload structure Retell is sending. This will help identify whether the issue is with how the function is configured or how your webhook is parsing the incoming data.
r
@AI Evy From retell logs: 2025-11-27 23:12:46.912 call_0c6506d98836e5eb6226a3434bf info: Calling tool: IT_Callback Arguments: {} 2025-11-27 23:12:47.099 call_0c6506d98836e5eb6226a3434bf info: Received result for tool: tool_call_2bb607 IT_Callback Result: Accepted 2025-11-27 23:12:47.341 call_0c6506d98836e5eb6226a3434bf info: Transitioning from node node-1764117266159 (name: It Callback) to node node-1760482748320 (name: Quality Assurance) From retell function, "parameters": { "type": "object", "properties": { "name": { "type": "string", "description": "The caller's name" }, "contactNumber": { "type": "string", "description": "The caller's contact number" }, "emailAddress": { "type": "string", "description": "The caller's email address" }, "businessUnit": { "type": "string", "description": "The business unit or company that the caller is associated with" }, "notes": { "type": "string", "description": "Provide a one to two paragraph, detailed summary of the call." }, "actions": { "type": "string", "description": "Bullet point key details from the call to provide actionable outcomes from the summary." } }, "required": [ "name", "contactNumber", "businessUnit", "notes", "actions" ] } why would this not be sent through to the webhook?
a
Thanks for the follow-up, @Reed. I'll get back to you soon.
### Answer Based on your logs showing
Arguments: {}
, the LLM is calling the function but not extracting the required parameters from the conversation [(1) ]() [(2) ]() . Common causes for empty arguments: 1. Insufficient conversation context - The LLM hasn't collected the required information yet from the conversation to populate the parameters . Your function requires name, contactNumber, businessUnit, notes, and actions - if these haven't been discussed in the conversation, the LLM can't extract them [(2) ]() . 2. Missing or unclear function description - The function description needs to explicitly tell the LLM when to call the function and what information should be gathered first . For example, your prompt should include something like: "After collecting the caller's name, contact number, business unit, and call details, invoke the IT_Callback function" . 3. HTTP Method limitation - Confirm you're using POST, PATCH, or PUT as the HTTP method [(1) ]() [(2) ]() . Parameter definitions are only available for these methods, not GET or DELETE . 4. Timing issue - The function might be triggering before the agent has gathered all required information during the conversation [(2) ]() . Recommended fixes: - Update your agent prompt to explicitly instruct when to call this function and ensure all required fields are collected first - Add clearer descriptions to each parameter property to help the LLM understand what to extract [(1) ](
s.retellai.com/build/conversation-flow/custom-function) [(2) ]() - Consider making some fields optional (remove from
required
array) if they're not always available during the conversation - Test by having a conversation where you explicitly provide all the required information before the function should trigger The parameter schema format looks correct, so the issue is likely that the LLM is calling the function before it has extracted the necessary information from the conversation .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.