Enhance prompt
Generate prompt-improvement suggestions for a completed simulation.
simulation_idrequiredcurl -X POST 'https://omnidim.io/api/v1/simulations/{simulation_id}/enhance-prompt' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "success": true, "previous_context": [ { "title": "Purpose", "prompt": "This agent helps customers with product inquiries and support issues." } ], "prompt_breakdown": [ { "title": "Purpose", "prompt": "This agent helps customers with product inquiries, support issues, and frequently asked product questions." } ] }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
simulation_id*integerResponse body
application/jsonEnhanced prompt suggestions. The simulation must be in
Completed status; otherwise the API returns 400.
application/jsonsuccess?booleanprevious_context?The agent's existing context-breakdown sections.
prompt_breakdown?Suggested replacement sections, structured the same way.
Was this page helpful?
Stop simulation
Stop a running simulation.
Apply enhanced prompt
Rewrite the agent's prompt sections from a completed simulation's suggestions. The agent's current sections are replaced, so save a version first if you may want them back. To review a proposed rewrite without applying it, call `enhancePrompt`. The applied text is generated again and can differ slightly from that preview.
