Skip to content
Konstera
Capability catalogue
chatwrite

chat.reply

Reply in a chat thread

Answer a chat message in its thread where the connector can, otherwise as a new message quoting the original (threaded=false).

Effect
write
Fanout
no
Cache TTL
none
Traits
human_authored, thread_destination
Implemented by

Slack (threaded, marks the message handled), Microsoft Teams (webhook, not threaded)

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("chat.reply", …).

FieldTypeRequiredDescription
bodystringyes
threadIdstringyesthreadId from chat.list_new

Response

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

FieldTypeRequiredDescription
okbooleanyes
sentAtstringno
format: date-time
threadIdstringno
threadedbooleannofalse when the connector could only post a new message quoting the original
messageIdstringno
markedProcessedbooleannoThe original message is marked handled so chat.list_new skips it

Example call

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

response = await ctx.capability.call(
    "chat.reply",
    args={
        "body": "...",
        "threadId": "...",
    },
)

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