Agents
Review An Agent Prompt
Run DialNexa agent prompt review checks before publishing a Single Prompt Agent or Conversational Flow Agent version.
POST
Review An Agent Prompt
Changes state - verify before retry
Review an agent prompt before publishing. The operation can check instructions, variables, speech quality, contradictions, hallucination risks, language, model fallback, post-call capture, and call-handling settings without editing or publishing the agent version.
When To Use Agent Prompt Review
- Check a draft prompt before creating an immutable version.
- Review only the check groups relevant to your release gate.
- Generate a
fix_prefillinstruction that can be sent to an editing assistant. - Recheck the same content after changing the prompt or version configuration.
Before You Call It
- Use an
agent_ID from List Agents. - Use a version number returned by Get Agent Details.
- Keep
prompt_textat100,000characters or fewer. Omit it to review the stored version prompt. - An empty or whitespace-only
prompt_textalso falls back to the stored prompt.
Choose Prompt Review Checks
Omitchecks to run every available group. Send a smaller list when you need a faster focused review.
The
unknowable and conflicts groups use model-based checks. Leaving both out avoids those model calls.
Response Fields
Side Effects And Retry Safety
This operation does not edit or publish the agent version. It can run billable model work, may take several seconds, and can store a complete report for reuse. Complete, non-degraded reports can be cached for identical inputs. Degraded reports are not cached so a later request can retry the full review. It is safe to retry after a timeout, but first allow enough time for the original review to finish. An identical completed request can return the cached report.Verify The Result
Checkdegraded before treating the review as complete. Review every item where acknowledged is false, then either revise the prompt or record a decision with Acknowledge A Prompt Review Finding. Publishing remains a separate user action.
Operation-Specific Errors
Related Lifecycle Operations
- Get Agent Details to find version numbers and the stored prompt.
- Update Agent to revise a draft before publishing.
- Acknowledge A Prompt Review Finding to accept or dismiss one reviewed finding.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Signed agent ID.
Example:
"agent_2g7Xy3tY53gRlp"
Agent version number to review.
Required range:
x >= 1Example:
1
Body
application/json
Draft prompt text to review instead of the stored version prompt. Omit or send blank text to use the stored prompt.
Maximum string length:
100000Check groups to run. Omit to run every group.
Available options:
structure, variables, speech, unknowable, conflicts, language, models, capture, call_handling Review An Agent Prompt