VocalLabs icon

VocalLabs

Interact with VocalLabs AI Voice Calling API

Actions90

Agent → Update Agent

AI-generated

Summary

Updates an existing VocalLabs agent with the supplied JSON data.

Inputs

  • agent_id (required) — The ID of the agent to update
  • updateData — JSON object containing fields to update (e.g., name, inputs_needed, welcome_message, agent_prompt, analytics_prompt, language, call_token_id, voice_id). Defaults to an empty object.

Output shape

object

Returns the updated agent representation from the VocalLabs API.

Examples

Example 1: Changing an agent's welcome message and voice

Set Agent ID to the target agent’s ID and provide Update Data (JSON) with {welcome_message: 'Hello!', voice_id: 'en-US-Wavenet-D'}.

Discussion