Skip to content
Konstera
Capability catalogue
customersread

customers.lookup_by_email

Lookup customer by email

Look up a customer by email across the ecommerce platform. Returns identity + loyalty tier + LTV + account flags for the inbox customer context panel.

Effect
read
Fanout
no
Cache TTL
600s
Traits
none
Implemented by

Shopify, BetterCommerce; Freshdesk/Zendesk customer records as fallback

The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.

Request arguments

Passed as the args parameter to ctx.capability.call("customers.lookup_by_email", …).

FieldTypeRequiredDescription
emailstringyes
format: email

Response

Returned by ctx.capability.call("customers.lookup_by_email", …).

FieldTypeRequiredDescription
idstringyesVendor-stable customer id
emailstringno
flagsarray<string>noAccount flags — connector normalises vendor flags to this canonical set
phonestringno
lastNamestringno
firstNamestringno
ltvAmountnumbernoLifetime value in order currency; absent if not computable at the connector
loyaltyTierstringnoVendor loyalty program tier if present — bronze/silver/gold/vip style
ltvCurrencystringno
totalOrdersintegerno
min: 0
customerSinceIsostringno
format: date-time

Example call

From inside your agent's handle(). The kernel resolves customers.lookup_by_email to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "customers.lookup_by_email",
    args={
        "email": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.