Actions90
- Agent Actions
- Get Agents
- Get Agent By ID
- Create Agent
- Update Agent
- Get Agent Templates
- Get Voices By Language
- Toggle Favorite
- Update Agent Visibility
- Get Agent Prompt History
- Update Success Metric
- Update WhatsApp Notification
- Update Mail Notification
- Get Agent Documents
- Insert Agent Document
- Get AI Models
- Get Agent Actions
- Update Agent Reschedule
- Get Keyword Replacements
- Get Agent Keywords
- Add Keyword
- Update Keyword
- Delete Keyword
- Get Template
- Get Agent Samples
- Get Agent FAQs
- Manage Agent FAQ
- Analytics Actions
- Call Actions
- Campaign Actions
- Contact Actions
- Dashboard Actions
- Identity Actions
- Library Actions
- Marketplace Actions
- SIP Actions
- Wallet Actions
Agent → Update Agent
AI-generatedSummary
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'}.
