Automate WhatsApp with TypeScript
Send WhatsApp Business messages and approved templates, create message templates, and react to inbound messages and delivery status changes.
import { automation } from "automate.ax"
import { whatsapp } from "automate.ax/whatsapp"
export default automation("Reply on WhatsApp", () => {
const received = whatsapp.onMessageReceived()
whatsapp.sendMessage({
to: received.sender.id,
body: "Thanks, we received your message.",
replyToMessageId: received.message.id,
})
})What you can do
Actions
- Send freeform customer-service messages
- Send approved marketing and utility templates
- Create message templates for Meta review
Triggers
- Message received
- Message sent, delivered, read, failed, or played
- Broad message status event