https://retellai.com/?utm_source=discord&utm_medium=seo logo
when making a web_call through API, how can i mock...
# ❓・ai-evy-support
n
@AI Evy when making a web_call through API, how can i mock a function that exists in the agent?
a
Thanks for tagging me @Nicolas. I'll look through relevant sources and get back to you shortly.
### Answer I don't have information in the available sources about mocking or overriding functions that exist in an agent when making a web call through the API [(1) ]() . The Create Web Call API documentation shows you can override agent configuration settings like
retell_llm_dynamic_variables
when creating a web call , but there's no documented method for mocking or replacing the agent's existing functions during the API call. For more help with this specific use case, you might want to: - Visit [Documentation]() - Visit [Hire certified Retell partner]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.