Skip to content

WhatsApp Overview

WhatsApp messaging overview: rich media, templates, buttons, lists and the 24-hour conversation window.

View .md

WhatsApp Business API enables high-engagement messaging with rich features like images, documents, interactive buttons, and more.

When to Use WhatsApp

  • Customer support: Rich media and quick replies
  • Marketing campaigns: Higher open rates than SMS (90%+ vs 20%)
  • Order updates: Detailed information with images and tracking
  • International messaging: Often cheaper than SMS

Basic WhatsApp Message

const result = await zavu.messages.send({ to: "+14155551234", text: "Hello from Zavu!", channel: "whatsapp", });

The 24-Hour Conversation Window

WhatsApp enforces a conversation window that determines what types of messages you can send:

Code
User sends message → 24-hour window opens → Send any message type ↓ Window expires → Template messages only
Message TypeWithin 24hAfter 24h
Text (session)YesNo
Media (session)YesNo
Interactive (session)YesNo
Template (pre-approved)YesYes

Message Types

WhatsApp supports rich message formats beyond plain text:

Session Messages (within 24h window)

TypeUse CaseGuide
TextSimple messagesText
ImageProduct photos, receiptsImage
VideoTutorials, promotionsVideo
AudioVoice notes, announcementsAudio
DocumentPDFs, invoicesDocument
StickerEngagement, brandingSticker
LocationStore location, deliveryLocation
ContactShare contact infoContact
ButtonsQuick actionsButtons
ListMultiple optionsList
ReactionAcknowledge messagesReaction
Typing indicatorShow typing dots while preparing a replyTyping

Template Messages (anytime)

Pre-approved messages that can be sent outside the 24-hour window. See Templates Guide.

Delivery Status

WhatsApp provides detailed delivery tracking:

StatusDescription
queuedMessage accepted by Zavu
sentSent to WhatsApp servers
deliveredDelivered to user's device
readUser opened the message
failedDelivery failed

Quality Rating

Meta tracks your messaging quality. Maintain good standing by:

  1. Getting opt-in consent before messaging
  2. Respecting user preferences - stop messaging users who don't respond
  3. Sending relevant content - avoid spam-like messages
  4. Responding promptly - engage within the 24-hour window

Common Errors

ErrorCauseSolution
Outside 24h windowSession expiredUse a template message
Template not approvedTemplate pending/rejectedWait for approval or fix issues
Invalid phone formatWrong number formatUse E.164 format (+country code)
User not on WhatsAppRecipient doesn't have WhatsAppFall back to SMS
Rate limitedToo many messages too fastSlow down sending rate

Next Steps