Docs/Guides

Setup and configuration

Where each setting lives, how a change reaches a running agent, and what to do on the server when you run the voice gateway yourself.

Where settings live

A voice agent reads its settings from four places. Each one has a single job, and each one picks up changes in its own way.

PlaceWhat lives thereWhen a change applies
DashboardGreeting, outbound greeting, voice, language, call mode, owner phone, call direction, model, temperature, recording and transcripts, compliance notice, team email, pronunciation, blocked numbers, scripts and the router, Marketplace apps.Within about five minutes, on the next call. No restart.
Workspace filesWho the agent is (SOUL.md, IDENTITY.md, USER.md, MEMORY.md), the voice playbook, always-loaded facts and the searchable knowledge base.Read fresh at the start of every call. No restart.
config.json on the gateway hostWhich workspace files load, gateway feature switches, audio tuning, call limits.When the service restarts.
.env on the gateway hostDeployment credentials and connection details written by the installer.Never edited by hand. Re-run the installer instead.

If our team runs your agent, the server side is ours: you work in the dashboard, and we change workspace files and config.json with you. The rest of this guide is for teams that run the gateway on a machine they control.

Dashboard settings

Open your agent in the voice portal and go to Settings. The Configuration section holds the settings most teams change:

  • Greeting: the first thing inbound callers hear. The agent says it exactly as written, so write it the way you want it spoken. Keep it under 300 characters: the agent speaks only the first 300, and double quotes are removed.
  • Outbound greeting: the opening line when the agent places a call. Up to 500 characters. It can use placeholders such as {{name}} for the person being called and {{amount_due}} for any fact sent with the call. If a placeholder has no value on a call, the agent uses its default opening instead of speaking a half-filled line.
  • Voice and Language: see Languages.
  • Call mode and Your phone number: public answers anyone and treats every caller as a member of the public. Private answers only the phone number you enter, and that caller gets full owner access; every other number is rejected, and so is every call if no number is set.
  • Call direction: inbound and outbound (default), inbound only, or outbound only.
  • Model and Temperature, under Advanced.

The same page holds the recording and transcript switches. They are separate: you can keep transcripts without keeping audio.

Good to knowThe running gateway checks the dashboard for changes about every five minutes. Save, wait a few minutes, then place a test call. You do not need to restart anything for these settings.

Install the gateway on your own server

The gateway connects phone calls to the voice model and to your agent's workspace. It runs on the same machine as your OpenClaw agent and opens no inbound ports: it reaches out through an encrypted tunnel.

  1. Generate an install token in Settings, Installation. The token is valid for 15 minutes.
  2. Run the install command on the machine where your agent runs (Linux on x86_64 or arm64, or macOS):
    curl -sSL https://api.talktomyagent.io/install.sh | bash -s -- --token <YOUR_TOKEN> --accept-license
  3. Wait for the check marks. The installer downloads the gateway, sets up the tunnel, writes .env and config.json, seeds the voice playbook if you do not have one, and starts the service.
  4. Place a test call to your agent's number.

On a machine with several agents, the installer asks which one to connect. Pass --agent <id> to choose without the menu.

On a MacThe agent answers only while the Mac is awake and logged in. On a laptop, turn on "Prevent automatic sleeping on power adapter when the display is off" in System Settings, Battery, Options.

What is on disk afterwards

~/ninja-talk/                  install directory (main agent)
  config.json                  operator settings (this guide)
  CONFIG-REFERENCE.md          field reference written by the installer
  .env                         credentials, written by the installer
  start.sh                     what the service runs
  sync-config.sh               pulls dashboard settings into config.json

~/.openclaw/workspace/         the agent's workspace
  SOUL.md  IDENTITY.md  USER.md  MEMORY.md
  protocols/dojo-voice-agent-playbook.md
  data/voice-context-sources.json
  memory/kb/

Re-running the installer with a fresh token is safe. It refreshes the binary and the dashboard-managed fields, and keeps your audio, context and features sections as you left them. It never overwrites an existing playbook.

config.json

A fresh install writes a file like this:

{
  "callMode": "public",
  "ownerPhone": null,
  "greetingPrompt": null,
  "voice": "Kore",
  "language": "en-US",
  "recordingEnabled": true,
  "maxCalls": 2,
  "callTimeoutMinutes": 60,
  "idleTimeoutSeconds": 120,
  "schemaVersion": 1,
  "audio":    { ... },
  "context":  { "files": ["SOUL.md", "IDENTITY.md", "USER.md"], "voicePlaybook": null },
  "features": { ... }
}

The file has two kinds of fields, and they follow different rules.

  • Top-level fields such as callMode, voice and greetingPrompt are the values the gateway starts with. The dashboard overrides them on the running agent, and ninja-talk sync writes the dashboard values back into the file. Edit these in the dashboard, not here.
  • The nested sections audio, context and features are local only. The dashboard never sends them and a sync never touches them.

maxCalls, callTimeoutMinutes and idleTimeoutSeconds are local in practice: the dashboard does not send them, so a sync keeps what is in the file.

context: what loads into every call

context.files lists the workspace files placed in the agent's instructions on each call. New installs load SOUL.md, IDENTITY.md and USER.md. Add MEMORY.md if the agent should carry its long-term memory onto calls. USER.md is used only on the owner's calls and calls the agent places, never on public calls.

"context": {
  "files": ["SOUL.md", "IDENTITY.md", "USER.md", "MEMORY.md", "brand-tone.md"],
  "voicePlaybook": null
}

Any other entry must be a .md file inside the workspace, up to 10 KB, and not a symlink. Anything else is skipped and logged. voicePlaybook points at a different playbook file; see Playbooks.

features: gateway switches

FieldDefaultWhat it does
crmCapturetrueCaller memory: look up the caller by number at the start of the call and save what they share. See CRM and caller memory.
kbSearchtrueOffers the kb_search tool so the agent can search your knowledge base.
kbVectortrueAdds meaning-based search to keyword search. Set false to use keywords only.
openclawQuerytrueLets the agent hand a request to your OpenClaw agent during owner calls and calls it places. Never offered to public callers. Set false for information-only lines.
openclawStreamfalseStreams those answers back. No effect when openclawQuery is off.
requireCloudPromptstrueRefuses calls if the gateway could not load its platform instructions. Keep it on.
aniRateLimitPerHour20Calls accepted from one number per window, a toll-fraud guard.
aniRateLimitWindowMs3600000Length of that window (one hour).

audio: line tuning

The audio section shapes how the model's voice is prepared for the phone line: gain, fades, echo gating and the opening silence. The defaults are tuned across the whole fleet and checked against recorded calls. Leave them alone unless our team asks you to change one for a specific line.

Apply a change

The installer adds a ninja-talk command for the service:

ninja-talk config      # open config.json in your editor
ninja-talk restart     # restart so config.json changes take effect
ninja-talk logs -f     # follow the service log
ninja-talk sync        # pull dashboard settings into config.json, then restart
ninja-talk doctor      # quick health check
ninja-talk update      # install the latest gateway (playbook, config and workspace untouched)
ninja-talk rollback    # go back to the binary before the last update

Every sync saves the previous file as config.json.bak, so a bad value is one copy away from undone.

To confirm what the agent loaded, place a call and look for the line the gateway writes when it builds the call's instructions:

[ninja-talk:context] System instruction built {"mode":"public","totalBytes":21844,
  "agentName":"Alex","hasMemory":false,"hasPlaybook":true,"hasStaticSources":true,
  ...,"truncated":false,"stubMode":false,...}

hasPlaybook: false means the playbook was not found or was rejected. truncated: true means the instructions ran over budget and something was trimmed; see Playbooks.

Which value wins

  1. For the audio, context and features sections only: a NINJA_TALK_* environment variable set on the service. This is an emergency override and almost never needed. Top-level fields always come from the file.
  2. The value in config.json.
  3. The default compiled into the gateway.

For the dashboard-managed settings, the dashboard value replaces the start-up value as soon as the gateway has fetched it.

When something does not change

  • Edited config.json, nothing happened. Restart the service. Then check the file parses: jq . ~/ninja-talk/config.json. A file that does not parse stops the service from starting.
  • Changed a dashboard setting, the old one is still used. Wait five minutes and call again. If it still has not changed, run ninja-talk doctor (service, port, workspace files and tunnel) and check the log for errors fetching the configuration.
  • A value seems ignored. Look for a stray NINJA_TALK_* override in the service environment, and make sure numbers are within range: an out-of-range value falls back to the default.
  • A credential looks wrong. Generate a fresh token and re-run the installer. Never edit .env by hand.

More in Troubleshooting.

Which call should your agent take first?

Tell us which requests your team handles most often. We'll suggest a practical place to start.

Tell us about your calls