You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1acabe4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/plugins/voice-call.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,6 +275,7 @@ Current runtime behavior:
275
275
-`realtime.provider` is optional. If unset, Voice Call uses the first registered realtime voice provider.
276
276
- Bundled realtime voice providers: Google Gemini Live (`google`) and OpenAI (`openai`), registered by their provider plugins.
277
277
- Provider-owned raw config lives under `realtime.providers.<providerId>`.
278
+
- Voice Call exposes the built-in `openclaw_end_call` realtime tool on every call. It takes no arguments or call ID; the active voice bridge binds it to the current call.
278
279
- Voice Call exposes the shared `openclaw_agent_consult` realtime tool by default. The realtime model can call it when the caller asks for deeper reasoning, current information, or normal OpenClaw tools.
279
280
-`realtime.consultPolicy` optionally adds guidance for when the realtime model should call `openclaw_agent_consult`.
280
281
-`realtime.agentContext.enabled` is default-off. When enabled, Voice Call injects a bounded agent identity and selected workspace-file capsule into the realtime provider instructions at session setup.
@@ -290,6 +291,13 @@ the media WebSocket. If an intermediary does not promptly forward that close,
290
291
OpenClaw treats 30 seconds without inbound media as a disconnect, waits a
291
292
2-second grace period for media to resume, and then ends the call.
292
293
294
+
The realtime model can also call `openclaw_end_call` when the caller asks to
295
+
hang up. The model must speak any final words before calling the tool: a
296
+
successful call ends the current provider session and phone connection
297
+
immediately, so no later reply is spoken. If the carrier cannot end the call,
298
+
the bridge stays connected and the model receives an error it can explain to
299
+
the caller. Configured `realtime.tools` cannot replace this built-in by name.
300
+
293
301
For inbound Twilio numbers, also configure a Status Callback using `POST` to
294
302
your public webhook URL with `?type=status` appended, for example
295
303
`https://voice.example.com/voice/webhook?type=status`. Include the `completed`
@@ -299,13 +307,14 @@ close and the inactivity backstop remain independent of it.
299
307
300
308
### Tool policy
301
309
302
-
`realtime.toolPolicy` controls the consult run:
310
+
`realtime.toolPolicy` controls only the consult run. It never disables
|`safe-read-only`| Expose the consult tool and limit the regular agent to `read`, `web_search`, `web_fetch`, `x_search`, `memory_search`, and `memory_get`. |
307
316
|`owner`| Expose the consult tool and let the regular agent use the normal agent tool policy. |
308
-
|`none`| Do not expose the consult tool. Custom `realtime.tools`are still passed through to the realtime provider.|
317
+
|`none`| Do not expose the consult tool. The built-in end-call tool and custom `realtime.tools`remain available. |
309
318
310
319
`realtime.consultPolicy` controls only the realtime model instructions:
"End the current phone call immediately. Speak any final words to the caller before invoking this tool because the call ends as soon as it is invoked and no further reply will be spoken.",
17
+
parameters: {
18
+
type: "object",
19
+
properties: {},
20
+
},
21
+
};
22
+
23
+
/** Merge built-in call controls with consult and configured realtime tools. */
// Default realtime instructions for the voice-call plugin's phone interface.
5
6
6
7
/** Baseline instructions that keep realtime calls brief and route deep work to agent consult. */
7
-
exportconstDEFAULT_VOICE_CALL_REALTIME_INSTRUCTIONS=`You are OpenClaw's phone-call realtime voice interface. Keep spoken replies brief and natural. When a question needs deeper reasoning, current information, or tools, call ${REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME} before answering.`;
8
+
exportconstDEFAULT_VOICE_CALL_REALTIME_INSTRUCTIONS=`You are OpenClaw's phone-call realtime voice interface. Keep spoken replies brief and natural. When a question needs deeper reasoning, current information, or tools, call ${REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME} before answering. When the caller asks to end the call, speak any final words first, then call ${REALTIME_VOICE_END_CALL_TOOL_NAME}; it ends the call immediately and nothing after it will be spoken.`;
"Could not end the current phone call: carrier rejected hangup. Tell the caller the call could not be ended and they can hang up or ask you to try again.",
0 commit comments