Mikey
08/29/2025, 9:05 PMAI Evy
08/29/2025, 9:05 PMAI Evy
08/29/2025, 9:05 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
The update operation modifies the entire conversation flow structure, including all nodes within it . When you update a conversation flow, you can modify the nodes array which contains all the individual nodes in your flow .
Each node in the conversation flow can include properties like id, type, instruction, and edges for transitions between nodes . The API doesn't appear to support updating individual nodes in isolation - you update the entire conversation flow structure .AI Evy
08/29/2025, 9:05 PMAI Evy
08/29/2025, 9:05 PMMikey
08/29/2025, 9:08 PMAI Evy
08/29/2025, 9:08 PMAI Evy
08/29/2025, 9:08 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
This returns the complete agent configuration as a JSON object, including all properties like agent_id, voice_id, response_engine, voice_model, backchannel_words, and other settings .
The API response provides the full agent structure in JSON format . From the Discord discussion, when you export an agent from the dashboard, you also get the format in a JSON file [(2) ]() .
However, the sources don't show a specific "export" endpoint - the Get Agent API serves as the way to retrieve the complete agent configuration in JSON format [(1) ]() .AI Evy
08/29/2025, 9:08 PMAI Evy
08/29/2025, 9:08 PM