https://retellai.com/?utm_source=discord&utm_medium=seo logo
When a function triggers and returns values, if I ...
# ❓・ai-evy-support
m
@AI Evy When a function triggers and returns values, if I go to trigger that function again on the same call the agent cannot seem to accept new information. Why is that and how do I resolve? FOr example, I'm querying Shopify inventory - the first function works great, the second function works on the backened and sends the right info to Retell in the webhook but the agent can't seem to accept the new info.
a
Thanks for tagging me @mcnft_. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific information about function calls failing on subsequent invocations within the same call when using Retell AI's custom functions. The documentation shows that custom functions should work by sending POST requests to your specified URL with function parameters, and the response should have a status code between 200-299 to indicate success [(1) ]() . The function result is capped at 15,000 characters to prevent overloading the LLM context window . For troubleshooting custom function issues, the documentation suggests checking that parameters are valid JSON schema format, particularly ensuring
"type": "object"
is included at the top level . Since your backend is working correctly and sending the right information to Retell, but the agent isn't accepting the new information on subsequent calls, this could be related to context management or response formatting that isn't covered in the available documentation. I'd recommend checking these potentially relevant sources for more detailed troubleshooting guidance: - [Integrate any system with custom function]() - [Function Node Overview]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
where is context management in thea gent setttings?
@AI Evy where do I adjust context management settings?
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
### Answer I don't have specific information about context management settings in the agent configuration interface from the available sources. The sources discuss the importance of context management conceptually - such as how dialogue management maintains context across multiple turns [(1) ]() and how multi-turn conversations retain conversational context [(2) ]() - but don't provide details on where these settings are located in the agent dashboard or configuration interface. For specific guidance on accessing context management settings in your agent configuration, I'd recommend checking these potentially relevant sources: - [Contact Sales]() - [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Dialogue Management](https://www.retellai.com/glossary/dialogue-management) [[2] Multi-Turn Conversation](https://www.retellai.com/glossary/multi-turn-conversation) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.