https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> I have a question about cu...
# ❓・ai-evy-support
c
@AI Evy I have a question about custom functions. In your documentation, I noticed that the result I can return will be capped at 4k characters and I have noticed it cuts off larger responses. Is there anyway we can increase this? I think other voice agent providers like Vapi and 11labs don't have a limit and the LLM with large 40k+ character context still processes accurately on those platforms.
a
Thanks for tagging me @castelprayonn. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate any system with custom function]() * [Custom Function]() * [Retell AI | Top 5 Best Voice AI Agent Platforms]() * [Step 2: Configure the basic settings]() -----------------------------
### Answer The function result is capped at 4000 characters to prevent overloading the LLM context window [(1)]() [(2)]() . Based on the available documentation, there is currently no way to increase this limit. This is an intentional design choice to maintain low latency, as Retell AI focuses on delivering response times of approximately 600ms to ensure fluid, real-time conversations [(3)]() . While you mention other platforms, Retell AI's architecture prioritizes consistent, low-latency responses and high stability with 99.99% uptime . For large responses, you may need to structure your custom functions to return more concise results or break down larger responses into smaller chunks.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.