Capability catalogue
ticketswrite
tickets.reply
Reply on a ticket
Post a reply on a ticket in-system. visibility=public creates a customer-facing comment; visibility=internal creates a private note mirrored into messages.is_internal. Response includes the externalMessageId for immediate dedup backfill.
Effect
write Fanout
no
Cache TTL
none
Traits
human_authored, thread_destination
Request arguments
Passed as the args parameter to ctx.capability.call("tickets.reply", …).
| Field | Type | Required | Description |
|---|---|---|---|
| body | string | yes | |
| ticketId | string | yes | |
| linkStyle | string | no | How links show in the sent email: text = the label (or the host for a bare URL), button = a button, plain = the URL itself. default: "text" · enum: ["text","button","plain"] |
| visibility | string | no | public = customer-facing reply; internal = private note mirrored into messages.is_internal default: "public" · enum: ["public","internal"] |
| buttonColor | string | no | Button colour when linkStyle is button (#rgb or #rrggbb). |
Response
Returned by ctx.capability.call("tickets.reply", …).
| Field | Type | Required | Description |
|---|---|---|---|
| ok | boolean | yes | |
| sentAt | string | no | format: date-time |
| externalMessageId | string | yes | Ticket-system id of the newly-created comment; Konstera backfills this on its own message row immediately so sync-tick doesn't have to |
Example call
From inside your agent's handle(). The kernel resolves tickets.reply to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"tickets.reply",
args={
"body": "...",
"ticketId": "...",
"linkStyle": "text",
"visibility": "public",
"buttonColor": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.