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.
readShopify, 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", …).
| Field | Type | Required | Description |
|---|---|---|---|
| string | yes | format: email |
Response
Returned by ctx.capability.call("customers.lookup_by_email", …).
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Vendor-stable customer id |
| string | no | ||
| flags | array<string> | no | Account flags — connector normalises vendor flags to this canonical set |
| phone | string | no | |
| lastName | string | no | |
| firstName | string | no | |
| ltvAmount | number | no | Lifetime value in order currency; absent if not computable at the connector |
| loyaltyTier | string | no | Vendor loyalty program tier if present — bronze/silver/gold/vip style |
| ltvCurrency | string | no | |
| totalOrders | integer | no | min: 0 |
| customerSinceIso | string | no | 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.