https://retellai.com/?utm_source=discord&utm_medium=seo logo
Issue after duplicating an agent — the dev version...
# ❓・bug-report
q
I have duplicated conversasional flow agent, and updated functions to use prod URLs only, however agent in productions is lagging and dev version is fine. And I am not talking its lagging when extracting inform or anything like that, it just lagging when moving from one node to another. Example: Assistant: do you have any more questions? User: No ........ 3-5 sec Assistant: 'next node text' At the moment LLM is Gemini 2.5 Flash Example screenshot when the lag appears in the same node. https://cdn.discordapp.com/attachments/1435538850863644794/1435538851421749398/image.png?ex=690c553d&is=690b03bd&hm=a91ae7d763e038d61a5b482568aafe9878c32d91044e47b9562a9ab255ba27a4&
o
Hello @q40478 , there were a problem in the node transition and it’s back to normal now if this happened again please let me know Thank you.
But can you share the details logs just to make sure it’s not from the llm
q
yesterday we launch 3 agents to Production, and all 3 had lags. If we were calling to dev agents then all fine with UX.
@Omar Ashraf | Community Lead in that call i had just 2 errors: 2025-11-04 20:25:09.017 call_f3bd7210fc3397f8dbdb335ba9e error: Function result too long, capping at 15000 characters 2025-11-04 20:29:08.682 call_f3bd7210fc3397f8dbdb335ba9e error: Error encountered in LLM call: Failed to get response from any LLM provider: Cannot read properties of undefined (reading 'parts')
o
This looks like you are sending very big variable to the call the limit is 15000 characters
q
yes, its long string of dates that are returned for BE
however that should not effect performance of the agent as its done in background- I am refering to the errors in logs.
o
Unfortunately the variable limit is 15000 and might be casing the other problem Try to make it variable with in the limits and let me know if this happened again and keep in mind also the llm limit is 32k tokens
q
do you mean 32K context tokens?
o
Yes, i can ask the team to increase it for you but that will decrease the agent accuracy, try to limit the char on the variables and test and let me know if you see this error again.
q
go you, so thats fine, 32k is more than enough, max tokes so far used 16.5K pe rcall
@Omar Ashraf | Community Lead - I have found the issue. Problem that I have initial cost a the beginning of the call, during the call, I have function that retrieve new cost (tailored) based on conversation, however, issue is that {{cost}} is not updated with the latest price. I use "Extracted values from API response saved as dynamic variables." and that seems to fail override variable.
o
Hello @q40478 , you maybe giving it the wrong pass to the variable on your API call
and this is related to this ticket or the other one ?
q
to this, workwaoun that I did is use diferent variable name and us it in the prompt. i.e. {{new_cost}}
o
works now ?
q
works with the new extracted variable. However guys should look why it not updating variable with the new info 🙂
o
Hello @q40478 , it should override the old value , but you need to give it the right path from the response
q
I do, it saves as {{cost}}, the original variable name. But when time comes to use it, then LLM says 'number' that was in intial variable creation.
q
@Omar Ashraf | Community Lead is it possible to chnage the limit to be like 25K char?
o
For Variables? I can make a request for you , you can share the org id you want to update.
q
sure, it's org_VCP8XaJhUq1GaruY
@Omar Ashraf | Community Lead any update on variable char limit increase? I am hitting 15K everyday 🙂
o
I'v told the team about it , I will update you today.
q
hi mate is there an update on increased char limit?
On average I get 23K chars reposnse per function call. So either Retell increase char limits or I need to update all my agents
o
Hello @q40478 , unfortunately that will be hard to do since this will effect on the LLM accuracy and the pricing.