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.
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 | What it calls itself when asked, such as `AI agent`. | |
| usePastTickets | No | Draw on how the team answered past conversations. | |
| 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. |