> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Versions and Publishing in DialNexa

> Publish, assign, compare, and roll back DialNexa agent versions while keeping live voice AI routes on tested configuration.

Agent versions in DialNexa separate draft editing from live call behavior. A published version records the agent configuration used for live calls; most settings are locked in the dashboard. Inbound calls and workflow calls use the agent's latest published version; single calls and batches can choose a published version; web calls can test a draft or a published version. Draft edits are isolated from live traffic until explicitly published.

![DialNexa agent builder showing version history with a current draft and published versions.](https://mintcdn.com/dialnexa/0efoAN-6So4r-6NC/images/documentation/screenshots/agent-version-history.png?fit=max\&auto=format\&n=0efoAN-6So4r-6NC\&q=85\&s=2ddc04bfda9d8d43e73ca9ddd625f223)

> [!WARNING]
>
> The most dangerous version is the one everyone thinks is live but nobody actually published. Check the published version before assuming callers are getting the new behavior.

## Before You Begin

Finish the candidate prompt, provider stack, variables, functions, and settings. Run a draft or controlled test and record which live routes will need the new version.

## What DialNexa Agent Versions Contain

Publishing captures every layer of the agent at that moment in time.

| Component | Included in published version |
| - | - |
| System prompt | Yes |
| Welcome message | Yes |
| Voicemail message | Yes |
| Language, voice, LLM, transcriber settings | Yes |
| Current time awareness timezone | No. Set on the agent and applies to every version at once |
| Functions and custom functions | Yes |
| Speech settings (eagerness, denoising) | Yes |
| Hinglish word map | No. Set on the agent and applies to every version at once |
| Call settings (voicemail detection, max duration, silence) | Yes |
| Post-call analysis field definitions | Yes |
| Knowledge base attachments and retrieval settings | Yes, for supported cascaded agents |
| Dynamic variable defaults | Yes |
| Agent webhooks | No. Set on the agent and applies to every version at once |
| Phone number assignments | No. Numbers are linked to the agent and shared by every version |

## Draft vs. Published State

> [tab] Draft
>
> The working state of the agent. All configuration controls are enabled. Changes in draft are not served to callers. You can save and iterate on a draft as many times as needed without affecting live traffic.
>
> A draft becomes a published version when you click **Publish**. After publishing, the draft continues to exist as an editable state -- you can immediately make more changes and publish again as a new version.

> [tab] Published Version
>
> A snapshot created at the moment of publishing. Most dashboard controls are locked. For ordinary configuration changes, edit the draft and publish a new version. Emotion tags is an operational control that can update a published version for supported voices.
>
> Published versions remain available in version history. New outbound calls and draft batches can select an older published version; inbound and workflow calls use the latest published version.

> [tab] Historical Version
>
> Any published version that is not the current live version. Visible in version history. Can be viewed and compared to the current state. Single calls and new batches can still choose it; inbound and workflow calls use the latest published version.
>
> See [Agent History and Version Review](https://dialnexa.com/docs/agents/history-and-version-review.md) for how to access and compare historical versions.

## Read Agent Versions In The Editor Header

The header separates **Live: vN** from **Editing: vN**. **Draft saved** confirms persistence of the draft; it does not confirm deployment. **Unpublished changes** identifies changes awaiting publication, and **Viewing published version** identifies a published snapshot.

Before testing, check both the header and the test action. A browser test can use the open draft, while a phone test requires a published version. See [Testing agents](https://dialnexa.com/docs/agents/testing-agents.md#choose-the-version-for-testing-dialnexa-agents).

### Check Which Settings Are Unpublished

The **Unpublished changes** badge compares the saved draft with the live version across prompt, LLM, voice, language, transcriber, speech, call settings, and knowledge-base settings. Hover over the badge to review the changed groups before a phone test. A saved voice, model, or transcriber change still needs publication before phone calls use it. The badge also appears after you edit the prompt, save a Conversational Flow, or change an IVR menu. In the IVR editor that includes moving a step, until you publish.

## Why Versions Are Immutable

Version history provides a record for reviewing calls. When a call behaves unexpectedly, you can open the version that handled it and see exactly what prompt, voice, LLM settings, and functions were in place at that moment. Take care with operational controls such as Emotion tags that can update a published version: verify the saved value before assuming it still matches an earlier call.

This also means you can safely experiment in draft state without risk: no draft edit goes live until you explicitly publish.

## Verify And Publish An Agent Version

The Publish dialog can review the draft prompt before you create an immutable version. The review is optional, never publishes automatically, and does not block you from continuing after a warning.

![DialNexa Publish Agent dialog showing optional Instructions, Speech quality, Contradictions, and Hallucinations prompt checks.](https://mintcdn.com/dialnexa/uwFfSkWRMGIwjk-N/images/documentation/screenshots/agent-publish-prompt-checks.png?fit=max\&auto=format\&n=uwFfSkWRMGIwjk-N\&q=85\&s=3146d07399bbf33cb258b83317f4edf7)

| Prompt check | What it looks for |
| - | - |
| Instructions | Lines that do not support the objective of the call. For Conversational Flow Agents this is labeled **Instructions & branches** and also checks branch coverage and conditions that could route a reply incorrectly. |
| Speech quality | Spoken wording, pronunciation, and language consistency, including instructions to use an unconfigured language, conflicting language rules, number formats, and welcome-message script mismatches. |
| Contradictions | Rules that cannot both be followed. |
| Hallucinations | Questions or promised facts that the prompt does not provide enough information to answer, and end-call instructions that give the agent no closing line to say. |

For a Conversational Flow Agent, branch findings can identify overlapping conditions that lead to different nodes, conditions unlikely to match natural short answers, or negatively worded yes/no questions. Review the cited conditions, revise their wording, and test the affected paths. A warning describes a possible routing problem, not proof that every call will misroute.

If the deeper model checks cannot run, only the quick checks run. With no findings, the dialog says **Quick checks passed** and explains that only quick checks ran; any findings are marked as coming from quick checks only. Neither is an all-clear result for the model checks. Retry verification or review the prompt manually before publishing.

Your selected checks are remembered in the current browser. If no checks are selected, the main **Publish** action skips review and opens the normal publishing flow.

**1. Complete your changes in draft**

Edit the prompt, stack settings, functions, speech settings, call settings, and post-call analysis fields as needed. Save as you go.

**2. Run a test call**

Before publishing, use **Test via web** to test the open draft and supply any required dynamic variables. **Test via call** uses a published version, so it cannot verify unpublished prompt changes.

**3. Open Publish**

Click **Publish** in the agent builder top bar. Enter a descriptive version title.

**4. Choose optional prompt checks**

Open the arrow beside **Publish**, then select the checks you want to run. Select the checkbox at the top to choose every check.

**5. Review the findings**

Click the main **Publish** action. DialNexa runs the selected checks and shows progress. An all-clear result means the selected checks found no new warnings. A failed review still leaves publishing available.

**6. Handle warnings**

Review each finding. Accept or dismiss findings you have evaluated, or choose **Fix all with the assistant** to send the new warnings to the Agent Builder assistant. Accepted and dismissed findings stay hidden from future reviews of this agent for the workspace team. Language-conflict findings that offer **Remove this line** or **Remove these lines** can delete the exact conflicting prompt sentences before you run the review again. The removal action is for prose prompts; Conversational Flow findings use the flow review and assistant instead.

**7. Publish deliberately**

If warnings remain, click **Continue to publish** only when you understand them. Confirm the version title, then publish. The version is now immutable and appears in version history.

> [!NOTE]
>
> The review checks the draft that is about to go live. Conversational Flow Agent reviews also consider the flow graph. A cached result can return quickly when the prompt, variables, selected checks, and review engine have not changed.

> [!NOTE]
>
> Phone numbers are linked to the agent, not to a version. After you publish, inbound calls and workflow calls on the agent's numbers use the new version. A batch keeps the version it was pinned to when it left draft, so publishing does not change a batch that is already scheduled or running.

> [!WARNING]
>
> While a batch is running on this agent, you can still edit and publish drafts, but changes that would alter what the batch dials with are refused: editing a published version in place (except its title), its functions or pronunciations, and the agent's timezone, pipeline type, webhook, or archaic dictionary. Pause the batch or wait for it to finish first.

## Assigning a Version to a Route

Phone numbers follow the agent's latest published version. Batches and some other routes choose a version explicitly.

| Route type | Where to update the version |
| - | - |
| Inbound phone number | No version to choose. The number answers with the agent's latest published version. Manage numbers from **Phone numbers** in the agent builder or from Phone Numbers. |
| Outbound phone number | No version on the number. Single calls and batches choose the published version; workflow calls use the latest published version. |
| Batch call | Choose the published version while creating or editing a draft. Existing batches keep their pinned version. |
| Workflow | The Call node uses the selected number's outbound agent and its latest published version. |
| Web call | Test the selected draft or published version from the agent editor. |

> [!NOTE]
>
> The Phone Numbers table shows assigned agent context for each number. It does not rename agents or edit published versions from the table row itself.

Check the call record for the version actually used. A batch can intentionally keep an older version after a new publish.

## Rolling Back to an Older Version

If a new published version causes call quality issues, compare it with the last known good version. For inbound and workflow calls, restore the intended settings in the current draft and publish a corrected version. Those routes do not offer an older-version assignment.

**1. Open version history**

In the agent builder, open the version selector or click **Version History** in the agent settings. All published versions are listed with their titles and timestamps.

**2. Identify the last known good version**

Look at the version titles and timestamps. Identify the version that was live before the problematic publish.

**3. Restore the intended behavior**

Review the older version's settings, apply the intended corrections to the current draft, test it, and publish. For a new outbound call or a draft batch, you can instead select an earlier published version explicitly.

**4. Verify**

Place a test call or monitor the next inbound call to confirm behavior has reverted. Open Call History and check that the transcript matches expected behavior.

> [!TIP]
>
> Rolling back does not delete the problematic version. It remains in history and can be inspected to understand what went wrong. Fix the issue in draft and publish a corrected version when ready.

## Version Fields You Will See

| Field | What it shows |
| - | - |
| Version number | Auto-incremented identifier for the version. |
| Version title | The human-readable label you entered at publish time, up to 150 characters. |
| Published timestamp | When the version was published. |
| Live indicator | The latest published version, including version 0 when it is the latest publish. |

## Version Mistakes to Avoid

> [accordion] Publishing without testing
>
> Prompt checks complement test calls. They cannot prove pronunciation, latency, transfers, functions, phone routing, or real caller behavior. Test in draft first, including edge cases and off-script caller behavior.

> [accordion] Using vague version titles
>
> Version titles are your primary debugging tool when something goes wrong in a live call. "Final v2" tells you nothing. "v5 - switched to GPT-4o, added transfer function" tells you exactly what changed.

> [accordion] Publishing before you are ready for live traffic
>
> Publishing switches inbound calls and workflow calls on the agent's numbers to the new version immediately; there is no separate step to move them. Test in draft first. Only batches and calls that chose a version stay on an older one.

> [accordion] Editing a published version
>
> Most controls are locked on a published version. Switch to the draft for ordinary changes, then publish again. Emotion tags can update a published version directly for supported voices, so review that control before changing it on a live agent.

> [accordion] Expecting a running batch to switch versions
>
> A batch stays on the version it was pinned to when it left draft. After a major publish, check scheduled and running batches, and retrigger a batch if it should call with the new version.

> [accordion] Prompt review could not finish
>
> The review service can fail or return a partial result when a model check times out. Publishing remains a user decision. Run your normal draft tests, retry the review later, or continue only after a manual prompt review.

## A Safe Publish Routine

**1. Name the version clearly**

Use a title that tells future users what changed and why.

**2. Run realistic tests in draft**

Test the welcome message, variable rendering, each function call, any transfer behavior, post-call analysis fields, and the end-call path.

**3. Run prompt checks and publish with confirmation**

Choose the relevant prompt checks, review every new warning, and click Publish only when you are confident the draft is correct.

**4. Check routes that keep a version**

Inbound and workflow calls use the new version as soon as you publish. Batches keep the version they were created with: create a new batch, or pick the version on a draft batch, to call with the new one.

**5. Watch the first calls**

Open Call History immediately after routing traffic. Check transcript quality, function call success, post-call field extraction, and call completion status.

## Verify The Published Version

Confirm the version title and number, then test the published version. Place an inbound test call to confirm the numbers answer with it. Check batch campaigns and web-call routes separately, because they do not follow a new publish automatically.

## Recap

A published version is an immutable configuration used by call routes. Test the candidate, publish with a meaningful title, check batches that keep an older version, and verify a real call after publishing.

## Running batches after publishing

After publishing, the dashboard names any running batches that keep their existing version. Publishing a draft updates future inbound and workflow calls, but does not switch an existing batch. Review the batch's pinned version before expecting new prompt or voice settings to apply.

## Related Reading

> [card] [Agent History and Version Review](https://dialnexa.com/docs/agents/history-and-version-review.md)
>
> View and compare historical versions.

> [card] [Phone Numbers](https://dialnexa.com/docs/calls/phone-numbers.md)
>
> Link numbers to the agent for inbound and outbound calls.

> [card] [Dynamic Variables](https://dialnexa.com/docs/agents/dynamic-variables.md)
>
> Understand how variable defaults are captured in published versions.

> [card] [Testing Agents](https://dialnexa.com/docs/agents/testing-agents.md)
>
> Test before publishing to catch issues early.

> [card] [Publishing And Versioning Video](https://dialnexa.com/docs/tutorials/platform-videos/publish-agents-and-manage-versions.md)
>
> Watch how to publish an agent and review versions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.