https://retellai.com/?utm_source=discord&utm_medium=seo logo
Undefined tool
# ❓・bug-report
m
Hello @everyone / @support ! 👋 I need some help with a strange issue regarding Custom Functions (Tools). 🚨 My Problem: My agent's tool calls are not sending the name and args data to my n8n webhook. The webhook only receives the call transcript. Here's my setup: I have a Custom Function (book_reservation) that calls an n8n webhook. My n8n workflow is waiting for the tool's data (using {{$json.name}}). The result in n8n is always undefined because the name field is never in the JSON I receive. What I've already tried and confirmed: ✅ The webhook connection is working fine (I receive the transcript data perfectly). ✅ The Payload: args only toggle is DISABLED on my tool. ✅ I created an ultra-simple test to be sure it wasn't my prompt. My Minimal Test Case: Tool: Created a simple tool named test_tool. Prompt: "When the user says 'test', immediately call the test_tool tool." Result: The agent says it's checking, but the webhook still receives a JSON with only the transcript. The name field is undefined. This test seems to prove that the issue isn't my prompt, but that the platform isn't sending the tool call payload to the webhook. Has anyone seen this before? Is there a specific setting I'm missing to ensure the tool call name and args are included in the webhook payload? Thanks for any help! 🙏
c
can you try to reformat your n8n, because any time we send a custom function - even without any parameters, you’ll get a full payload of from number, to number, twilio call sid, dynamic variables etc