https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> I am using the `/v2/create-...
# ❓・ai-evy-support
v
@AI Evy I am using the
/v2/create-phone-call
endpoint with
override_agent_id
and no
override_agent_version
. When I update the prompt, save, and publish, for the same agent ID, the phone call registers, but the agent is still using the old version of my prompt. What do I do?
a
Thanks for tagging me @vineshkannan. I'll look through relevant sources and get back to you shortly.
### Answer You need to include the
override_agent_version
parameter when making the call. Here's an example of the correct format:
Copy code
json
{
  "override_agent_id": "agent_12345",
  "override_agent_version": 1
}
[(1) ]() When making outbound calls, both the
override_agent_id
and
override_agent_version
parameters should be specified to ensure you're using the correct version of your agent [(2) ]() . Without specifying the version, the system may continue using a cached or previous version of your agent.
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Can't get the agent to recognize phone number and get details about the inbound caller](https://discord.com/channels/1186424376300679209/1372989726755258439) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy Thank you! We had to set the agent version to be our latest version. Is there anyway to automatically use the latest version? When I leave out that parameter, it seems to use the oldest version instead.