Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/create_customer_agent_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_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.

Create Customer Agent

POSThttps://a.klaviyo.com/api/customer-agents

Creates the Customer Agent for the calling company.

Returns 201 Created when the Customer Agent is created, and 200 OK with the existing Customer Agent when the account already has one. storefront_url is used only when the agent is first created; if omitted then, the URL of the account's Shopify integration, or else its contact-information URL, is used. Without a usable URL, the agent's knowledge base starts empty.

Revision header
revision: 2026-10-15.prerequired
Scopes
agents:write
Rate limits
Burst: 10/sSteady: 150/m

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 2 fields
    • type#stringrequired
      Allowed values:
      • customer-agent
    • attributes#objectrequired
      Show 1 field
      • storefront_url#stringnullable

        The storefront the agent learns from. Used only when the Customer Agent is first created. If omitted then, the URL of the account's Shopify integration, or else its contact-information URL, is used. Without a usable URL the agent's knowledge base starts empty.

        Example: https://example-store.myshopify.com

Responses

201Success

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