Blog

How to A/B test automated postcards with Lob

An automated postcard program works when three things are in place: a signal that tells you who is ready to buy, a clean split between two versions and a holdout group, and a way to trace every response back to the card that produced it. Lob handles the printing, mailing, address checks, QR codes and delivery tracking through one API. The split between versions and the review loop are yours to build. This guide walks through the setup in seven steps.

The postcard loop: signal, verify, split, templates, send, capture and review, with the winning version becoming the new control

Step 1: Use signals to find buying intent

A postcard costs more than an email, so it should go to people who are showing intent right now. The strongest signals are moments when a company reveals that it is ready to buy:

  • A repeat visit to your pricing page, identified with a visitor identification tool such as RB2B or Leadfeeder.
  • A new job post for the role your product supports, found on the company's careers page or a job board.
  • A new executive who owns the budget for your category.
  • A recent funding round, which often comes with new hiring and new tools.
  • Research activity on review sites such as G2, where buyers compare vendors in your category.
  • A trial user who signed up and then went quiet, or a booked demo that became a no show.

Pull these signals into your CRM or a sheet every day. Each row holds the person's name, company, mailing address, the signal and the date it happened. Only rows with a signal move on to the next step. The signal also becomes the reason for the card: a note that references the role they are hiring for reads very differently from a generic brochure.

Step 2: Verify the address with Lob

A card sent to an outdated address wastes postage and makes your results look worse than they are, because an undelivered card is counted as no response. Lob's address verification is CASS certified, and its API documentation says that US addresses passed inline to the postcards endpoint are verified and standardized on the way in.

For a stronger filter, call Lob's address verification API before the split. Its response includes a confidence score from 0 to 100, and a score of 70 or above means the address has received at least one successful delivery. Many teams now work remotely, so an office address from a data provider may not reach the person. Prefer an address the contact gave you, and remove rows that fail verification before they enter the test.

Step 3: Split the list into versions and a holdout

Lob's Campaigns API attaches one creative to each campaign, and its documentation describes no automatic split between designs. The split therefore lives in your sheet or code. When a new row arrives, assign it at random to version A, version B or a holdout group that receives no mail. A simple rule is a random number between 0 and 1: below 0.4 is version A, 0.4 to 0.8 is version B, and above 0.8 is the holdout. Write the group into the row and never change it.

Assign groups at the level where the buying decision is made. If two people at the same company could both receive a card, assign the company once and give everyone there the same group. Otherwise one company sees both versions and the comparison no longer holds.

The holdout is what makes the test meaningful. People book meetings through other channels whether or not they receive mail. Comparing each version against a group that received nothing shows the effect of the postcard itself.

Step 4: Build two templates in Lob

Each version is a pair of templates, one for the front and one for the back. Lob accepts HTML, a saved template ID, or a PDF or image file for each side. Saved templates are the easiest to manage, because you can update the design in the Lob dashboard without changing your code.

Templates use merge variables in double braces, such as a first name, a company name or the role from the signal. Lob's Handlebars engine also supports conditional blocks, so one template can show a different line depending on the signal type: one sentence for a new hire, another for a pricing page visit.

Change one element between version A and version B: the headline, the offer, the image or the call to action. Lob's own guidance on direct mail testing makes the same recommendation, and suggests that the winning version becomes the control for the next round.

Choose the format before you design. Lob prints postcards in 4 by 6, 6 by 9 and 6 by 11 inch sizes, and only 4 by 6 can be mailed outside the US. USPS charges its postcard price only up to 4 1/4 by 6 inches and prices anything larger as a letter, so the 4 by 6 card is the least expensive to mail.

Step 5: Send each card through the Lob API

Each postcard is one request to Lob's postcards endpoint. These are the fields that matter for a test:

FieldWhat it holdsHow it supports the test
toan address ID or an inline addressthe recipient, verified on the way in
front, backa template ID or HTMLone template pair per version
merge_variablespersonal values, up to 25,000 charactersname, company, signal and the version's tracking link
metadataup to 20 key value pairs, keys up to 40 characters, values up to 500campaign, version, signal and test group
qr_codeposition, width and redirect URLa unique code per card, at least 1 inch wide
use_typemarketing or operationalmarketing for acquisition mail
mail_typeusps_first_class or usps_standardFirst Class for 4 by 6 cards
send_datea date up to 180 days aheadschedules the card and allows cancellation

The metadata is what makes the results readable later. A typical set is campaign set to "pricing_q4", version set to "a" or "b", signal set to "pricing_visit" and group set to "mail". Write the same values into the CRM row at the moment the card is sent, so the record and the mail piece always agree.

Lob's help center lists scheduled sends as an Enterprise feature, and a scheduled card can be canceled until its send date passes. That makes timing rules possible. For a demo no show, for example, a short delay gives the person time to rebook on their own, and the system cancels the card if they do.

Postage class affects timing. Lob's help center puts First Class domestic delivery at 5 to 7 business days and standard class at 7 to 21 business days, with no USPS delivery guarantee for standard mail. Standard class cannot be used with 4 by 6 postcards. Lob's core print time adds 2 production business days.

Optional: get a Lob API key and send a test card from your terminal

Before connecting Lob to a CRM or a workflow tool, it helps to send one card by hand and see exactly what the API expects. This takes a few minutes.

First, create an account at Lob.com and open Settings in the Lob dashboard, where your API keys are listed. Each account has two keys. The test key starts with test_ and the live key starts with live_. Lob does not charge any fees in the test environment, so use the test key while you build. Live requests generally require a payment method on the account, and objects created with one key cannot be used with the other.

Next, open a terminal. Lob uses HTTP Basic authentication: your API key is the username and the password is left blank, which curl handles with the u flag followed by your key and a colon. A single test postcard looks like this:

curl https://api.lob.com/v1/postcards -u test_YOUR_KEY: -d "description=Version A test" -d "to[name]=Jane Doe" -d "to[address_line1]=210 King St" -d "to[address_city]=San Francisco" -d "to[address_state]=CA" -d "to[address_zip]=94107" -d "front=<html>Hi {{name}}</html>" -d "back=<html>Book a time</html>" -d "merge_variables[name]=Jane" -d "metadata[version]=a" -d "use_type=marketing"

Replace test_YOUR_KEY with your own test key, and swap the sample address for your own. The address shown is the one Lob uses in its documentation. Lob returns the new postcard as JSON, including an ID that starts with psc_, and the card appears in your dashboard so you can check the layout and the merge variables. Requests without a valid key return a 401 error.

Once the test card looks right, the same request moves into your automation: a script, a workflow tool or your CRM sends one request per signal row, with the template IDs, metadata and QR code fields from the table above. Switch to the live key only when the test cards look exactly the way you want.

Step 6: Capture every response

Lob can generate a unique QR code for each card, and the redirect URL accepts merge variables. Point each code to a URL that carries the version and a recipient ID, so every scan identifies the exact card. Lob assigns each code a short redirect, which means the destination can be changed after the cards are in the mail. When a code is scanned, Lob sends a postcard.viewed webhook event. Lob's help center notes that scan data is deleted after 90 days, so write each event to your own records as it arrives.

Lob's webhooks also report delivery events such as in_transit, in_local_area and processed_for_delivery. Lob says it reports USPS scans for over 99% of mailings, while USPS does not guarantee every event. Start each card's response window from its processed for delivery event, or from the expected delivery date when no scan arrives.

QR scans alone undercount response, because some people type the address, call, or reply to an earlier email instead. Three practices recover most of the missing attribution:

  • Print a short personal URL next to the QR code, unique to each version.
  • Add a meeting code to the card and ask for it on the booking form.
  • Match every booked meeting against the mailed list by email and company, whatever path the person took.

Step 7: Review the program every week

A weekly review keeps the system running and stops the test from being called too early. Lob's guidance puts direct mail results analysis at 45 to 60 days after the send, so count each card's window from its own delivery date.

Each week, check five things:

  • Volume: new signal rows, cards sent and cards per group, compared against the random split.
  • Delivery: the share of cards with a processed for delivery event, and any returned to sender.
  • Response: scans, personal URL visits, meeting codes and matched meetings for each group, with the holdout alongside.
  • Timing: how many cards have passed the full response window.
  • Decision: keep running, stop for a clear result, or record the next single change to test.

When a version beats the holdout on the outcome you chose, it becomes the new control, and the next test changes one more element. Over a few rounds, the program improves the message, the signal selection and the timing together.

What Lob costs

As checked on 20 November 2026, Lob's pricing page lists postcards from $0.905 each on the free Developer plan, $0.645 on the Startup plan from $260 a month, and $0.615 on the Growth plan from $550 a month. Postage class, card size and volume move the real cost, so confirm current prices on the pricing page before planning a budget.

Does Lob have a built in A/B testing feature?
As checked on 20 November 2026, Lob's Campaigns API attaches one creative per campaign, and its documentation describes no automatic split. Most teams send each card through the postcards endpoint and record the version in metadata.
Which signals work best for postcards?
Signals that show a company is actively evaluating: repeat pricing page visits, a new job post for the role your product supports, a new budget owner, recent funding, and review site research in your category.
Which postcard size should we start with?
The 4 by 6 card is the least expensive to mail, because USPS gives postcard prices only up to 4 1/4 by 6 inches. Test a larger size later as its own version, with the extra postage counted in the result.
How do we know the postcard caused the meeting?
Compare each version against the holdout group that received no mail. The difference between the two is the effect of the postcard.
How long should a test run?
Long enough for every card to pass its full response window, which Lob's guidance puts at 45 to 60 days after delivery.

If you would like a signal based postcard program or another acquisition channel set up and measured this way, book a free working session.

Sources

Ready when you are

Let’s find your next source of pipeline

A free 30 minute working session on how you find customers today and what is holding back qualified conversations.

In the working session
  • We look at how you find customers today.
  • We find what is limiting qualified pipeline, whether you sell alone, run a team or have a channel that stalled.
  • You leave with a read on where your next customers could come from, and the first launch we would run.