https://retellai.com/?utm_source=discord&utm_medium=seo logo
Validation is not working fine
# ❓・bug-report
c
Hi Team, We prompt the customer to provide their 13-digit order number, then extract and validate it within the flow. The agent successfully captured the correct number, however, during validation, the agent incorrectly flagged it as invalid, stating that it was not 13 digits. Sometimes, it counts it as 13 digit, but still flag it as invalid. I’ve included a screenshot of the flow, along with a reference to the call log, for review. Please look into this. Call ID: call_9dc1ba14c5f125add84a03a717d https://cdn.discordapp.com/attachments/1418618627212447907/1418618627464233110/Screenshot_2025-09-18_at_7.32.15_PM.png?ex=68cec70d&is=68cd758d&hm=96567d6b84f168cbab987e2112cb1345fb4c3a16e0cb3c2f3c5716bf9d2a09e0&
@retellai anything?
o
What model are you using ?
c
@hari_reach can you confirm?
h
@Omar Ashraf | Community Lead hope you are asking about LLM model, it is GPT 4.1
o
the problem is on the order number validation (last node on the screen) ?
what is the value of order number digits , show me an example
It will have the count of total digits of order number provided by the customer.
h
@Omar Ashraf | Community Lead The order number is exactly 13 numerical digits.
o
which step it does faill at ?
h
order number validation
o
so it does extract that the number count is 13 ? and in the validation it fail although the number count is 13 Correct ?
or the value is not 13 ?
h
We see both instances: sometimes the value is 13 digits, it is counted as 13 digits, and it says it is invalid; and sometimes the digits are miscounted (13 digits) and it prompts as invalid. @Omar Ashraf | Community Lead
s
o
LLMs are not really good at counting , try to send it to your server and do the logic there.
h
okay, but we have multiple number validations and relying on our server is not feasible, as well as there could be latency issues.
any other workarounds to handle it within Retell platform?