We’re at capacity right now: new teams join from the waiting list. Join the waiting list →
Kolvantage

Docs › Marketing

Marketing channels

Marketing sends through four channels. Web push is built into Kolvantage. Email, SMS and WhatsApp go through your own accounts with Amazon SES, Twilio and Meta, so you pay those services directly and keep your own sender reputation.

You set up every channel in the website's Settings → Marketing. Each channel has its own card with an on/off switch and a Save button.

What you see

Settings → Marketing has these cards:

  • 🔔 Web push: how visitors are asked, the notification icon and default link, and the service worker file to add to your website.
  • ✉️ Email (Amazon SES): your AWS keys, the "from" address, the sending rate, and a test email.
  • 💬 SMS (Twilio): your Twilio account, the sending number or Messaging Service, and a test SMS.
  • 🟢 WhatsApp: your Meta app's details, the webhook, and Check the connection.
  • 🟢 WhatsApp replies: keyword replies, the auto-reply, and the STOP and START messages.
  • Frequency limits: the most messages one person gets per channel per day.

Secrets (the AWS secret key, the Twilio auth token, the WhatsApp token and app secret) are never shown again after you save them. Leave the field as it is to keep the saved value.

Web push

Web push shows notifications on your visitors' computers and phones, even when your website isn't open. It needs no outside service.

Set it up

  1. In Settings → General, make sure the website's Domain is set. Web push only runs on pages of that domain.
  2. Add a file called kv-sw.js at the root of your website, so it opens at https://your-site.com/kv-sw.js, with this one line:

``js importScripts('https://app.kolvantage.com/push-sw.js'); ``

  1. In Settings → Marketing → Web push, click Check the file. It should say "✓ kv-sw.js is on your website".
  2. Tick Web push is on, choose how to ask visitors (below), and click Save.

Nothing else changes on your pages: the Kolvantage script you already have asks visitors and subscribes them.

How visitors are asked

Choose How to ask visitors:

  • A small box first, then the browser's question (recommended). A box slides in at the top of the page with your text and two buttons. Allow shows the browser's own question. Later hides the box for 3 days.
  • The browser's question straight away.
  • Don't ask: nobody is asked until your own code calls Kolvantage.push('prompt'), for example from a "Get notifications" button.

Two more settings decide when:

  • Ask after (seconds on the page): 0 to 600 seconds, 5 by default.
  • Ask from the page view number: 1 to 20. With 3, the question comes on the visitor's third page view.

You also set The box's text, the Allow button and Later button labels, a Notification icon (a square image, 192×192 px) and Click opens (when a message has no link).

Visitors who blocked notifications in their browser are never asked again. Visitors who already allowed notifications on your website (for example with another push service) are subscribed quietly, without a new question, on their next visit.

From your own code:

Kolvantage.push('prompt');      // shows the box (or subscribes right away if already allowed)
Kolvantage.push('unsubscribe'); // unsubscribes this browser

When the visitor has blocked notifications for your website, Kolvantage.push('prompt') shows nothing (only the visitor can unblock them, in the browser's site settings), and a warning appears in the browser console.

What happens when a visitor allows

The browser's subscription is saved as a web push subscription for that visitor. If the visitor isn't in Marketing yet, they are added as an anonymous user, with their language, country and time zone. When they are identified later, the subscription moves to the customer. See Marketing.

A person can have several push subscriptions, one per browser. A push message goes to all of them. When a browser says it's no longer subscribed, that subscription is marked Unsubscribed.

A notification shows the template's title, text, image and icon (or the icon from Settings). Clicking it opens the template's link, or the default link from Settings, or your home page. If that page is already open in a tab, the tab comes to the front. If a device stays offline for more than 3 days, the notification isn't shown.

Email (Amazon SES)

Emails go out through your own Amazon SES account.

Set it up

  1. In AWS, open Amazon SES → Identities → Create identity, add your domain, and add the DNS records it shows (DKIM) at your DNS provider.
  2. Ask AWS to move your account out of the sandbox: SES → Account dashboard → Request production access.
  3. In IAM → Users, create a user with the ses:SendEmail permission, then Security credentials → Create access key.
  4. In Settings → Marketing → Email, fill in the AWS region, Access key ID, Secret access key and the From address (a verified domain or address in SES). From name and Reply-to are optional. Tick Email is on and Save.
  5. Send a test with Send test.

Bounces and complaints

AWS requires you to handle bounces and spam complaints. After you save, the Email card shows an address like https://app.kolvantage.com/api/v1/marketing/ses/WEBSITE-ID?key=….

  1. In AWS, open SNS → Create topic, then Create subscription with the protocol HTTPS and that address. Kolvantage confirms the subscription by itself.
  2. In SES → Identities → your domain → Notifications, send Bounce and Complaint notifications to that topic. You can also send Delivery notifications: emails are then shown as delivered.

A permanent bounce marks the address Bounced, and a complaint marks it Marked as spam. Kolvantage doesn't email that address again. Temporary bounces are ignored.

When SES refuses an email for good (for example the address is on your SES suppression list, or an address isn't verified), it fails and isn't tried again. An address on the suppression list is also marked Bounced.

Sending rate

Emails per second (1 to 500, 10 by default) spreads big sends out. Keep it under the Maximum send rate in SES → Account dashboard. When SES says the sending is too fast, it's having trouble, or your daily quota is used up, the email waits and is tried again later, shown as "Trying again" in the results. After 20 tries it fails.

What every email gets

  • An unsubscribe link at the bottom, unless you placed {{ unsubscribe_url }} in the email yourself.
  • The one-click unsubscribe headers (List-Unsubscribe and List-Unsubscribe-Post) that email programs show as an "Unsubscribe" button.
  • A plain-text version, made from the HTML.
  • The preview text (if the template has one), hidden at the top of the email.
  • Open and click tracking (see Tracking and results).

An email goes to the person's email subscription. If a person's subject comes out empty after personalization, they are skipped.

SMS (Twilio)

Text messages go through your own Twilio account.

Set it up

In Settings → Marketing → SMS, fill in:

  • Account SID (starts with AC) and Auth token, from your Twilio console.
  • A From number, or a Messaging Service SID (starts with MG). A Messaging Service is needed for RCS and sender pools.

Tick SMS is on, Save, and send a test with Send test.

Delivery reports come back to Kolvantage by themselves, so there is nothing else to configure in Twilio.

When Twilio is busy (too many messages at once), has trouble, or doesn't answer, the SMS waits and is tried again later, shown as "Trying again" in the results. After 20 tries it fails.

STOP and invalid numbers

Twilio handles replies like STOP. When a person has replied STOP, Twilio refuses the next message to them, and Kolvantage marks their SMS subscription Unsubscribed. Numbers Twilio says aren't valid mobile numbers are marked Invalid.

Phone numbers are always stored with the country code (e.g. +14155550100).

WhatsApp (Meta's Cloud API)

WhatsApp messages go directly through Meta's WhatsApp Cloud API, with no middleman. Meta bills you per message.

Set it up

In Settings → Marketing → WhatsApp, fill in:

  • Phone number ID and WhatsApp Business Account ID: in the Meta app → WhatsApp → API Setup.
  • Access token: a permanent token from Business Settings → Users → System users → Generate token, with the whatsapp_business_messaging and whatsapp_business_management permissions.
  • App secret: the Meta app → App settings → Basic → App secret. Kolvantage uses it to check that webhook calls really come from Meta.

Tick WhatsApp is on and click Save. A WhatsApp number can be set up for one website only.

The webhook

After saving, the card shows a Callback URL and a Verify token (the Verify token, and the webhook addresses of Twilio and Amazon SES, are shown only to people who can manage Marketing). In the Meta app, open WhatsApp → Configuration → Webhook → Edit, paste both, click Verify and save, then subscribe to the messages field.

The webhook brings delivery and read receipts, failures, and the messages customers send you.

Then click Check the connection. It shows your number, its verified name, its quality (high, medium or low) and how many of your templates are approved.

Under Advanced, Graph API version is empty by default (Kolvantage uses v23.0). Change it only if Meta asks you to.

Templates

Marketing messages on WhatsApp must use a template that Meta approved. You create templates in WhatsApp Manager → Message templates. In Kolvantage, go to Marketing → Templates → + New template → WhatsApp, choose an approved template, and fill its parts with Liquid. See Templates and Liquid.

WhatsApp refuses empty values. A person for whom any part comes out empty is skipped, so give a default, e.g. {{ first_name | default: "there" }}.

When WhatsApp says it's too busy or sending too fast, the message waits and is tried again. When a person turned off marketing messages from you in WhatsApp, their WhatsApp subscription is marked Unsubscribed.

WhatsApp replies

A customer's message to your number opens WhatsApp's 24-hour window. Replies inside it are your own text, need no template, and are free. Settings → Marketing → WhatsApp replies sets them up:

  • Keyword replies are checked first, in order. Each has words (comma separated), a match (contains the word or is exactly) and a reply. They answer every time, but the same reply goes to one person at most once a minute.
  • Auto-reply: when no keyword matches, this message answers, at most once per person every N hours (1 to 720, 24 by default). With Only outside business hours, it doesn't answer during the days and hours you set, in the time zone you set.
  • Unsubscribe and subscribe: a customer who replies STOP (or taps a "Stop promotions" button) is unsubscribed from WhatsApp marketing. START subscribes them again, or for the first time. You can set a message for each; empty means no message.

Replies can use Liquid, e.g. {{ first_name }}. STOP and START count when they are the whole message (ending punctuation is ignored). The words for STOP include stop, unsubscribe, opt out, cancel, end and quit; for START, start, unstop, subscribe and resume (plus some words in other languages).

Customers' messages and the automatic replies show on the person's profile. A message Meta delivers twice is handled once. Messages delivered more than 2 hours late are kept but not answered.

Frequency limits

Frequency limits set the most messages one person gets per channel in 24 hours (0 to 100, empty means no limit). Messages over the limit are skipped and show as skipped in the results. WhatsApp automatic replies don't count.

Tracking and results

Every send has one of these results:

ResultMeaning
SentThe channel accepted it
DeliveredWeb push: the notification was shown. Email: SES reported delivery (with Delivery notifications). SMS: Twilio reported delivery. WhatsApp: Meta reported delivery
OpenedEmail: the email's images loaded. WhatsApp: the person read it
ClickedWeb push: the notification was clicked. Email: a link was clicked
WaitingQueued, or waiting to be tried again
FailedThe channel refused it, or it bounced or was marked as spam
SkippedNot sent to this person, e.g. not subscribed, over the frequency limit, a data feed failed, or the message was empty for them

A click also counts as opened and delivered. Percentages in the results are of the messages sent.

How email tracking works:

  • Opens: a tiny invisible image is added to each email. Email programs that block images don't report opens, so open rates are always lower than the real number.
  • Clicks: every http or https link in the email goes through Kolvantage first, then on to its address. The links are signed, so they can't be changed to send people somewhere else. The unsubscribe link isn't tracked.

SMS clicks aren't tracked.

Unsubscribes

The unsubscribe link ({{ unsubscribe_url }}) opens a page with an Unsubscribe button, so link checkers in mail systems can't unsubscribe people by opening the link. Clicking the button, or the email program's one-click unsubscribe, marks the subscription that message went to as Unsubscribed. The link is added to emails automatically; you can also put {{ unsubscribe_url }} in any other template.

Limits

WhatLimit
Emails per second1 to 500 (default 10)
Tries for a message a provider puts off20
Web push: ask after0 to 600 seconds
Web push: ask from page view1 to 20
"Later" on the push boxhides it for 3 days
Frequency limits0 to 100 per person per channel per day
WhatsApp auto-replyat most once per person every 1 to 720 hours
WhatsApp keyword replies50, each up to 20 words

Who can use it

Changing the channels' settings and sending tests needs the Owner or Admin role and the Marketing tool. Others with the Marketing tool can see the settings, without the secrets.