Skip to content

feat(voice): expose voicemail controls on VoiceCall tool#61

Merged
1bcMax merged 1 commit into
mainfrom
feat/voicemail-tool-params
May 21, 2026
Merged

feat(voice): expose voicemail controls on VoiceCall tool#61
1bcMax merged 1 commit into
mainfrom
feat/voicemail-tool-params

Conversation

@KillerQueen-Z
Copy link
Copy Markdown
Collaborator

What

Adds two optional params to the VoiceCall tool so the agent can control voicemail behavior from natural language:

  • voicemail_action: hangup | leave_message | ignore
  • voicemail_message: the message to speak when leave_message is set

Before this, a request like "call my client, and if it goes to voicemail leave this message..." had nowhere structured to go — it could only be stuffed into the free-text task prompt as fragile if-then logic. Now the agent parses intent into real params.

The schema description spells out that voicemail is a one-way monologue (spoken once, no back-and-forth) so the model doesn't try to script a conversation with a recording.

Behavior

Both fields are optional and only forwarded when present, so ordinary calls are completely unchanged — voicemail still hangs up by default unless the user explicitly asks to leave a message.

⚠️ Merge order

Depends on the gateway accepting these fields — blockrun PR #26. The gateway validates the call body with .strict(), so it will reject voicemail_* until that PR is merged and deployed. Merge + deploy blockrun #26 first, then this.

(Safety cushion: the params are only sent when the user asks about voicemail, so even out of order, plain calls keep working — only the voicemail path would fail.)

Test plan

Lets the agent control what happens when voicemail picks up, instead of
always falling back to the gateway's hang-up default. Parsed from natural
language ("if it goes to voicemail, leave this message...") into structured
params rather than buried as if-then logic in the free-text task prompt.

Both fields are optional and only forwarded when present, so plain calls
are unchanged. The schema notes that voicemail is a one-way monologue so
the agent doesn't try to script a back-and-forth.

Depends on the gateway accepting these fields (blockrun voicemail PR) —
the gateway validates with strict mode, so deploy that first.
@1bcMax 1bcMax merged commit 4cecc01 into main May 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant