System Prompt for Assistant Disappeared
# support
p
Hi I was trying to create a workflow and assoicated my agent with it. However after creating the workflow the system prompt for my agent the system prompt disappeared and only attach workflow option is coming. Even after deleting the workflow I cant see system prompt just add workflow button. Please help. https://cdn.discordapp.com/attachments/1367553201347235850/1367553201569796146/image.png?ex=681500ab&is=6813af2b&hm=14bfad778051d39ecb40167000dde4899e518ab89168c576db19b6199053aad8&
v
This is a known issue in Vapi where attaching a workflow can cause the system prompt to disappear. Try using the API to restore your system prompt with this code:
Copy code
javascript
// Update assistant with system prompt
await vapi.assistant.update("your-assistant-id", {
  messages: [
    {
      role: "system",
      content: "Your system prompt here"
    }
  ]
});
If that doesn't work, please contact Vapi support as they're aware of this issue. Sources: - [Discord discussion about system prompt disappearance](https://discord.com/channels/1211482211119796234/1334114042876264518) - [Discord discussion about system prompt restoration](https://discord.com/channels/1211482211119796234/1337126843790397591)
p
I had it saved somewhere it was somewhat old but I spent time optimizing it and arrived at a better prompt that I am happy with after testing, post this I deleted the agent since it had no use anymore. However I tried the code and it wasnt able to retrieve the system prompt. Also the sources were not helpful.
Please fix this I would never use Workflows again unless this is sorted 😦
c
Hey, when you attach an assistant to a workflow, you get a warning message saying that your assistant model will be overridden. This is not something on our side; instead, you could have carefully read that warning message. I can share your assistant prompt again, but I need the assistant ID to recover it. Please share the Assistant ID.
4 Views