https://retellai.com/?utm_source=discord&utm_medium=seo logo
if I have a single prompt agent, can I run an api ...
# ❓・ai-evy-support
m
@AI Evy if I have a single prompt agent, can I run an api call "Update agent" and update it with Conversational flow as response engine instead?
a
Thanks for tagging me @maurizio_isendoorn. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) ​
### Answer [(1) ]() Yes, you can update an agent to use a Conversation Flow as the response engine using the Update Agent API endpoint. The
response_engine
field in the Update Agent request body accepts different types, including conversation flow. You would need to: 1. First create a Conversation Flow using the Create Conversation Flow endpoint [(2) ]() 2. Then update your agent with a PATCH request to
/update-agent/{agent_id}
, setting the
response_engine
to reference your conversation flow [(1) ]() The response engine object supports multiple types including
retell-llm
,
custom-llm
, and
conversation-flow
. **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @maurizio_isendoorn. I'll get back to you soon.
m
@AI Evy When I update an agent to the response engine conversational flow when the response engine used to be retell-llm it does not work, but when i create a new agent with that same conversational flow id it does work. Can you find out why and how i can just update existing agents that have retell-llm to using conversational flow instead?
a
### Answer Based on the available sources, I don't have specific information about why updating an existing agent from retell-llm to conversation-flow might fail while creating a new agent works. [(1) ]() However, based on similar issues documented in the Discord community, there may be a versioning consideration. When updating agents via API, you may need to ensure you're targeting the correct version of the agent. [(2) ]() [(3) ]() Here's what I'd recommend trying: 1. **Check the agent version**: When you update the agent's response_engine, make sure you're also setting the version parameter if you're using versioned agents [(2) ]() 2. **Set the agent to Draft version**: If you're using the dashboard, set your agent to use the "Draft" version at the phone number level, which will pick up API changes without requiring manual publishing 3. **Verify the conversation flow exists**: Ensure the conversation_flow_id you're referencing is valid by using the Get Conversation Flow endpoint first [(4) ]() The Update Agent endpoint does support changing the response_engine type, including switching to conversation-flow. [(1) ]() If you continue experiencing issues after trying these suggestions, I'd recommend checking out these potentially useful sources: - [Update Agent]() - [Get Conversation Flow]() Would you like me to provid
e a general answer based on common API update patterns?
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Discord message from @userrk1329 on 2025-08-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1405220586338390186) [[3] Discord message from @userrk1329 on 2025-08-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1405073658904444969) [[4] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.