Install
openclaw plugins install @openclaw/voice-callOpenClaw voice-call plugin for Twilio, Telnyx, and Plivo phone calls.
openclaw plugins install @openclaw/voice-callOfficial Voice Call plugin for OpenClaw.
Providers:
Docs: https://docs.openclaw.ai/plugins/voice-call
Plugin system: https://docs.openclaw.ai/tools/plugin
openclaw plugins install @openclaw/voice-call
Restart the Gateway afterwards.
PLUGIN_HOME=~/.openclaw/extensions
mkdir -p "$PLUGIN_HOME"
cp -R <local-plugin-checkout> "$PLUGIN_HOME/voice-call"
cd "$PLUGIN_HOME/voice-call" && pnpm install
Put under plugins.entries.voice-call.config:
{
provider: "twilio", // or "telnyx" | "plivo" | "mock"
fromNumber: "+15550001234",
toNumber: "+15550005678",
sessionScope: "per-phone", // or "per-call" | "main"
twilio: {
accountSid: "ACxxxxxxxx",
authToken: "your_token",
},
telnyx: {
apiKey: "KEYxxxx",
connectionId: "CONNxxxx",
// Telnyx webhook public key from the Telnyx Mission Control Portal
// (Base64 string; can also be set via TELNYX_PUBLIC_KEY).
publicKey: "...",
},
plivo: {
authId: "MAxxxxxxxxxxxxxxxxxxxx",
authToken: "your_token",
},
// Webhook server
serve: {
port: 3334,
path: "/voice/webhook",
},
// Public exposure (pick one):
// publicUrl: "https://example.ngrok.app/voice/webhook",
// tunnel: { provider: "ngrok" },
// tailscale: { mode: "funnel", port: 8443, path: "/voice/webhook" }
outbound: {
defaultMode: "notify", // or "conversation"
},
// Optional response agent workspace. Defaults to "main".
agentId: "main",
streaming: {
enabled: true,
// optional; if omitted, Voice Call picks the first registered
// realtime-transcription provider by autoSelectOrder
provider: "<realtime-transcription-provider-id>",
streamPath: "/voice/stream",
providers: {
"<realtime-transcription-provider-id>": {
// provider-owned options
},
},
preStartTimeoutMs: 5000,
maxPendingConnections: 32,
maxPendingConnectionsPerIp: 4,
maxConnections: 128,
},
}
Notes:
tailscale.port defaults to 443 and owns the external HTTPS port for both legacy tailscale.mode and unified Tailscale tunnel providers. Funnel supports 443, 8443, or 10000; Serve accepts any valid TCP port.twilio.region to ie1 or au1 and use credentials created in that Region; see Twilio's regional REST API guide.mock is a local dev provider (no network calls).telnyx.publicKey (or TELNYX_PUBLIC_KEY) unless skipSignatureVerification is true.provider: "log", twilio.from, legacy streaming.* OpenAI keys, and realtime.agentContext.includeSystemPrompt because supported releases can still preserve these settings. Run openclaw doctor --fix to normalize them; existing values in the current format are preserved.https://docs.openclaw.ai/plugins/voice-callresponseModel is optional. When unset, voice responses use the runtime default model.sessionScope defaults to per-phone, preserving caller memory across calls. Use per-call for reception, booking, IVR, and bridge flows where each carrier call should start fresh. Use main to share the configured agent's main session (agent:<agentId>:main, or global when core session.scope is "global"). Custom core session.mainKey values are ignored.realtime.consultThinkingLevel is optional. When set, it overrides the thinking level used by the model behind realtime openclaw_agent_consult calls.realtime.consultFastMode is optional. When set, it toggles fast mode for realtime openclaw_agent_consult calls.realtime.idleHangupMs is optional. When set to a positive integer, an active realtime call ends after neither side has spoken for that many milliseconds; in-flight agent consults pause the timer. Unset keeps the current no-speech-idle-limit behavior.initiate_call and voicecall.initiate accept an optional brief. The opening
message remains the first verbatim line; the brief guides the conversation
after it. The realtime voice and its consult agent receive the same brief.
All brief fields are optional:
| Field | Value |
|---|---|
task | Plain text describing what to achieve, up to 2000 characters. |
context | Facts the voice may use, up to 4000 characters. |
language | Language name or BCP-47 tag, up to 100 characters. |
identity | Introduction text, or { introduction, disclose: "volunteer" | "when-asked" }; up to 500 characters. Defaults to introducing only when asked. |
disclosures | Up to 20 strings listing permitted personal details, each up to 500 characters. Defaults to none beyond the permitted identity. |
approvals | What the voice may agree to, up to 2000 characters. Defaults to no spending or commitments beyond the task. |
voicemailMessage | Message to leave on a machine, up to 1000 characters. Defaults to the supplied introduction or a neutral message, followed by a promise to try again later; excludes task details. |
successCriteria | What counts as done, up to 1000 characters. |
maxDurationSeconds | Positive integer that shortens this call's duration limit; values above the configured cap are capped. |
Briefs have an overall limit of 8000 JSON characters. Unknown fields are rejected. For a plumber visit:
{
"action": "initiate_call",
"to": "+15550005678",
"mode": "conversation",
"message": "Hello, can I arrange a plumber visit?",
"brief": {
"task": "Book a plumber to repair a leaking kitchen tap",
"context": "The owner is available Tuesday or Thursday, 9 AM to noon. Ask for the callout fee before agreeing.",
"language": "en",
"identity": {
"introduction": "I am calling on behalf of Alex",
"disclose": "volunteer"
},
"disclosures": ["The owner's first name is Alex"],
"approvals": "A visit on Tuesday or Thursday morning with a callout fee up to 20 EUR. No repair charges are approved.",
"successCriteria": "Confirm the day, arrival window, callout fee and booking reference",
"voicemailMessage": "Hello, I am calling to ask about a plumber visit for a leaking tap. The owner will follow up.",
"maxDurationSeconds": 180
}
}
CLI callers can pass --brief 'Ask whether a plumber is available Tuesday',
--brief '<JSON>', or --brief-file ./plumber-brief.json. The two brief flags
are mutually exclusive. Use --mode conversation for a conversation.
These features are disabled by default. Configure them under
plugins.entries.voice-call.config:
{
reports: {
enabled: true,
includeTranscript: true, // default true
// summaryModel: "<provider>/<model>",
// inboundSessionKey: "agent:reception:main",
},
live: { transcript: true, minIntervalMs: 5000 },
inboundPolicy: "allowlist",
callbacks: {
enabled: true,
windowMinutes: 60,
// greeting: "Hello, I can take a message for the owner.",
// brief: { task: "Take a message for the owner" },
},
voicemail: { detection: "twilio", onMachine: "leave-message" },
}
reports.inboundSessionKey selects the destination for ordinary inbound calls.
A Gateway restart marks an interrupted pending report or live-transcript delivery
as failed. OpenClaw does not resend it because the earlier process may already
have reached the channel.live.minIntervalMs (default 5000).
Each batch's position is saved before it is sent, so a call that survives a
restart continues with new lines only and never repeats an earlier batch.inboundPolicy: "allowlist", callbacks from a
number called within callbacks.windowMinutes (default 60) are also accepted.
They are linked to the original outbound call and take a message for the owner
without sharing details. The classic STT/TTS path never admits callbacks. Other
numbers follow the existing inbound policy. callbacks.greeting and
callbacks.brief can customize that conversation.onMachine: "hang-up", it ends the call immediately.
Notify calls wait for detection before playing the appropriate message.
The detected answer type is recorded. The mock provider can simulate this; Telnyx and Plivo behavior
is unchanged. voicemail.detection defaults to "off".During a call, steer_call or voicecall.steer accepts { callId, message, mode }.
mode: "guidance" (the default) changes the voice's guidance and subsequent consults;
mode: "say" makes the voice say the message verbatim now. Messages are limited
to 500 characters. Only the requesting session or an operator may steer that call.
openclaw voicecall steer --call-id <id> --message "Ask for the callout fee" --mode guidance
openclaw voicecall steer --call-id <id> --message "The owner can also do Thursday morning." --mode say
See the plugin docs for recommended ranges and production examples:
https://docs.openclaw.ai/plugins/voice-call#stale-call-reaper
Voice Call uses the core tts configuration for
streaming speech on calls. Override examples and provider caveats live here:
https://docs.openclaw.ai/plugins/voice-call#tts-for-calls
openclaw voicecall call --to "+15555550123" --message "Hello from OpenClaw"
openclaw voicecall continue --call-id <id> --message "Any questions?"
openclaw voicecall speak --call-id <id> --message "One moment"
openclaw voicecall end --call-id <id>
openclaw voicecall status --json
openclaw voicecall status --call-id <id>
openclaw voicecall tail
openclaw voicecall expose --mode funnel
Tool name: voice_call
Actions:
initiate_call (message, to?, mode?, brief?)steer_call (callId, message, mode?: guidance | say)continue_call (callId, message)speak_to_user (callId, message)end_call (callId)get_status (callId)voicecall.initiate (to?, message, mode?, brief?)voicecall.steer (callId, message, mode?: guidance | say)voicecall.continue (callId, message)voicecall.speak (callId, message)voicecall.end (callId)voicecall.status (callId)responseModel / responseSystemPrompt control AI auto-responses.{"spoken":"..."}) and filter reasoning/meta output before playback.<Say>; stream-TTS failures fail the playback request.streaming.provider / realtime.provider and put provider-owned options under providers.<id>.