https://retellai.com/?utm_source=discord&utm_medium=seo logo
Functions stopped being called out of nowhere
# ❓・bug-report
n
https://dashboard.retellai.com/agents/agent_99cda545cd88166fc880a4fade I've been running this agent for months now. Haven't changed anything, but it stopped doing some tool callings I have marked: lead_calificado lead_no_calificado It seems like "native" functions are working fine but these are just not being called. Not sure if not "visible" to the agent because of some bug, because the instructions are there and they were being used fine. Could you check/help?
o
Hello @nino_73323 ,I hope you doing fine
Can you share the part of the transcription that the agent should call this function and the prompt for using it
And this happens every call ?
n
It's in the part after they qualify the lead. It's happening every call. I think something to do with your orquestration layer (the langgraph I guess). Did you change it recently? Maybe now it's interpreting different, or skipping the function in the prompt, not sure\
call_6a93d8c9dade7a1001ca0a56197 for example. It should call around 4:14: Agent: Perfecto, Joaquim. Por lo que me cuentas, parece que cumples con los requisitos para acogerte a la Ley de Segunda This is when they are qualified. Function is: lead_calificado Prompt for function: Activar despues de haber obtenido las respuestas a las preguntas necesarias para entender si el lead califica. (It's all in Spanish btw)
o
Hello @nino_73323 , are able to provide a screen shot of the transcription at this section and the prompt that should triger the function , you can dm me if there anything sensitive
n
Omar, is it an issue of it being in Spanish? Or something you guys changed internally of how you call the "tools"? I see, for example, you have it called "functions" now
Any help with best practices, especially lately since changes would be helpful. Because they were working fine up until a couple weeks ago
o
What llm are you using?
n
No GPT 4.1
Previously 4o, but you (or OpenAI) discontinued it a couple days ago
Switch to 4.1 is not the issue
o
okay 4.1 is good so the problem must be prompting if you can send me prompt where you call the function I can help you more , dm me if you don't want share in public