# Build and publish a voice agent Start a voice agent from a ready-made template, or from a sentence that says what it should do. Then tune its script, the details it collects and its calling rules, and publish it. Publishing makes the agent ready for calls. It does not place a call by itself. _Takes about 15 minutes for a first agent._ ## Before you start > **Before you start** > > Open Wani and go to Voice agents. The greeting asks for your business name, and the Business Profile fills it in for you, so it helps to have your business details saved before you start. You will also need the voice engine and phone line set up for your workspace before any call can ring. The guides for those are linked at the end of this page. > > [Open Voice agents](/wani) > **Publishing does not place a call** > > A published agent is ready to be used. Whether a call actually rings depends on the phone line and the voice engine set up for your workspace. Every call still passes the consent, do-not-call and calling-window checks described in What each compliance gate means. ## 1. Open Voice agents In the left menu, choose Voice agents. A new workspace sees a setup checklist and a box that asks what the voice agent should do. A workspace that already has agents sees its agents first, with a View all link when there are more agents than fit on the page. The New voice agent button at the top of the page takes you to the box.  ## 2. Pick a starting point Under Starting points you will find ready-made templates for four kinds of call: Collections, Reminder, Recovery and Lead qualification. Use the category buttons to narrow the list, then press Use template on the one that fits your call. Some templates ask for your business name. The agent is saved as a draft, which means it is not live yet. You can also describe the agent in your own words in the box at the top of the page. Wani drafts an agent from your description and shows the draft to you before anything is saved. Describing an agent needs the AI writing service to be available for your workspace. The templates do not need it. ## 3. Review a drafted agent If you described the agent, a review screen shows the draft before it is created. Read the steps, the details it will collect and the greeting. If Wani could not use something you asked for, the review lists it under Left out, so this draft cannot be created as it stands. A missing value comes back as a question for you to answer, not as a value Wani makes up. Press Create this agent to save the draft. Press Discard draft to throw it away. Nothing is created until you press Create this agent. ## 4. Tune the script in the editor The agent opens in the editor, which has five tabs. Script holds the greeting and the instructions for the agent. Details to collect lists the information the agent asks the caller for. Steps & actions shows the steps of the call and what the agent may do, such as recording that a caller does not want more calls, or finishing the call. Calling rules sets when a call stops. Test runs the agent against a sample caller. Every agent has two fixed parts: an AI disclosure at the start of the call, and a step that records a request to speak to a person. You can change the wording of these, but you cannot remove them. A caller who asks for a person is told that someone will follow up, and the request is passed to your team. > **Wording can change, the two fixed steps cannot** > > The AI disclosure and the request-for-a-person step are added back every time the script is saved, even if a template left them out. ## 5. Set the calling rules The Calling rules tab sets when a call stops, whichever comes first, even in the middle of the script. Silence that ends the call can be set from 2 to 30 seconds. The longest call can be set from 1 to 30 minutes. The most back-and-forths can be set from 1 to 60. The longest-call setting also decides how many credits a call reserves when it starts. Wani holds credits for up to that length and settles the real charge when the call ends, so a shorter limit keeps the hold smaller. ## 6. Recording and the notice the caller hears Recording is on by default for new agents. At the start of a call the caller hears: “This call is being recorded for quality and training.” The audio itself is kept only after a recording-consent event is logged for that call, and only when recording storage is set up. The Record calls switch in the agent editor shows the agent's setting; it cannot be changed there. Call-purpose consent alone does not authorize storing audio. ## 7. Save, then publish Save & publish saves the current draft and publishes it as the version used on calls. Save without publishing keeps the agent unpublished. Editing an already published agent immediately changes its status back to Draft and takes it out of call routing; the previously published version is not kept active. Publish again after saving when the revised agent is ready for calls. Test agent uses the saved draft, so save before you test. Publishing makes the saved version available; it does not place a call by itself. > **Test before you publish** > > Use Test agent to try the script with a sample caller first. The Test your agent guide explains each kind of test. ## 8. What you will see The agent appears in the Voice agents list with a status pill. A saved agent that has not been published shows Draft. After publishing, the card shows Published and a Call button appears on the card. The Call button opens the call panel at the bottom of the editor, where you can call one number from that agent. Once calls have been placed, they appear in Call logs under Monitor. ## 9. If something goes wrong If a draft is refused, the review screen says what was left out and why, and nothing is created until the problem is fixed. If the editor shows Unsaved changes, a test call or a publish uses the last saved version, so save first and then try again. If you have published an agent and no call rings, that is expected until a phone line and a voice engine are set up. Check the Phone numbers page and the carrier and voice engine guides linked below. ## 10. Questions people ask Does publishing start calling my customers? No. Publishing makes the agent ready. Calls go out only when you launch a campaign, queue a call yourself, or deploy an agent to a phone number, and each call passes the compliance checks first. Do I have to write the AI disclosure myself? No. Every agent includes the AI disclosure and the request-for-a-person step, whether or not the template lists them. You can change the wording but not remove them. What is the difference between a template and describing an agent? A template is ready-made for one kind of call, and you adjust it. Describing an agent creates a draft from your own words, which you review before it is saved. Can I edit an agent after it is live? Yes. An edit immediately returns a published agent to Draft, so it is taken out of call routing until you publish again. The editor shows when the saved draft is not published. Save and publish again when the revision is ready for calls. Why does the test say that no credits were reserved? That means the voice engine for the platform is not switched on, so the test did not start. Nothing was reserved, so there is nothing to refund. Why does the box say the AI writing service is needed? Describing an agent uses the AI writing service. Templates and the review checks do not, so use a template if the service is not available for your workspace. ## After connecting - Test the agent with Test agent before you publish it. - Publish the agent when the script is right, then give it a phone number under Phone numbers. ## Next - [Wani quick start](/docs/wani/guides/quick-start) - [Recording calls and consent](/docs/wani/guides/record-the-call-and-consent) - [Make a direct call](/docs/wani/guides/make-a-direct-call) - [Phone numbers](/wani/phone-numbers) --- Status: reviewed · reviewed by codex Author: claude-haiku-5-5