Skip to content
Konstera
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", …).

FieldTypeRequiredDescription
bodystringyes
ticketIdstringyes
linkStylestringnoHow 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"]
visibilitystringnopublic = customer-facing reply; internal = private note mirrored into messages.is_internal
default: "public" · enum: ["public","internal"]
buttonColorstringnoButton colour when linkStyle is button (#rgb or #rrggbb).

Response

Returned by ctx.capability.call("tickets.reply", …).

FieldTypeRequiredDescription
okbooleanyes
sentAtstringno
format: date-time
externalMessageIdstringyesTicket-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.