Optimize your prompt with AI and version history
Let AI rewrite and improve your agent's instructions, and roll back to any earlier version from the history.
Watch this step in the video · Optimize with AI
Is your prompt too long, messy, or underperforming? Omnifox gives you two tools to iterate without fear: Optimize with AI, which rewrites your instructions, and History, which saves every version so you can roll back.
Optimize with AI
This feature analyzes your current prompt and proposes a rewritten version: clearer, better structured, and without losing your rules.
- Open the agent and go to the Instructions tab.
- Click Optimize with AI.
- Wait a few seconds while it analyzes and improves the prompt.
- Compare side by side: Original on the left, Optimized on the right.
- Read the Reasoning and the Main changes list to understand what changed and why.
- If you like it, click Apply optimized version and confirm.
Applying the optimized version replaces the current prompt, but the previous version is saved in History. You can roll back any time.
Version history
Every time you save important changes (or apply an optimization or a template), Omnifox creates a history entry.
- In the Instructions tab, click History.
- The Version history panel opens with the list (newest first), each showing its date and author.
- Click a version to preview its content on the right.
- To go back to it, click Restore this version and confirm.
Restoring replaces the agent's prompt, tone, temperature, and max_tokens with the ones from that version. The current version is saved automatically to history, so restoring never loses anything.
Verify it works
- After applying or optimizing, open the Sandbox and test a couple of typical messages.
- Go back to History and confirm a new entry appears with today's date.
If it doesn't work
- Optimization fails: usually a temporary error; wait a few seconds and try again. The button is only available when the prompt isn't empty.
- No versions show up: if the agent is new and you've never saved changes, the history is still empty.
- Restored by mistake: no problem — the version you had was saved; open History and restore it.
Tips
- Use Optimize with AI as a starting point, not gospel: read the reasoning and tweak what your business needs.
- Before a big change, save first: that gives you a clear rollback point in history.
Related articles
Related articles
-
Create your first AI agent
Learn what an AI agent does in Omnifox, how to give it instructions, connect it to a channel and test it in the sandbox before it talks to real customers.
-
How to write good instructions for your AI agent
Learn how to write clear instructions so your AI agent replies with the right tone, limits and actions.
-
AI Agents complete guide
AI Agents in depth, in 65 chapters: creating, instructions, tools, knowledge, behavior, tester, inbox, workflows, analytics and usage, with every setting explained.
-
Connect your AI agent to WhatsApp, Instagram, Messenger and web chat
An agent with no channels serves nobody. Connect it to your WhatsApp, Instagram, Messenger or website chat from the Connections section, then switch it on so it starts replying.
-
Start here: AI Agents in 8 minutes
AI Agents essentials in a short video: creating an agent, its instructions, tools, knowledge, channels, the tester, hours and handing over to a person.