Email Campaign Sender

campaign-email

Sends bulk campaign emails through a workspace's connected email provider (Klaviyo, Resend, or Postmark) via Composio.

Responsibilities

  • Validate that the workspace has an active Composio connection for the chosen provider
  • Dispatch transactional email sends via the provider's Composio action
  • Emit email_sent mark or email_send_failed warn on the campaign path
  • Report cost_msat per send (10 msat base) for spend tracking

Inputs

Field Type Notes
campaignId string Tags the campaign path
to string[] Recipient addresses (consent checked by caller)
subject string Email subject line
body string HTML body
provider klaviyo | resend | postmark Connected provider
connectedAccountId string Composio connected-account ID

Contract

  • auth(env, provider, slug) — probes for an ACTIVE Composio connection
  • push(env, payload)SendReceipt — dispatches the send
  • verifyWebhook(sig, body, secret) → boolean — validates inbound reply hooks