Update Customer Agent
PATCHhttps://a.klaviyo.com/api/customer-agents/{id}
Patches the Customer Agent resource for the calling company.
The request body data.id must match the path parameter. Supports name, tone_of_voice, escalation_rules, communication_styles, handoff, and channels. For tone, provide tone_of_voice.preset from the supported enum, or preset: "custom" together with custom_instruction. For escalation_rules and communication_styles, the supplied array replaces the existing list; omit the field to leave the existing list unchanged. handoff is merged into the stored default handoff configuration: fields you omit are unchanged, and selecting a helpdesk that is not connected is rejected. In channels, set enabled to turn a channel on or off. Enabling a channel that has blockers is rejected, and sms and whatsapp cannot be changed through the API. Takes effect on the next turn.
- Revision header
revision: 2026-10-15.prerequired- Scopes
agents:write- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-10-15.pre
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Customer Agent resource id. Must match the
idpath parameter.Show 6 fields
The name of the AI agent.
Patchable tone-of-voice settings for the Customer Agent resource.
Natural-language triggers that, when matched, cause the agent to escalate to a human. When provided, the supplied array replaces the existing list; omit to leave the existing list unchanged.
Show 5 fields
Short, human-readable label for the escalation rule.
Natural-language description of when this rule fires.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
Communication styles the agent applies on every turn. When provided, the supplied array replaces the existing list; omit to leave the existing list unchanged.
Show 5 fields
Short, human-readable label for the communication style.
Natural-language communication style the agent must follow on every turn.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
Patchable default handoff configuration. Fields you omit are left unchanged.
Show 5 fields
How the agent hands a shopper off to a human. Cannot be null. A helpdesk that is not connected is rejected.
Sent when the agent is unable to answer and no human is available. Cannot be null.
Sent when the agent hands the shopper off to a human. Cannot be null.
Whether the handoff message includes the helpdesk ticket reference number. Cannot be null.
Address handoffs are emailed to. Required when
mechanismisOTHER_EMAIL_BASED.
Patchable channel state. Channels you omit are left unchanged.
Show 4 fields
Web chat.
Show 1 field
Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.
Email.
Show 1 field
Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.
SMS. Writes are rejected.
Show 1 field
Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.
WhatsApp. Writes are rejected.
Show 1 field
Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.
Responses
200Success
Content type: application/vnd.api+json
Show 4 fields
Customer Agent resource id. This is the account's ID.
Show 6 fields
The name of the AI agent.
Tone-of-voice settings for the Customer Agent resource.
Natural-language triggers that, when matched, cause the agent to escalate to a human. Each rule is individually enabled or disabled.
Show 5 fields
Short, human-readable label for the escalation rule.
Natural-language description of when this rule fires.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
Communication styles the agent applies on every turn, such as opening conventions, formatting preferences, and word choices to avoid. Each style is individually enabled or disabled.
Show 5 fields
Short, human-readable label for the communication style.
Natural-language communication style the agent must follow on every turn.
Whether this guidance item is active.
Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.
Languages this rule applies to, as ISO 639-1 codes, or ISO 639-3 where none exists. Some languages aren't supported. Empty or null means every language.
The account-wide default handoff configuration, which every channel inherits.
Show 5 fields
How the agent hands a shopper off to a human. Null when the account uses a mechanism this API does not expose.
Sent when the agent is unable to answer and no human is available.
Sent when the agent hands the shopper off to a human.
Whether the handoff message includes the helpdesk ticket reference number.
Address handoffs are emailed to. Used when
mechanismisOTHER_EMAIL_BASED.
Whether each channel is on, and what stops it from being turned on.
Show 4 fields
Web chat.
Email.
SMS. Read-only through the API.
WhatsApp. Read-only through the API.
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json