Skip to content
Konstera
Capability catalogue
emailwrite

email.send

Send an email

Bare-email send via SMTP/SendGrid/SES. Use tickets.reply when the source is a ticketing system; use email.send only when no ticket context exists.

Effect
write
Fanout
no
Cache TTL
none
Traits
human_authored

Request arguments

Passed as the args parameter to ctx.capability.call("email.send", …).

FieldTypeRequiredDescription
tostringyes
bodystringyes
headersobjectno
subjectstringyes
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"]
buttonColorstringnoButton colour when linkStyle is button (#rgb or #rrggbb).

Response

Returned by ctx.capability.call("email.send", …).

FieldTypeRequiredDescription
okbooleanyes
sentAtstringno
format: date-time
messageIdstringno

Example call

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

response = await ctx.capability.call(
    "email.send",
    args={
        "to": "...",
        "body": "...",
        "headers": {},
        "subject": "...",
        "linkStyle": "text",
        "buttonColor": "...",
    },
)

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