https://retellai.com/?utm_source=discord&utm_medium=seo logo
Max JSON repsonse size on code node
# ❓・ai-evy-support
a
Thanks for tagging me @gk. I'll look through relevant sources and get back to you shortly.
### Answer The code result from a Code Node is capped at 15,000 characters [(1) ]() . This limit prevents overloading the LLM context window . If your JSON response exceeds this size, the result will be truncated. To work around this, consider: - Returning only essential data fields - Paginating or chunking large datasets - Using response variables to extract specific values rather than returning the entire JSON payload The same 15,000 character limit also applies to Code Tool results [(2) ]() .
​ To learn more, see the sources I considered: [[1] Code Node](https://docs.retellai.com/build/conversation-flow/code-node) [[2] Code Tool](https://docs.retellai.com/build/single-multi-prompt/code-tool) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.