update_agent_prompt
Update an AI agent's system prompt with new instructions. Optionally set the first message. For versioned agents, changes are saved as a draft to be published later.
Instructions
Update an agent's system prompt / instructions. Pass the full new prompt text. Only works for single_prompt agents. Optionally update the first message too. For versioned agents, changes are saved as a draft — pass draft_id to stack onto an existing draft (e.g. one returned by add_agent_tool or set_pre_call_api), then publish_draft once to make everything live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The new system prompt for the agent | |
| agent_id | Yes | The agent ID to update | |
| draft_id | No | Existing draft to write into (stacks this change onto the draft's other edits). Omit to create a new draft from the live version. | |
| first_message | No | Update the first message the agent says when a call starts (max 500 chars) |