Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/update_customer_agent_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_customer_agent_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

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

  • id#stringrequired

Query parameters

  • fields[customer-agent]#string[]

    For more information please visit API overview

    Show 26 allowed values
    • channels
    • channels.email
    • channels.email.blockers
    • channels.email.enabled
    • channels.sms
    • channels.sms.blockers
    • channels.sms.enabled
    • channels.web_chat
    • channels.web_chat.blockers
    • channels.web_chat.enabled
    • channels.whatsapp
    • channels.whatsapp.blockers
    • channels.whatsapp.enabled
    • communication_styles
    • escalation_rules
    • handoff
    • handoff.email_address
    • handoff.fallback_message
    • handoff.handoff_message
    • handoff.include_ticket_id
    • handoff.mechanism
    • id
    • name
    • tone_of_voice
    • tone_of_voice.custom_instruction
    • tone_of_voice.preset

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • customer-agent
    • id#stringrequired

      Customer Agent resource id. Must match the id path parameter.

    • attributes#objectrequired
      Show 6 fields
      • name#stringnullable

        The name of the AI agent.

      • tone_of_voice#objectnullable

        Patchable tone-of-voice settings for the Customer Agent resource.

        Show 2 fields
        • preset#stringnullable

          Built-in tone preset.

          Allowed values:
          • neutral
          • professional
          • friendly
          • playful
          • custom
        • custom_instruction#stringnullable

          Free-text instruction the agent uses for tone when preset is custom. Ignored otherwise.

      • escalation_rules#object[]nullable

        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
        • title#stringrequired

          Short, human-readable label for the escalation rule.

        • description#stringrequired

          Natural-language description of when this rule fires.

        • status#stringrequired

          Whether this guidance item is active.

          Allowed values:
          • enabled
          • disabled
        • countries#string[]nullable

          Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.

        • languages#string[]nullable

          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#object[]nullable

        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
        • title#stringrequired

          Short, human-readable label for the communication style.

        • description#stringrequired

          Natural-language communication style the agent must follow on every turn.

        • status#stringrequired

          Whether this guidance item is active.

          Allowed values:
          • enabled
          • disabled
        • countries#string[]nullable

          Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.

        • languages#string[]nullable

          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.

      • handoff#objectnullable

        Patchable default handoff configuration. Fields you omit are left unchanged.

        Show 5 fields
        • mechanism#stringnullable

          How the agent hands a shopper off to a human. Cannot be null. A helpdesk that is not connected is rejected.

          Allowed values:
          • GORGIAS
          • ZENDESK
          • INBOX
          • OTHER_EMAIL_BASED
          • FALLBACK_MESSAGE
        • fallback_message#stringnullable

          Sent when the agent is unable to answer and no human is available. Cannot be null.

        • handoff_message#stringnullable

          Sent when the agent hands the shopper off to a human. Cannot be null.

        • include_ticket_id#booleannullable

          Whether the handoff message includes the helpdesk ticket reference number. Cannot be null.

        • email_address#stringnullable

          Address handoffs are emailed to. Required when mechanism is OTHER_EMAIL_BASED.

      • channels#objectnullable

        Patchable channel state. Channels you omit are left unchanged.

        Show 4 fields
        • web_chat#objectnullable

          Web chat.

          Show 1 field
          • enabled#booleannullable

            Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.

        • email#objectnullable

          Email.

          Show 1 field
          • enabled#booleannullable

            Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.

        • sms#objectnullable

          SMS. Writes are rejected.

          Show 1 field
          • enabled#booleannullable

            Turn the channel on or off. Turning a channel on is rejected while it has blockers. Not allowed for SMS or WhatsApp.

        • whatsapp#objectnullable

          WhatsApp. Writes are rejected.

          Show 1 field
          • enabled#booleannullable

            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

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • customer-agent
    • id#stringrequired

      Customer Agent resource id. This is the account's ID.

      Example: AbC123

    • attributes#objectrequired
      Show 6 fields
      • name#stringnullable

        The name of the AI agent.

      • tone_of_voice#objectrequired

        Tone-of-voice settings for the Customer Agent resource.

        Show 2 fields
        • preset#stringrequired

          Built-in tone preset.

          Allowed values:
          • neutral
          • professional
          • friendly
          • playful
          • custom
        • custom_instruction#stringnullable

          Free-text instruction the agent uses for tone when preset is custom. Ignored otherwise.

      • escalation_rules#object[]required

        Natural-language triggers that, when matched, cause the agent to escalate to a human. Each rule is individually enabled or disabled.

        Show 5 fields
        • title#stringrequired

          Short, human-readable label for the escalation rule.

        • description#stringrequired

          Natural-language description of when this rule fires.

        • status#stringrequired

          Whether this guidance item is active.

          Allowed values:
          • enabled
          • disabled
        • countries#string[]nullable

          Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.

        • languages#string[]nullable

          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#object[]required

        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
        • title#stringrequired

          Short, human-readable label for the communication style.

        • description#stringrequired

          Natural-language communication style the agent must follow on every turn.

        • status#stringrequired

          Whether this guidance item is active.

          Allowed values:
          • enabled
          • disabled
        • countries#string[]nullable

          Countries this rule applies to, as ISO 3166-1 alpha-2 codes. Empty or null means every country.

        • languages#string[]nullable

          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.

      • handoff#objectrequired

        The account-wide default handoff configuration, which every channel inherits.

        Show 5 fields
        • mechanism#stringnullable

          How the agent hands a shopper off to a human. Null when the account uses a mechanism this API does not expose.

          Allowed values:
          • GORGIAS
          • ZENDESK
          • INBOX
          • OTHER_EMAIL_BASED
          • FALLBACK_MESSAGE
        • fallback_message#stringnullable

          Sent when the agent is unable to answer and no human is available.

        • handoff_message#stringnullable

          Sent when the agent hands the shopper off to a human.

        • include_ticket_id#booleanrequired

          Whether the handoff message includes the helpdesk ticket reference number.

        • email_address#stringnullable

          Address handoffs are emailed to. Used when mechanism is OTHER_EMAIL_BASED.

      • channels#objectrequired

        Whether each channel is on, and what stops it from being turned on.

        Show 4 fields
        • web_chat#objectrequired

          Web chat.

          Show 2 fields
          • enabled#booleanrequired

            Whether the agent answers on this channel.

          • blockers#string[]required

            Reasons the channel cannot be enabled. Read-only. Empty when the channel can be enabled. SMS and WhatsApp always report NOT_CONFIGURABLE_VIA_API.

            Allowed values:
            • HANDOFF_NOT_CONFIGURED
            • FALLBACK_MESSAGE_EMPTY
            • HELPDESK_NOT_CONNECTED
            • NO_REMAINING_RESOLUTIONS
            • WEB_CHAT_NOT_ENABLED
            • NOT_CONFIGURABLE_VIA_API
        • email#objectrequired

          Email.

          Show 2 fields
          • enabled#booleanrequired

            Whether the agent answers on this channel.

          • blockers#string[]required

            Reasons the channel cannot be enabled. Read-only. Empty when the channel can be enabled. SMS and WhatsApp always report NOT_CONFIGURABLE_VIA_API.

            Allowed values:
            • HANDOFF_NOT_CONFIGURED
            • FALLBACK_MESSAGE_EMPTY
            • HELPDESK_NOT_CONNECTED
            • NO_REMAINING_RESOLUTIONS
            • WEB_CHAT_NOT_ENABLED
            • NOT_CONFIGURABLE_VIA_API
        • sms#objectrequired

          SMS. Read-only through the API.

          Show 2 fields
          • enabled#booleanrequired

            Whether the agent answers on this channel.

          • blockers#string[]required

            Reasons the channel cannot be enabled. Read-only. Empty when the channel can be enabled. SMS and WhatsApp always report NOT_CONFIGURABLE_VIA_API.

            Allowed values:
            • HANDOFF_NOT_CONFIGURED
            • FALLBACK_MESSAGE_EMPTY
            • HELPDESK_NOT_CONNECTED
            • NO_REMAINING_RESOLUTIONS
            • WEB_CHAT_NOT_ENABLED
            • NOT_CONFIGURABLE_VIA_API
        • whatsapp#objectrequired

          WhatsApp. Read-only through the API.

          Show 2 fields
          • enabled#booleanrequired

            Whether the agent answers on this channel.

          • blockers#string[]required

            Reasons the channel cannot be enabled. Read-only. Empty when the channel can be enabled. SMS and WhatsApp always report NOT_CONFIGURABLE_VIA_API.

            Allowed values:
            • HANDOFF_NOT_CONFIGURED
            • FALLBACK_MESSAGE_EMPTY
            • HELPDESK_NOT_CONNECTED
            • NO_REMAINING_RESOLUTIONS
            • WEB_CHAT_NOT_ENABLED
            • NOT_CONFIGURABLE_VIA_API

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string