Skip to main content

Senders

A Sender is a messaging profile that represents “who” is sending the message. Senders can be configured with multiple channels — SMS, WhatsApp, Email, Telegram, Instagram, and Voice — and Zavu intelligently routes messages through them.

What is a Sender?

Think of a sender as your messaging identity. It contains:
  • Phone number — used for SMS, WhatsApp, and Voice messaging
  • WhatsApp Business Account — for WhatsApp messaging (rich media, templates, interactive messages)
  • Email domain — for transactional email via Amazon SES
  • Telegram bot — for Telegram messaging
  • Instagram Business Account — for Instagram direct messaging
  • Webhooks — real-time notifications for inbound messages and delivery updates
  • Allowed destinations — countries you can send to

Channels

Zavu supports 6 messaging channels. Each has different requirements and routing behavior:
Smart routing and automatic fallback only apply to SMS and WhatsApp. Email, Telegram, Instagram, and Voice are standalone channels that must be explicitly specified with the channel parameter.

Default Sender

Every project has a default sender. When you send a message without specifying a sender, Zavu uses the default.
To use a specific sender, include the Zavu-Sender header:

Smart Routing

Zavu’s smart routing system automatically selects the optimal channel for each message based on cost, deliverability, and contact history. Smart routing applies only to SMS and WhatsApp.
Smart routing only applies to outbound messages. When replying to an inbound message, Zavu always responds on the same channel the contact used.

When Smart Routing Applies

How It Works

For outbound messages, the router checks if the contact has previously messaged you. If they have, this affects channel availability:
Since WhatsApp is cheaper than SMS, the router prefers WhatsApp when the 24-hour window is open. This means contacts who have messaged you before will typically receive messages via WhatsApp.

Channel Selection Algorithm

The router evaluates channels in this order:
  1. Filter viable channels: Remove channels that can’t deliver (e.g., WhatsApp without open window)
  2. Sort by cost: Cheapest channels first
  3. Check success rate: Channel must have at least 80% success rate (or fewer than 3 attempts for exploration)
  4. Select best option: First channel meeting all criteria

Cost Optimization

Smart routing can reduce messaging costs by up to 80% by preferring WhatsApp when available.

WhatsApp 24-Hour Window

WhatsApp has a strict rule: you can only send free-form messages within 24 hours of the last message received from the contact.
If the 24-hour window is closed and you don’t have a template configured, the smart router will automatically select SMS instead of failing.

Channel Metrics

Zavu tracks delivery metrics for each contact and channel:
The router uses these metrics to:
  • Avoid channels with low success rates (below 80%)
  • Prefer faster channels when speed matters
  • Explore new channels (first 3 attempts get a chance regardless of stats)

Automatic Fallback

When a message fails on one channel, Zavu automatically retries on an alternate channel. Fallback works between SMS and WhatsApp only.

Fallback Flow

Fallback Rules

Enabling/Disabling Fallback

Fallback is enabled by default. You can disable it per message by setting fallbackEnabled: false:

Standalone Channels

Email, Telegram, Instagram, and Voice operate independently from smart routing. You must explicitly specify the channel parameter when using them. These channels don’t participate in smart routing or automatic fallback because they use different recipient identifiers and have different delivery semantics than SMS/WhatsApp.

Rate Limiting

Zavu implements fair rate limiting to ensure reliable delivery for all users.

Limits by Channel

Round-Robin Fairness

When multiple projects are sending messages, Zavu uses round-robin scheduling to ensure fairness:
This prevents high-volume senders from blocking smaller senders.
Messages are never dropped due to rate limiting. They’re queued and sent at the next available slot.

Managing Senders

List Senders

Create Sender

Update Sender

Webhook Configuration

Each sender can have one webhook configured to receive real-time notifications for events like incoming messages and delivery updates. See the Webhooks guide for payload details and security.

Create Sender with Webhook

The response includes the webhook secret (only shown once):

Update Webhook

Regenerate Webhook Secret

If your webhook secret is compromised:

Available Webhook Events

For webhook payload structure and signature verification, see the Webhooks guide and Webhook Security.

Best Practices

Configure Multiple Channels

Set up both SMS and WhatsApp on your sender to enable smart routing and automatic fallback.

Use Templates for Outreach

When initiating conversations, use WhatsApp templates to avoid 24-hour window issues.

Monitor Metrics

Check your contact metrics to understand channel performance in your region.

Set Allowed Destinations

Restrict senders to specific countries to control costs and compliance.

Next Steps

Adding Channels

Connect SMS, WhatsApp, Email, Telegram, and more to your sender

Phone Numbers

Purchase and manage phone numbers for SMS and voice

Templates

Create WhatsApp templates for outbound messaging

Smart Routing Guide

Deep dive into routing configuration

API Reference

Manage senders programmatically: