Docs menu
All MCP tools
MCP tools · Agents
Update a draft agent
update_agent_draftEdit 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
| Name | Type | Description |
|---|---|---|
| agent_idrequired | string | The agent's id, a UUID like 123e4567-e89b-12d3-a456-426614174000. |
| name | string | New display name for the agent. Optional. |
| workflowPrompt | string | The 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. |
| identityText | string | Only 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. |
| styleGuardrails | string | Only for older agents with no workflow prompt: replacement Tone & Style text. agents with a workflow prompt take workflowPrompt. Optional. |
| responseGuidelines | string | Only for older agents with no workflow prompt: replacement Response Guidelines. agents with a workflow prompt take workflowPrompt. Optional. |
| useCase | string | New short label for the agent's purpose. Optional. |
| language | string | New primary language, e.g. 'English'. Optional. |
| voice | string | New voice id, from the list of available voices. Optional. |
| definedBeginMessage | string | New opening line the agent says when a call starts. Optional. |
| customVocabulary | array of string | Replaces the whole custom-vocabulary list (it is not merged), so an addition includes the existing words too. Optional. |
| timezone | string | IANA time zone the agent reasons in for dates and times, e.g. 'Asia/Kolkata'. Applies to voice and chat agents. Optional. |
| limitCallDuration | enum: 1 min | 3 mins | 5 mins | 10 mins | 15 mins | 30 mins | 60 mins | None | Voice only: the longest a single call may run before the agent wraps up. 'None' for no limit. Optional. |
| maxIdleDuration | enum: 10s | 20s | 30s | 45s | 60s | 90s | 120s | None | Voice only: how long the other person can stay silent before the agent says its idle reminder. 'None' turns the reminder off. Optional. |
| idleReminder | string | Voice only: what the agent says after that silence, e.g. 'Are you still there?'. Empty string clears it. Optional. |
| voicemailDetection | boolean | Voice only: hang up when the call reaches a voicemail box instead of talking to it. Optional. |
| org_id | string | The organization to work in (its id). Your workspace has more than one. |