Update an AI agent
update_agentChange how an AI agent answers. Only the fields given change; instructions and lists replace the previous ones, so start from get_agent's. A deployed agent uses the new settings at once. Returns the agent; suggest test_agent next.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>"
},
"name": "update_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The name customers see. | |
| model | No | `fast` answers sooner on a lighter model; null for the default. | |
| agentId | Yes | The agent id, from list_agents. | |
| greeting | No | The first chat message visitors see. | |
| teamName | No | The team the agent signs as, such as `Acme Support`. | |
| signature | No | The sign-off on email replies. | |
| description | No | A note for teammates on what the agent is for. | |
| instructions | No | How it answers, in plain words: tone, policies, what to hand to a person. | |
| botIdentifier | No | How it says what it is in its replies, always as an AI, such as `virtual assistant`. It still introduces itself by its name. | |
| usePastTickets | No | Drafts for the team to review follow how it answered similar questions in past conversations. Replies sent without review do not read them. | |
| collectedFields | No | Custom fields to collect in chat, in order (list_custom_fields ids). | |
| suggestedActions | No | Chat buttons visitors can tap. | |
| knowledgeSetNames | No | Knowledge source names (list_knowledge_sources); empty for all. | |
| contactInformation | No | How customers reach a person, for when the agent hands over. |