Reverted Prompt
# support
e
Hi team, We have an Ai Assistant on Vpai, and we updated their voice, but after that it seems the prompt reverted to an earlier version. We didn't make any changes to the prompt ourselves. So we're wondering if there is a way to recover the latest version? Any idea why this might have happened? Thank you in advance!
v
When updating an assistant's voice, nested properties can be overwritten if not properly preserved. To recover your prompt and prevent future issues:
Copy code
javascript
// When updating, preserve all properties
const response = await vapi.patch('/assistant/{id}', {
  model: {...modelPrevProperties, ...updated}
});
Unfortunately, Vapi doesn't currently have version history for prompts, so documenting your settings before updates is recommended. Sources: - [Discord conversation about nested properties](https://discord.com/channels/1211482211119796234/1336023224898814012) - [Discord conversation about version history](https://discord.com/channels/1211482211119796234/1334944779850485790)
k
Hey Ella, I'm sorry that happened. If it synced to an older version than there's no way to undo that. However, if you go into your call logs, click on the most recent call before it synced back to what you had before. Click on messages, and your prompt will be right there. You can copy and paste that back and everything should be good. Refer to the screenshot - thats where your prompt will be. https://cdn.discordapp.com/attachments/1365092314644484126/1365099965000716371/Screenshot_2025-04-24_at_5.57.51_PM.png?ex=680c13e9&is=680ac269&hm=394505f78df7f903e402a97ce8d713e383a33fa6938ea5708234959035ba73f8&
e
Hi Mason! Thank you very much, that was very helpful!
20 Views