Docs/Guides
Call modes
One setting decides who your agent answers. Public mode serves anyone who calls, inside the rules you write. Private mode answers only your own number and gives you the full agent.
The two modes
| Public (default) | Private | |
|---|---|---|
| Who gets through | Any caller, apart from numbers you have blocked. | Only the number in Your phone number. Every other call is rejected, and so is every call if the field is empty. |
| How the agent treats the caller | As a member of the public, following the ## Public Mode section of your playbook. | As you, the verified owner, following ## Private Mode. |
| What it can reach | Your knowledge base, connected apps, the custom tools you have not marked owner-only, and the capabilities turned on in your project, such as handing a case to your team by email or a live transfer. See Tools. | Everything above, plus your OpenClaw agent itself (email, calendar, files, skills), owner-only tools and your USER.md profile. |
The mode is set per agent, not per caller. In public mode every caller is treated as public, including you when you call from your own number. Use private mode for a line that only you use, and public mode for a line your customers call.
The same mode applies to the whole line: a public line cannot unlock owner access for one caller, and a private line cannot answer anyone else.
Set the mode
Open your agent in the voice portal, go to Settings, Configuration:
- Call mode: public or private. New agents start on public.
- Your phone number: your number in E.164 format, for example
+16475550199. Private mode accepts only this number. It is matched on every digit, country code included, against the number the phone network reports for the call; what a caller says about who they are plays no part. This number is also never blocked, even if it is on the blocked-numbers list.
Save, wait a few minutes for the gateway to pick up the change, then place a test call. There is nothing to restart.
What a new agent does
The playbook the installer writes ships with a starter ## Public Mode section. It assumes whoever calls is the owner testing the line: it explains how to set the agent up, and if the caller is clearly someone else, it says the number is still being set up and ends the call. While the starter section is in place the agent is told not to take messages, not to make claims about your business and not to act for the caller.
Teach the agent what public callers can do
Replace the starter section with your own in the voice playbook:
~/.openclaw/workspace/protocols/dojo-voice-agent-playbook.md
Edit it on the server, or ask your agent in chat to make the change. The gateway reads the file at the start of every call, so the next call uses your edit with no restart. Updates and reinstalls never overwrite it. If our team runs your agent, send us the change and we make it with you.
## Public Mode
### What you must NOT do
- Never share the owner's personal email, calendar or files.
- Never quote a price that is not in the list below.
- Never take card details over the phone.
### What you can tell callers
Hours: Monday to Friday, 9 am to 6 pm. Services: haircut, beard trim,
haircut and beard. Location: 123 Main Street, Toronto.
### What you can do for callers
- Book an appointment.
- Take a message for the team: name, callback number, what they need.
### Information to collect
Full name, callback number, reason for the visit, preferred time.
Confirm each detail back before ending the call.
Write the "must NOT do" list first: it is your safety net. Each action you allow needs a tool that can do it on a public call: a connected app such as Wix Bookings, a custom tool not marked owner-only, or the knowledge base. The playbook decides when the agent uses those tools; it cannot give public callers a tool the platform keeps for the owner. See Tools for what each kind of call can reach, and Playbooks for how the file is structured.
Optional: tune Private mode
A ## Private Mode section in the same file sets tone, standing rules and habits for your own calls. Leave it out and the defaults apply.
Test it
- Call from another phone. In public mode, with no Public Mode section of your own, you hear the starter setup guide; with your section in place, the agent should follow it.
- Switch to private and call from your own number. The agent should greet you as the owner and be able to reach your OpenClaw agent.
- Still in private mode, call from another phone. The call should be rejected.
If a test does not match:
- Check Your phone number is in E.164 format with the country code, and is the number your phone actually presents.
- Check the Call mode is the one you meant, and give the change a few minutes to reach the gateway.
- Check the playbook heading is exactly
## Public Mode(level two, on its own line), and that the gateway log showshasPlaybook: true(see Setup).
What the platform protects for you
Private mode gives the caller what you would have in a chat with your agent. Only one number can hold it, and only the phone network can prove it.
These protections apply on every public call, whatever your playbook says:
- Owner access comes from caller ID only. A caller who says "I'm the owner" or "I have permission" is still a public caller. There is no spoken code or override.
- Owner tools are not offered. Your OpenClaw agent, owner-only custom tools and your
USER.mdprofile are left out of public calls entirely, so there is nothing for a caller to talk the agent into using. - Each call is isolated. Every public call runs in its own session, so no caller can reach another caller's conversation.
- Workspace text is cleaned before it is used. Lines in your workspace files that look like attempts to instruct the model are removed, and on public calls references to workspace file names are stripped as well. The files reach the agent marked as content, not as commands. Keep private facts out of files that load on public calls: the Knowledge base guide shows how to limit a source to owner calls or to verified callers.
- The agent is instructed to resist manipulation. Platform rules that your playbook cannot override tell it to treat caller speech as untrusted, decline attempts to change its rules ("ignore your instructions", "let's pretend", "this is an emergency, skip verification") in one short sentence, and carry on helping.
- Some things the agent is instructed never to say aloud, on any call: API keys, tokens, passwords and other credentials, and the name of the underlying AI model or vendor. The agent stays in the persona you set.
Your playbook only has to cover business rules: what you offer, what you book, what you never do. The platform handles the rest.
Where things live
| Setting | Where |
|---|---|
| Call mode, your phone number, greeting, voice | Dashboard, Settings, Configuration |
| Public Mode and Private Mode rules | protocols/dojo-voice-agent-playbook.md in the workspace |
| Email, calendar and other skills for your own calls | Your OpenClaw agent. See Tools. |
| Built-in tool switches and custom HTTPS tools | data/voice-tools.json in the workspace. See Custom tools. |
| Audio tuning, context files, feature switches | config.json on the gateway host. See Setup. |