> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Connect Lob

> Connect your own Lob account to send printed postcards, each with its own tracked QR code, so you can see who scanned and ring them soon after.

To connect Lob, copy your test key from your Lob account, and your live key when you have it. Paste them into the Lob card in SmartAlex. SmartAlex can then send printed postcards through your Lob account, each with its own QR code, and record every scan against the card. You can also have your agent ring the contact a few minutes after they first scan.

* **You will have:** postcards you can send with a tracked QR code, and an optional call after a first scan.
* **Time:** about five minutes.
* **You need:** a Lob account with a test key (and a live key for real mail), and a SmartAlex role that can edit connectors. Lob bills postage to your Lob account.

> [!NOTE]
>
> In the app: **Sidebar → Agent Settings → Connectors** (`/home?settings=connectors`), then **Lob** under **Marketing**.

## What does Lob give my campaigns?

Lob prints and posts the cards and bills you directly. Each card gets a short code. The QR code points at a SmartAlex link, which records the scan and then sends the reader on to the web address you chose. Lob is not an agent tool: your agent never sends mail.

The diagram below shows a postcard going out and a scan coming back.

```mermaid theme={null}
sequenceDiagram
    participant Y as You
    participant S as SmartAlex
    participant L as Lob
    participant R as Recipient
    Y->>S: Send a card (address, web address, note)
    S->>L: Print and post, with a QR code
    L-->>R: Postcard arrives
    R->>S: Scans the QR code
    S->>S: Records the scan against the card
    S-->>R: Opens your web address
    S-->>Y: Optional: agent rings the contact
```

Postcards are 6x9, sent first class, to US addresses. Lob bills each postcard to your Lob account at Lob's own price, which the card shows.

## How do I connect Lob?

**1. Open the Lob keys page**

In Lob, open **Settings → API Keys**. In SmartAlex, **Find your keys in Lob** on the Lob card opens it.

**2. Copy the keys**

Copy the test key (it starts with `test_`) and, if you have it, the live key (it starts with `live_`).

**3. Open Lob in Connectors**

In SmartAlex, click **Sidebar → Agent Settings → Connectors**, pick the **Marketing** category and click **Lob** ("Send postcards from your campaigns, with a QR code on each card that shows who scanned it.").

![The Lob connector form](https://mintcdn.com/smartalex/Lsiy_I41mrzc0zEG/images/screens/integrations-hub/lob-connect-form.webp?fit=max\&auto=format\&n=Lsiy_I41mrzc0zEG\&q=85\&s=1d7a94a830e56e99db7eda41c24a574f)

Paste your Lob keys here.

**4. Paste the keys**

Paste the test key into **Test key** (placeholder `test_...`) and, if you have it, the live key into **Live key (optional)** (placeholder `live_...`).

**5. Connect**

Click **Connect**. SmartAlex checks each key with Lob before saving it. You see "Lob connected." A new connection always starts in test mode, so nothing is posted yet.

**6. Send a test card**

Under **Send a card**, fill in **Name**, **Company**, **Street address**, **City**, **State** and **ZIP**, the **Web address the QR code opens**, the **Front of the card** and the **Note on the back**. Click **Send test card**. You see "Test card rendered." Under **Recent mail**, click **Proof** to check the design.

**7. Switch on real mail**

If you did not add a live key yet, paste it into **Live key** and click **Add** ("Live key added."). Then switch on **Send real mail**. You see "Real mail is on." The button now reads **Post this card**.

**8. Choose whether a scan rings**

Open the connector from an agent's settings and switch on **Call when someone scans**. You see "Scans now ring the contact."

## Settings

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **Test key** | Your Lob test key. It renders cards without posting. | Empty | Paste it once to connect. |
| **Live key (optional)** | Your Lob live key. It posts real mail once your Lob account is approved. | Empty | Add it when you are ready to post. |
| **Find your keys in Lob** | Opens Lob's API Keys page. | n/a | When you need a key. |
| **Send real mail** | Switches between test mode and live mode. Disabled until a live key is added. | Off (test mode) | Switch on to print and post real cards. |
| **Call when someone scans** | Rings the contact a few minutes after they first scan, within your calling hours. A campaign's cards are rung by the campaign's agent. | Off | Switch on if you want a fast follow-up call. |
| **Use (agent) instead** | Moves the scan call to the agent whose settings you opened it from. Shown when another agent is set. | n/a | To change which agent rings. |
| **Disconnect** | Removes the connection and your keys from SmartAlex. | n/a | When you stop using Lob. |

The **Send a card** form on the connected card:

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **Name** and **Company** | The recipient. Add at least one. | Empty | Each card. |
| **Street address**, **City**, **State**, **ZIP** | The US address. State is two letters, for example TX. ZIP is five digits, or ZIP plus four. | Empty | Each card. |
| **Web address the QR code opens** | An https address the reader lands on after the scan is recorded. | Empty | Point it at a booking page or offer. |
| **Front of the card** | The headline, up to 90 characters. | Empty | Each card. |
| **Note on the back** | The message, up to 900 characters. | Empty | Each card. |
| **Send test card** or **Post this card** | Renders a test card, or prints and posts a real one. | **Send test card** | Changes with **Send real mail**. |

**Recent mail** shows your last ten cards with a status, the sent date, the expected delivery date (live mail), a **Proof** link and the scan count. Statuses include Sending, Accepted, Mailed, In transit, Delivered and Returned to sender. A test card reads "Rendered, not posted".

Where **Call when someone scans** is on, the first scan books a call to that contact within your calling hours. Calls follow your usual rules, including Do Not Call. See [Campaigns](https://docs.getsmartalex.com/essentials/campaigns.md) and [Run a campaign](https://docs.getsmartalex.com/how-to/run-a-campaign.md).

## What permissions does Lob ask for?

Lob has no sign-in screen. The keys you paste let SmartAlex create postcards and read their status on your Lob account. The test key renders without posting. The live key posts real mail.

## Check it worked

1. The Lob card shows **Connected**, with "Test mode: cards are rendered for checking, nothing is posted."
2. After **Send test card**, the card appears under **Recent mail** as "Rendered, not posted" with a **Proof** link.
3. After switching on real mail and scanning a live card, **Recent mail** shows "1 scan".

## How do I disconnect Lob?

**1. Open the card**

Click **Sidebar → Agent Settings → Connectors → Lob**.

**2. Disconnect**

Click **Disconnect**. You see "Lob disconnected." Your keys are removed from SmartAlex.

## If it does not work

| What you see | What to do |
| - | - |
| "Paste your Lob test key. It starts with test\_." | Paste the test key into **Test key**. |
| "That test key does not look right. It starts with test\_." | Copy the test key again from Lob. |
| "That live key does not look right. It starts with live\_." | Copy the live key again from Lob. |
| "Lob rejected the test key. Copy it again from your Lob dashboard." | Copy the key again in full. |
| "Add your Lob live key before switching on real mail." | Paste the live key and click **Add**, then switch on real mail. |
| "Postcards go to US addresses for now." | Use a US address. |
| "Add the two-letter state, for example TX." | Enter the two-letter state code. |
| "Add a five-digit ZIP code." | Enter a five-digit ZIP, or ZIP plus four. |
| "Add the https web address the QR code should open." | Enter a web address that starts with `https://`. |
| "The note is too long for the card. Shorten it and send again." | Shorten the note on the back. |
| "Choose the agent who rings before switching this on." | Open Lob from an agent's settings, then switch on **Call when someone scans**. |

## Questions people ask

> [accordion] Do I pay SmartAlex or Lob for the postcards?
>
> You pay Lob. You connect your own Lob account, and Lob bills postage to it.

> [accordion] Where do the postcards go?
>
> To US addresses. The recipient needs a name or company, a street address, city, two-letter state and ZIP code.

> [accordion] How does the QR code know who scanned?
>
> Each card has its own short code. The QR points at a SmartAlex link that records the scan against that card, then opens your web address.

> [accordion] What is test mode?
>
> The card is rendered so you can check it, and nothing is printed or posted. It shows as "Rendered, not posted" in **Recent mail**.

> [accordion] Will my agent ring everyone who scans?
>
> Only if **Call when someone scans** is on. It rings the contact a few minutes after their first scan, within your calling hours.

## Next

> [card] [Connect Gate access](https://docs.getsmartalex.com/integrations/gate-access.md)
>
> Open your gates from SmartAlex.

> [card] [Run a calling campaign](https://docs.getsmartalex.com/how-to/run-a-campaign.md)
>
> Set up the campaign that rings after a scan.

> [card] [Campaigns](https://docs.getsmartalex.com/essentials/campaigns.md)
>
> How campaigns call a list.

> [card] [How connectors work](https://docs.getsmartalex.com/integrations/how-connectors-work.md)
>
> Connectors that feed campaigns and connectors that give tools.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.