> ## 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.

# DialNexa Agent Builder

> Use DialNexa Agent Builder to create a voice AI agent, edit it with natural language, inspect workspace facts, and approve supported actions.

DialNexa Agent Builder turns a structured business brief into a draft Single Prompt, Conversational Flow, Speech to Speech, or IVR Agent. You can accept the suggested type or choose another before building. After creation, **Chat With DialNexa** can run inside the agent editor or as a workspace assistant from the dashboard. It can explain an agent, propose prompt and configuration changes, inspect supported workspace data, and prepare selected workspace actions for explicit approval.

![DialNexa Choose a Build Path dialog with the Proceed to Agent Builder and Manual Build options and their step lists.](https://mintcdn.com/dialnexa/bWDU08GxZKxX_XVj/images/documentation/screenshots/create-agent-build-path.png?fit=max\&auto=format\&n=bWDU08GxZKxX_XVj\&q=85\&s=eee371f2c40e760f3aa7d5115eff12c7)

## Before You Begin

Choose one call objective, the target caller, the information the agent must collect, the allowed outcome, and the situations that require a human.

## DialNexa Agent Builder Workflow

Use Agent Builder when you want a first draft faster than writing the agent from a blank page. Choose **Proceed to Agent Builder** from **Create agent**, then complete Goal & Context, Call Playbook, and Personality. Choose **Manual Build** when you want to start with a template or blank configuration.

> [!NOTE]
>
> Agent Builder creates a draft. Review the prompt, variables, voice stack, and post-call fields before publishing or assigning the agent to live traffic.

## When To Use Agent Builder

| Use it for | Start manually instead when |
| - | - |
| A booking, qualification, support, or keypad-routing draft based on a clear brief. | You already have a reviewed flow graph or IVR menu to import. |
| Creating a strong first draft from business context and goals. | You already have a reviewed production prompt that only needs a small edit. |
| Discovering which variables and post-call fields the agent should use. | You need custom API functions or compliance wording that must be authored exactly. |
| Teams that want guided questions instead of a blank prompt editor. | You are importing an agent JSON or copying a known template. |

## What The Builder Asks For

The builder uses three intake sections.

| Section | Fields |
| - | - |
| Goal & Context | Agent Name, Gender, Timezone, Language, Company & what you offer, and Goal Description. |
| Call Playbook | Success criteria, information to collect, and objections or FAQs drafted from your brief. Review and edit each field. |
| Personality | Agent tone, additional context, and a suggested agent type that you can override. Tone is not required for IVR. |

After the first section, DialNexa can draft success criteria, information to collect, and objections from the company, caller, and goal. After the second section, it can draft the agent tone from the objectives you have accepted or edited.

![DialNexa Agent Builder Goal and Context step with agent name, gender, timezone, language, company brief, and goal description fields.](https://mintcdn.com/dialnexa/bWDU08GxZKxX_XVj/images/documentation/screenshots/agent-builder-goal-context.png?fit=max\&auto=format\&n=bWDU08GxZKxX_XVj\&q=85\&s=bd6f05e73bc1f6eac5ffd0eed67a9c0b)

![DialNexa Agent Builder call objectives step asking for success criteria, information to collect, and objections to handle.](https://mintcdn.com/dialnexa/oKDmAsu_wsBWcBK4/images/documentation/screenshots/agent-builder-objectives-step.png?fit=max\&auto=format\&n=oKDmAsu_wsBWcBK4\&q=85\&s=9cee33cbbb33b98a0765fa06755b79ac)

![DialNexa Agent Builder personality step asking how the agent should sound plus optional additional context.](https://mintcdn.com/dialnexa/oKDmAsu_wsBWcBK4/images/documentation/screenshots/agent-builder-personality-step.png?fit=max\&auto=format\&n=oKDmAsu_wsBWcBK4\&q=85\&s=ab987373f280d29e258f65a7f0c954e5)

## Reuse Saved Businesses In Agent Builder

When your workspace has saved business context, the **Goal & Context** step offers **Saved Businesses** beside **Company & what you offer**. Open the picker and select the business this agent serves. Review the populated business details before continuing; saved context is not applied automatically to every new agent.

![Agent Builder Goal and Context step with Saved Businesses open and the option to start from scratch.](https://mintcdn.com/dialnexa/990Wo4Cns7JmoNNc/images/documentation/screenshots/agent-builder-saved-businesses.png?fit=max\&auto=format\&n=990Wo4Cns7JmoNNc\&q=85\&s=6f8ebf8b6370351e448bf9e7c58c53d5)

Choose **A Different Business, Start From Scratch** when the saved business does not match this agent. Enter the company and offering for the new business rather than adapting unrelated facts.

## Choose The Suggested Agent Type

On the Personality step, review the suggested type and select another card if it better fits the call. A recommendation does not create or publish an agent. Use Single Prompt for one instruction set, Conversational Flow for explicit branches, Speech to Speech for realtime conversation, and IVR for keypad routing.

Manual Build also offers a description-based recommendation on the type screen. It can ask one clarifying question or suggest an IVR menu followed by a conversational agent. A combined recommendation requires configuring both agents and their handoff; it does not automatically connect two agents.

## Build Phases

When you click **Create Agent** on the Personality step, the builder streams progress through three phases.

| Phase | What happens |
| - | - |
| Building your agent | DialNexa reads the brief, extracts the agent role, call goal, variables, guardrails, and likely caller context. |
| Running validations | DialNexa checks whether the brief has enough detail and composes the prompt, welcome message, post-call fields, and technical profile. |
| Running simulations | DialNexa tests likely conversations, scores quality, and decides whether the draft is ready, needs clarification, or needs human review. |

![DialNexa Agent Builder streaming the build phase after the structured brief is submitted.](https://mintcdn.com/dialnexa/oKDmAsu_wsBWcBK4/images/documentation/screenshots/agent-builder-building-stream.png?fit=max\&auto=format\&n=oKDmAsu_wsBWcBK4\&q=85\&s=1e23369d87a446e7cd89b431ef1a3755)

The first build attempt can ask up to five clarification questions. Answer every question, then rebuild. The second attempt uses those answers and skips the same first-pass validation loop.

## Review The Draft Before Creating

The result screen can show quality scores, issues, suggested fixes, dynamic variables, and default values. Review these before creating the agent.

![DialNexa Agent Builder review screen showing quality evaluation scores, generated prompt preview, and the Create agent action.](https://mintcdn.com/dialnexa/oKDmAsu_wsBWcBK4/images/documentation/screenshots/agent-builder-review-draft.png?fit=max\&auto=format\&n=oKDmAsu_wsBWcBK4\&q=85\&s=59b3b24ea6aaadf88b25e6017918b1d7)

**1. Check the quality summary**

Read the builder's summary and any prompt, post-call analysis, or technical fit issues.

**2. Review dynamic variables**

Fill safe default values for each detected variable. Leave values blank only when the value will always be injected by API, batch CSV, workflow lead data, or test call input.

**3. Create the draft agent**

Click **Create agent** only after the draft looks usable. DialNexa creates a draft using the selected agent type and supported settings. For Conversational Flow, inspect the generated graph and each node. For IVR, inspect menu keys and handoff targets. For Speech to Speech, review the realtime model and voice.

**4. Test and publish**

Place test calls, edit the draft where needed, then publish a version before using it in phone numbers, batch calls, workflows, web calls, or API calls.

## What Agent Builder Creates

| Output | How to review it |
| - | - |
| Prompt and system prompt | Read the full behavior, call flow, guardrails, FAQs, objections, and closing rules. |
| Welcome message | Test the first spoken line through the same route callers will use. |
| Post-call fields | Confirm each field is useful, named clearly, and safe to store. |
| Dynamic variables | Set fallback defaults or make sure upstream data will provide values every time. |
| Technical profile | Check selected language, model, voice, voice model, transcriber, fallback STT, fallback LLM, Audio Cache, denoising mode, and max call duration. |

## Editing An Existing Agent With AI

After an agent exists, the agent editor can show a DialNexa AI modifier for natural-language changes on Single Prompt Agents. This modifier lives inside the agent editor page. It is separate from the guided Agent Builder create flow described earlier on this page.

Use it for focused prompt edits, configuration updates, and optimization suggestions such as tightening an opening line, adding a qualification question, changing tone, adjusting a supported setting, or improving a known issue from testing. When recent call evidence is available, the empty-state suggestions can include prompts based on patterns from that agent's calls.

![DialNexa agent editor AI modifier showing a latency question, diagnostic answer, and natural-language composer.](https://mintcdn.com/dialnexa/j4YElRgYrHSfuXTP/images/documentation/screenshots/agent-editor-ai-modifier.png?fit=max\&auto=format\&n=j4YElRgYrHSfuXTP\&q=85\&s=673efdca67440200b6fd0fe1cba17b86)

| Control | Behavior |
| - | - |
| Edit instruction | Describe the change in plain language. Keep each request short and focused. |
| Suggested chips | Starts with static examples. When DialNexa has enough recent call evidence, chips can point to recurring unanswered questions, mishandled objections, language mismatch, latency, or provider errors for that agent. |
| Activity feed | During an AI edit, the modifier can show short progress lines such as reading recent calls or reviewing settings, then collapse them under the completed reply. |
| Prompt proposal | The modifier can produce a diff with added and removed prompt text. Accepting the proposal applies the draft prompt change; rejecting it restores the prior prompt. |
| Config change proposal | The modifier can propose supported agent configuration changes. Apply only after checking the affected setting, such as language, LLM settings, speech settings, call settings, post-call analysis, or knowledge base attachments. |
| Optimization proposal | The modifier can suggest improvement levers. You can approve or dismiss suggestions, and approved levers may create follow-up prompt proposals that still need review. |
| Prompt safety notices | Prompt proposals can flag conflicts with the system prompt or wording that may encourage invented information. These notices do not apply the proposal automatically. |
| Prompt review handoff | The Publish dialog can send all new prompt-review warnings to the editor through **Fix all with the assistant**. The assistant receives a prepared instruction, but every proposed prompt or setting change still requires your review. |
| Workspace questions | Ask about campaigns, call records, billing and balance, phone numbers, knowledge bases, workflows, dashboard metrics, or other agents. The assistant reads current workspace data before answering. |
| Action approval card | A supported workspace action appears as a separate card with its code-owned title, consequence, target details, and impact color. The action does not run until you click **Run**, **Approve & run**, or **Confirm & run**. Click **Dismiss** to leave workspace state unchanged. |
| Pending review lock | When a prompt or configuration proposal is waiting for a decision, the composer stays locked until you accept, apply, reject, or dismiss the proposal. |
| Chat history | Previous sessions can be reopened. Session cards can show the latest message, proposal status, touched area, agent version, and last update time. |
| Edit a sent message | Hover over a message you sent and choose edit to copy its text into the composer. Sending it creates a new turn and preserves the original message. |
| Retry a sent message | Hover over a message you sent and choose retry to send the same text as a new turn. Retry is unavailable while another proposal needs a decision. |
| Message feedback | Mark an assistant response helpful or not helpful. A negative vote can include a short reason such as incorrect numbers or a missed question. |

> [!WARNING]
>
> AI edits change draft agent behavior only after you approve them. Review every diff or setting proposal, run a test call, and publish a new version before routing production traffic to the edited behavior.

Config proposals can cover LLM fallback, predictive preprocessing, transcriber choices, Boosted Keywords, Audio Cache, denoising, timezone, voice choices, post-call fields, and knowledge base attach or detach requests. Unsupported or unsafe changes stay unresolved for manual review. Predictive preprocessing and Audio Cache are on by default. A proposal can turn either back on, but only DialNexa can turn them off, so contact DialNexa for that.

## Assistant Memory And Proposal Decisions

The assistant can retrieve confirmed business facts, earlier assistant-conversation recaps, and accepted or rejected agent proposals. Ask a focused question such as "What did we decide about the welcome message on Support Agent?" Include the agent or business name when your workspace serves more than one business.

Memory describes editing history and business context, not call transcripts. Check current agent settings and call records before relying on an older decision. A saved fact for one business should not be applied to an agent for another business.

After rejecting an agent-edit proposal, you can save an optional reason. Explain the constraint, such as "Keep this question because it is required for appointment booking," so later suggestions have that context. A rejection reason does not apply the rejected change.

## Workspace Questions And Approved Actions

Use the workspace assistant from the dashboard when you want operational context without opening a specific agent. The same workspace lane is available inside the agent editor for questions that reach beyond the current prompt or settings. It can read supported data for the active workspace and answer with current names, IDs, statuses, counts, billing limits, wallet balance, call details, retry chains, transfers, dependencies, and webhook configuration. If the requested information is unavailable, it should say so instead of filling the gap.

The assistant prepares one reviewable action card at a time. Card wording and displayed argument rows come from DialNexa's action registry, not free-form model text. Reversible actions use **Run**, actions that spend wallet balance use **Approve & run**, and destructive actions use **Confirm & run** with an irreversible warning where applicable.

| Action area | Supported approved actions |
| - | - |
| Campaigns and calls | Start a small reviewed batch, pause, resume, cancel, or delete a campaign, place one outbound call, or redact a call's recording and transcript. |
| Agents and folders | Create or duplicate a draft agent, delete an agent, create, rename, or delete a folder, move an agent, or open the correct agent editor for a prompt or setting change. |
| Knowledge bases | Create or rename an empty knowledge base, or delete a knowledge base and its documents. Document uploads still happen in the dashboard. |
| Phone numbers | Purchase a number, connect a SIP trunk, or release a number after reviewing the cost, route, and active-workflow impact. |
| Workflows | Create a workflow, change its status, add or update nodes, connect or remove edges, delete nodes, or remove a lead. |
| Integrations | Disconnect a connected integration or request access to an integration. |

An approved card can show a concise saved result and a follow-up button, such as **Go to the agent**, after successful execution. A failed card shows the operation error and does not prove that the requested state was saved.

**1. Ask for the workspace fact or action**

Name the campaign, batch, call, agent, phone number, workflow, or other resource as clearly as possible.

**2. Review the answer and target**

Confirm that the returned resource name and prefixed ID belong to the intended workspace.

**3. Approve only the exact action**

Check every displayed ID, name, version, phone number, schedule, amount, and consequence. Use the action button only when the card matches the request. Destructive and billable cards use stronger labels and colors.

**4. Verify the result**

Read the result shown on the card, follow any resource link, and confirm the saved state on the relevant dashboard page. After a failed or timed-out card, read the current resource before retrying.

Large campaign uploads, knowledge base document uploads, direct prompt diffs from workspace mode, and unsupported resources still use the relevant dashboard page. Workspace mode can route a prompt or setting request into the named agent's editor, where the normal proposal review controls are available.

## Common Mistakes

> [accordion] Submitting vague business context
>
> The builder needs the company, caller, and outcome to be concrete. "Handle support calls" is weaker than "triage dental appointment questions, collect patient name and preferred slot, and book a callback when insurance details are unclear."

> [accordion] Accepting generated objectives without editing
>
> Treat generated objectives as a draft. Remove goals the agent should not pursue and add required handoff or escalation rules.

> [accordion] Creating before checking variables
>
> Variables with empty defaults can make the agent sound incomplete if runtime data is missing. Review every detected variable before test calls.

> [accordion] Skipping real test calls
>
> Builder simulations do not replace phone or web call tests. Always test with names, numbers, objections, interruptions, and the route you plan to use.

> [accordion] Publishing an AI-edited agent without reviewing proposals
>
> Treat AI proposals as drafts. Review highlighted prompt changes, check configuration changes, confirm variables and post-call fields that depend on the prompt, then test before publishing.

## Verify The Generated Agent

Review every generated field before creating the agent. After creation, publish a test version and confirm the prompt, welcome message, variables, post-call fields, provider stack, and Call History evidence.

## Recap

Use Agent Builder for a structured first draft, not an automatic production release. Define one objective, review every generated field, publish a test version, and validate the conversation in Call History.

## Navigate The Agent Builder Steps

The build flow names the current step and the next destination. Use **Back** to revisit the previous screen. When the next action is unavailable, read the missing-field message beside it and complete that field. The manual path separates **Agent type**, **Template**, and **Editor**; selecting a path does not publish the resulting agent.

## Write A Longer Edit Instruction

The agent editor assistant and workspace assistant composer accept up to `2,500` characters per instruction. Keep the requested changes specific, review the proposed result, and apply only the parts you intend to save.

## Related Reading

> [card] [Types Of Agents](https://dialnexa.com/docs/agents/types-of-agents.md)
>
> Confirm when Agent Builder is the right start path.

> [card] [Single Prompt Agents](https://dialnexa.com/docs/agents/single-prompt-agents.md)
>
> Learn when one prompt is the right structure.

> [card] [Dynamic Variables](https://dialnexa.com/docs/agents/dynamic-variables.md)
>
> Set safe defaults for placeholders.

> [card] [Testing Agents](https://dialnexa.com/docs/agents/testing-agents.md)
>
> Verify the generated draft before publishing.


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