> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On WhatsApp message sent

> Start an automation when WhatsApp accepts a message for delivery.

`onWhatsAppMessageSent` starts an automation when WhatsApp reports the `sent` status for a message.

```ts automations/track-whatsapp-sends.automation.ts theme={null}
import { automation } from "automate.ax"
import { onWhatsAppMessageSent } from "automate.ax/whatsapp"

export default automation("Track WhatsApp sends", () => {
  const event = onWhatsAppMessageSent()
  event.messageId
})
```

Optional static `account` defaults to the project's WhatsApp binding. The signal has `status: "sent"` and includes the message and recipient IDs, timestamp, callback data, conversation, pricing, structured errors, and `providerEvent` described by [the broad status trigger](/reference/integrations/whatsapp/triggers/on-message-status-event).

A `sent` event confirms provider acceptance, not delivery to the recipient's device. Use `onWhatsAppMessageDelivered` for that outcome.
