Skip to main content
Docs menu
All MCP tools

MCP tools · Agents

Update a draft agent

update_agent_draft

Edit an agent that is still a draft: its name, workflow prompt, use case, language, voice, opening line, custom vocabulary, time zone, and for voice agents its call handling (max call length, idle reminder, voicemail detection). Only fields you pass are changed. How the agent behaves is set by its workflow prompt; workflowPrompt replaces it with the full edited text. Drafts only — an agent that has been launched can only be edited in the agent dashboard. This never changes an agent's status, organization or call flow.

Scope needed
finn or assistants:write
Acts as
You, the signed-in member, with your role's permissions.
Changes data
Yes
Held for approval
No
Available to
Every organization

Inputs

NameTypeDescription
agent_idrequiredstringThe agent's id, a UUID like 123e4567-e89b-12d3-a456-426614174000.
namestringNew display name for the agent. Optional.
workflowPromptstringThe agent's complete workflow prompt — who it is, how it speaks, and what it should do on the call. Replaces the whole prompt, so it is the full edited text, not a fragment. This is the normal way to change an agent's behaviour. Optional.
identityTextstringOnly for older agents that have no workflow prompt: replacement Role & Identity text. The persona is then merged into one workflow prompt. agents with a workflow prompt take workflowPrompt. Optional.
styleGuardrailsstringOnly for older agents with no workflow prompt: replacement Tone & Style text. agents with a workflow prompt take workflowPrompt. Optional.
responseGuidelinesstringOnly for older agents with no workflow prompt: replacement Response Guidelines. agents with a workflow prompt take workflowPrompt. Optional.
useCasestringNew short label for the agent's purpose. Optional.
languagestringNew primary language, e.g. 'English'. Optional.
voicestringNew voice id, from the list of available voices. Optional.
definedBeginMessagestringNew opening line the agent says when a call starts. Optional.
customVocabularyarray of stringReplaces the whole custom-vocabulary list (it is not merged), so an addition includes the existing words too. Optional.
timezonestringIANA time zone the agent reasons in for dates and times, e.g. 'Asia/Kolkata'. Applies to voice and chat agents. Optional.
limitCallDurationenum: 1 min | 3 mins | 5 mins | 10 mins | 15 mins | 30 mins | 60 mins | NoneVoice only: the longest a single call may run before the agent wraps up. 'None' for no limit. Optional.
maxIdleDurationenum: 10s | 20s | 30s | 45s | 60s | 90s | 120s | NoneVoice only: how long the other person can stay silent before the agent says its idle reminder. 'None' turns the reminder off. Optional.
idleReminderstringVoice only: what the agent says after that silence, e.g. 'Are you still there?'. Empty string clears it. Optional.
voicemailDetectionbooleanVoice only: hang up when the call reaches a voicemail box instead of talking to it. Optional.
org_idstringThe organization to work in (its id). Your workspace has more than one.