Skip to content
Konstera
Capability catalogue
customersread

customers.recent_tickets

Recent tickets for a customer

Last N tickets for a customer (closed or open), newest first. Powers the "previous tickets" rail in the customer context panel.

Effect
read
Fanout
no
Cache TTL
600s
Traits
none

Request arguments

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

FieldTypeRequiredDescription
emailstringnoFallback lookup key when customerId is not the ticket-system's native requester id
format: email
limitintegerno
default: 5 · min: 1 · max: 20
customerIdstringno

Response

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

Array; each element is an object with the following fields.

FieldTypeRequiredDescription
statusstringyes
subjectstringyes
closedAtstringno
format: date-time
ticketIdstringyes
createdAtstringyes
format: date-time
resolutionSummarystringnoOne-line summary — connector may synthesise from the last agent reply if not provided natively

Example call

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

response = await ctx.capability.call(
    "customers.recent_tickets",
    args={
        "email": "...",
        "limit": 5,
        "customerId": "...",
    },
)

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