n8n Direct Mail Automation: Self-Hosted & Cloud Workflows with n8n-nodes-thanks-io
n8n direct mail automation connects self-hosted or Cloud n8n workflows to physical handwritten-style postcards, letters, folded notecards, and Smart Gift Cards via the verified n8n-nodes-thanks-io community node, HTTP Request batching, or Thanks.io's 58-tool MCP server (https://mcp.thanks.io/mcp). US postage is included with zero minimums—4×6 postcards cost $1.18 Pay as you go, $0.77 Business ($49/mo), or $0.64 Professional ($199/mo).
Verified npm Node
n8n-nodes-thanks-io
n8n Cloud & Docker self-hosted
4×6 / 6×9 Postcards
$0.64 / $0.71
Pro tier · US postage included
MCP AI Agent Tools
58 Tools Ready
mcp.thanks.io/mcp + spend safety
Letters & Notecards
$0.99 / $1.49
Windowless / Notecard Pro
Built for Technical Operators & AI Engineers
Why Self-Hosted & Cloud n8n Teams Automate Direct Mail with Thanks.io
Keep customer PII inside your own Postgres/VPS stack, eliminate per-task SaaS surcharges, and pair n8n's Code, Switch, and AI Agent nodes directly with Thanks.io's verified node, REST API v2, and 58-tool MCP server.
Verified Community Node + Self-Hosted Control
Install n8n-nodes-thanks-io on n8n Cloud or inside your own Docker/Kubernetes cluster with zero per-task middleware fees. Reference saved Creative IDs so design updates happen in Thanks.io without touching your JSON workflows.
Native AI Agent + 58-Tool MCP Pipeline
Wire n8n's MCP Client Tool straight to Thanks.io's hosted MCP server (mcp.thanks.io/mcp) or pair Claude/OpenAI LLM nodes with REST API v2 to draft unique per-recipient copy—with preview-order proofs and spend-safety toggles off by default.
Handwritten-Style Rendering & Dynamic HTML
Thanks.io renders handwritten-style notes via its proprietary 300 DPI digital handwriting engine (AI Fonts glyph variation + Realism Mode)—not robotic plotters or real pens. Need programmatic layouts? Pass front_html and background_html directly through REST API v2.
Copy-Paste n8n Nodes, Code Batchers, MCP Configs & QR Webhooks
Switch between the four production n8n architectures—verified n8n-nodes-thanks-io, batched Code + HTTP Request, AI Agent MCP Client Tool, and Postgres-deduplicated qr.scanned return webhooks.
Trigger -> Address IF Guard -> Verified n8n-nodes-thanks-io Community Node
Thanks.io maintains the verified n8n-nodes-thanks-io package listed directly in n8n Cloud (n8n.io/integrations/thanksio/) and installable in one click inside self-hosted Settings -> Community Nodes. Authenticate once with your Thanks.io API key, enable Test Mode for $0 dry runs, reference a saved Creative ID, and map upstream trigger fields using standard n8n {{ $json.* }} expressions.
Workflow Build Steps
- 1On n8n Cloud, search for Thanks.io in the node panel and click Install; on self-hosted n8n, open Settings -> Community Nodes -> Install and enter n8n-nodes-thanks-io.
- 2Create a reusable front artwork design and message template in Thanks.io, note its Creative ID, and toggle Test Mode ON under Account Settings -> API Access while building.
- 3Place an IF node right before Thanks.io verifying non-empty street address, city, 2-letter US state, and 5-digit ZIP—routing incomplete rows to a fallback branch instead of throwing errors.
- 4Add the Thanks.io node (Send Postcard / Send Letter / Send Notecard / Send Gift Card), map {{ $json.* }} expressions, and pass your primary key or CRM ID in custom1 for closed-loop QR attribution.
# Option A: n8n Cloud (Zero CLI required)
# Open any workflow -> "+" -> Search "Thanks.io" -> Install verified community node
# Verified directory: https://n8n.io/integrations/thanksio/
# Option B: Self-Hosted n8n UI
# Settings -> Community Nodes -> Install a community node:
n8n-nodes-thanks-io
# Option C: Self-Hosted Docker / docker-compose.yml environment flags
# Ensure community nodes are enabled and persisted in /home/node/.n8n
N8N_COMMUNITY_PACKAGES_ENABLED=true
N8N_REINSTALL_MISSING_PACKAGES=true
WEBHOOK_URL=https://n8n.yourdomain.com/
# Credentials inside n8n:
# Credential Type: Thanks.io API
# API Key: Paste from dashboard.thanks.io/app/settings/api-access
# Tip: Keep "Test Mode" enabled in Thanks.io API Settings during dry runs ($0 cost).6 Production n8n Direct Mail Automation Playbooks
Filter by architecture, inspect the exact n8n trigger, Code/IF guardrails, and verified unit cost, and copy handwritten-style message templates wired with Thanks.io merge tags (%FIRST_NAME%, %CUSTOM2%).
Postgres / Supabase Query -> Code Node Batch -> 100-Card REST API v2 Drop
Run nightly or weekly lifecycle mailings directly from your own database without paying per-task Zapier/Make fees. n8n queries eligible rows, chunks them into 100-recipient JSON batches, mails via Thanks.io, and stamps mailed_at atomically.
Schedule Trigger (Weekdays 08:30 CT) -> Postgres / Supabase SELECT (eligible AND mailed_at IS NULL)
Code Node (validate US 2-letter state + 5-digit ZIP, chunk 100/array) -> HTTP Request POST /api/v2/recipients/postcard -> Postgres UPDATE mailed_at & order_id
4×6 or 6×9 Postcard (Saved Creative ID)
4×6: $0.64 Pro / $0.77 Biz / $1.18 Free · 6×9: $0.71 Pro / $0.91 Biz (+$0.05 First Class) · Orders submitted before 11:00 AM Central typically print & enter USPS the same business day; First Class est. 5–10 business days
Store your primary database UUID in custom1 so incoming qr.scanned webhooks update the exact user row in Postgres automatically.
Hi %FIRST_NAME%, thanks for being part of our community! We put together a quick personalized update for %CUSTOM2%—scan the QR code on this card anytime to view it directly.
Enriched CRM Lead -> Claude/OpenAI Copy Generator -> Handwritten-Style Windowless Letter
Combine n8n's AI nodes with Thanks.io's digital handwriting engine to draft a tailored, concise physical letter for each high-intent B2B account based on firmographics or recent activity—with strict word-count validation before print.
Webhook / HubSpot / Pipedrive Trigger (Qualified Target Account or Stalled Deal >= 14 days)
Basic LLM Chain (Structured JSON output, 45–80 words, no markdown) -> IF word count valid & address complete -> n8n-nodes-thanks-io (Send Windowless Letter)
8.5×11 Windowless Letter (Real Stamp)
$0.99 Pro / $1.35 Biz / $2.56 Pay as you go (+$0.21 optional First Class) · First Class typically delivers in an estimated 5–10 business days with USPS IMb delivery webhooks
Pass deal_id in custom1 so a qr.scanned webhook pings the assigned AE in Slack and logs an engagement event in the CRM.
Hi %FIRST_NAME%, I know inboxes stay crowded, so I wanted to send a brief physical note regarding %CUSTOM2%. If you would like to compare notes on what we outlined, scan the QR code below to book 15 minutes directly. Best, Alex
n8n AI Agent + Thanks.io MCP Client -> Proof Preview -> Slack Human Approval
Connect n8n's MCP Client Tool to https://mcp.thanks.io/mcp so an AI assistant can inspect creatives, preview Targeted Leads ($0.10/lead with free match counts), run preview-order cost/proof checks, and request human approval in Slack before spending a cent.
Slack Slash Command / Chat Trigger ('Draft a 6x9 campaign for Austin homeowners searching solar')
n8n AI Agent + MCP Client Tool (https://mcp.thanks.io/mcp) -> preview-order -> Slack Send and Wait for Approval -> IF Approved -> Dispatch Order
6×9 Street View Postcard + Optional Lead Feeds ($0.10/lead)
6×9 Postcard: $0.71 Pro / $0.91 Biz · Lead Feeds: $0.10 per net-new lead (free preview first) · Standard Mail est. 10–20 business days; First Class (+$0.05 on 6×9) est. 5–10 business days
Agent calls create-webhook via MCP so every qr.scanned event posts live lead updates back into your n8n Slack workflow.
Hi %FIRST_NAME%, we noticed homeowners in your neighborhood are researching upgrades this season. Scan the QR code on this card for a no-pressure local checklist and estimate range.
Stripe / WooCommerce / Shopify Order -> Switch Node -> Notecard or Smart Gift Card
Use n8n's Switch node to route every paid order to the highest-ROI physical format: standard buyers receive a warm 4×6 postcard while high-value accounts receive a real-stamped Folded Notecard or pay-on-redemption Smart Gift Card.
Stripe Trigger (invoice.paid / checkout.session.completed) or WooCommerce / Shopify Order Webhook
Switch on amount_total: >= $500 -> n8n-nodes-thanks-io Send Gift Card or Folded Notecard | < $500 -> Send 4×6 Postcard | No Street Address -> Email-to-Address Append ($0.07/lookup)
Folded Notecard or Pay-on-Redemption Smart Gift Card
Notecard: $1.49 Pro / $1.83 Biz · Gift Card (Business+): $1.49 Pro / $1.83 Biz + redeemed face value only · Optional +$0.21 First Class upgrade for estimated 5–10 business day delivery & IMb tracking
Pass Stripe customer_id or order_id in custom1 so qr.scanned triggers a VIP onboarding alert in Slack.
Hi %FIRST_NAME%, thank you for choosing us! We truly appreciate working with %CUSTOM2%. Coffee is on us this week—scan inside to redeem your gift card whenever you like.
Inbound Form Webhook (Tally / Typeform / Custom App) -> Instant Card + Email Append Fallback
Capture form submissions on your self-hosted n8n instance with zero SaaS polling delay. Leads with a US street address trigger an instant 6×9 postcard; email-only leads route to Thanks.io Email-to-Address Append ($0.07/lookup).
n8n Webhook Node (POST /webhook/inbound-lead) receiving form JSON
IF street + 2-letter state + 5-digit ZIP valid -> Send 6×9 First Class Postcard | False Branch (email present) -> Add to Thanks.io Mailing List with Email-to-Address Append
6×9 Postcard or Mailing List with Email-to-Address Append
6×9 First Class: $0.76 Pro / $0.96 Biz (incl. +$0.05 First Class) · Append: $0.07/lookup ($0 print if unmatched) · First Class typically delivers in an estimated 5–10 business days; Standard Mail typically 10–20 business days
Echo form_submission_id in custom1 so qr.scanned marks the lead as high-intent inside your CRM or database.
Hi %FIRST_NAME%, thanks for reaching out today! We mailed this quick card so our direct link stays handy on your desk—scan the QR code anytime to pick up where we left off.
Thanks.io qr.scanned & order_item.delivered -> Postgres Dedupe -> Slack & CRM Sync
Close the physical-to-digital attribution loop on your own infrastructure. Catch real-time QR scans and First Class USPS IMb delivery webhooks, deduplicate atomically on event_id, and alert sales reps within seconds.
n8n Webhook Node registered via POST /api/v2/webhooks (Business $49/mo or Professional $199/mo)
Postgres INSERT ON CONFLICT (event_id) DO NOTHING -> IF inserted -> Switch on event_type ('qr.scanned' vs 'order_item.delivered') -> CRM Update + Slack Alert
Works across every Business+ ($49/mo) & Pro ($199/mo) mailer
Unique per-recipient QR codes & webhooks included on Business ($49/mo) and Professional ($199/mo) · order_item.delivered fires automatically on First Class mailings via USPS Intelligent Mail Barcode scans
Look up {{ $json.body.data.custom1 }} to trigger an instant rep notification or launch a timed post-delivery email/SMS check-in.
// No outbound print copy required — this workflow handles inbound Thanks.io webhooks. // Best practice: always pass your internal user_id or CRM record_id in recipients[].custom1 on every outbound n8n workflow.
n8n JavaScript Expressions to Thanks.io Fields
Sanitize postal columns inline inside n8n-nodes-thanks-io or HTTP Request JSON bodies using native {{ $json.* }} JavaScript expressions so null fields or dirty ZIPs never stall a workflow execution.
| Data Point | n8n Expression | Thanks.io JSON / Node Field | Implementation Notes |
|---|---|---|---|
| Recipient NameRequired | {{ ($json.first_name + ' ' + ($json.last_name || '')).trim() || 'Valued Customer' }} | recipients[].name | Safely falls back when last_name is null or blank; also populates the %FIRST_NAME% merge tag inside card copy. |
| Street Address 1Required | {{ ($json.street_address || '').trim() }} | recipients[].address | Validate with an n8n IF node before sending so blank records route to Email-to-Address Append ($0.07/lookup) instead of failing. |
| Apt / SuiteOptional | {{ ($json.apt_suite || '').trim() }} | recipients[].address2 | Optional unit/suite line. Safe to pass an empty string when not present. |
| CityRequired | {{ ($json.city || '').trim() }} | recipients[].city | Required for US and international postal routing. |
| State / ProvinceRequired | {{ ($json.state || '').trim().toUpperCase().slice(0, 2) }} | recipients[].province | Standardizes lowercase or padded strings into 2-letter US postal codes (e.g., TX, NY, CA). |
| ZIP / Postal CodeRequired | {{ String($json.zip || '').replace(/[^0-9]/g, '').slice(0, 5) }} | recipients[].postal_code | Casts numeric ZIPs to string, strips punctuation/ZIP+4 suffixes, and ensures clean 5-digit US codes (pad leading zeros in SQL/Sheets). |
| Country CodeOptional | {{ ($json.country || 'US').trim().toUpperCase() }} | recipients[].country | 2-letter ISO code defaulting to US. Thanks.io also mails internationally across postcards, letters, notecards, and Magnacards. |
| Source Record IDOptional | {{ String($json.record_id || $json.id) }} | recipients[].custom1 | Essential for closed-loop attribution: echoed verbatim in qr.scanned and order_item.delivered webhooks so n8n updates the exact DB/CRM row. |
| Company / Workflow TagOptional | {{ ($json.company || 'n8n_workflow').trim() }} | recipients[].custom2 | Available both as %CUSTOM2% inside your handwritten-style message and inside inbound webhook payloads for attribution. |
| Absentee Property AddressOptional | {{ ($json.property_address || '').trim() }} | recipients[].absentee_address | Optional real-estate/home-service field: prints the target property's Google Street View photo while mailing to the owner's separate address. |
Email-Only Records? Branch to Email-to-Address Append ($0.07/lookup)
On the False output of your n8n Address IF Guard, send email-only contacts to a Thanks.io Mailing List configured with Email-to-Address Append ($0.07/lookup). Matched US households automatically enter your direct mail sequence while unmatched emails incur zero print or postage fees.
n8n vs. Zapier & Make.com for Direct Mail Pipelines
Choose n8n when you want self-hosted data sovereignty, zero per-task fees on large Postgres/Supabase drops, raw JavaScript Code batching, or native MCP Client Tool AI agent orchestration. Prefer managed no-code clouds? Compare our Zapier Guide and Make.com Guide.
Read the Direct Mail REST API Implementation Guide →n8n Direct Mail Budget & Plan Optimizer
With self-hosted n8n eliminating per-task middleware markups, your only variable cost is Thanks.io printing & USPS postage. Model your monthly workflow volume across Pay as you go ($0/mo), Business ($49/mo), and Professional ($199/mo).
Highest-efficiency self-hosted n8n workflows for Postgres batch drops, form leads, and automated thank-you cards.
Increase above 0% if your n8n IF False branch resolves email-only signups into US postal addresses.
Pay as you go
$0/mo + $1.23/pc
$615
/mo total ($1.23 eff./pc)
Zero monthly fee; ideal for testing self-hosted n8n workflows and REST API v2 dry runs.
Business
$49/mo + $0.82/pc
$459
/mo total ($0.92 eff./pc)
Unlocks qr.scanned n8n webhooks, pay-on-redemption Smart Gift Cards & AI Receptionist.
Professional
$199/mo + $0.69/pc
$544
/mo total ($1.09 eff./pc)
Lowest wholesale rates ($0.64 4×6, $0.99 windowless letter, $1.49 notecard) + full webhooks.
Plan Recommendation for 500 4×6 Postcards/mo
Selecting Business ($49/mo) saves approximately $156/month versus Pay as you go while unlocking live QR & First Class IMb webhooks.
Comparing Lob or PostGrid in n8n HTTP Workflows?
Legacy print APIs gate volume behind $260–$550/month platform tiers and require custom PDF/HTML renderers. Thanks.io starts at $0/mo with a verified n8n node, saved Creative IDs, built-in QR webhooks, and 58 MCP tools.
| Thanks.io Mail Format | Pay as you go ($0/mo) | Business ($49/mo) | Professional ($199/mo) | First Class Upgrade |
|---|---|---|---|---|
| 4x6 PostcardStandard size with QR tracking | $1.18 | $0.77 | $0.64 | +$0.05 |
| 6x9 PostcardLarger format with more impact | $1.65 | $0.91 | $0.71 | +$0.05 |
| 6x11 PostcardMaximum size for premium campaigns | $1.87 | $1.01 | $0.76 | +$0.21 |
| Windowed LetterProfessional business correspondence | $1.24 | $0.83 | $0.79 | +$0.21 |
| Windowless LetterClean envelope design with Real Stamp | $2.56 | $1.35 | $0.99 | +$0.21 |
| NotecardPremium folded format with Real Stamp | $3.04 | $1.83 | $1.49 | +$0.21 |
| Gift CardBusiness or Professional plan required; gift card amount added separately | Business+ required | $1.83 + Gift Amount | $1.49 + Gift Amount | +$0.21 |
| 6x9 MagnacardMagnetic postcard that sticks to fridges | $2.08 | $1.43 | $1.04 | +$0.21 |
How to Launch n8n Direct Mail Automation in 4 Steps
Install n8n-nodes-thanks-io on Cloud or self-hosted Docker, dry-run your IF guards and MCP previews in free Test Mode, send one live test card to yourself, and activate with zero minimum volume.
Install n8n-nodes-thanks-io & Enable Test Mode
Install the verified n8n-nodes-thanks-io community node (one click on n8n Cloud or Settings -> Community Nodes on self-hosted), save a reusable Creative ID in Thanks.io, and toggle Test Mode ON for $0 dry runs.
Add Your Trigger, Address IF Guard & Clean Expressions
Connect Postgres, Supabase, HubSpot, Stripe, or a Webhook trigger. Insert an IF node checking street, city, 2-letter state, and 5-digit ZIP—routing email-only rows to $0.07 Email-to-Address Append.
Wire the Verified Node, Batched HTTP, or 58-Tool MCP Client
Use n8n-nodes-thanks-io for quick single sends, Code + HTTP Request to batch 100+ recipients with Realism Mode or custom front_html, or attach n8n's MCP Client Tool to https://mcp.thanks.io/mcp for AI agent workflows.
Close the Loop with an Idempotent n8n Webhook Trigger
On Business ($49/mo) or Professional ($199/mo), register your n8n Production Webhook URL via POST /api/v2/webhooks to deduplicate qr.scanned and First Class order_item.delivered events by event_id in Postgres or Redis.
n8n Direct Mail Automation FAQ
Direct answers on installing n8n-nodes-thanks-io, self-hosted Docker flags, connecting n8n AI Agents to the 58-tool MCP server, QR webhooks, and verified pricing.
Expand Your Automated Direct Mail Stack
Related MCP, API & Workflow Guides
AI Direct Mail Agent & MCP Guide
Connect n8n AI Agents, Claude, or Cursor to Thanks.io's 58-tool hosted MCP server with spend-safety previews.
Thanks.io Product MCP Server
Explore all 58 tools at https://mcp.thanks.io/mcp—OAuth or Bearer auth, Targeted Leads, and proof previews.
Postcard & Direct Mail REST API
Endpoint reference for n8n HTTP Request nodes: postcards, windowless letters, front_html, gift cards & Test Mode.
Zapier Direct Mail Automation
Compare self-hosted n8n workflows against Thanks.io's verified Zapier app across 8,000+ cloud tools.
Make.com Direct Mail Automation
See how Make.com visual scenarios, Routers, and Array Aggregators compare with n8n Code & Switch nodes.
Direct Mail Webhooks & QR Tracking API
Full JSON schemas for qr.scanned and First Class order_item.delivered events with event_id deduplication.
Thanks.io Direct Mail Pricing
Transparent US, international, nonprofit, and Enterprise per-piece rates with postage included and zero minimums.
Automated Handwritten-Style Thank You Notes
Pair n8n triggers with folded notecards and digitally rendered handwriting for automated client appreciation.
Turn Any Self-Hosted or Cloud n8n Workflow Into Trackable Physical Mail
Start on Pay as you go ($0/month) with free Test Mode, or upgrade to Business ($49/mo) or Professional ($199/mo) for wholesale rates, real-time qr.scanned n8n webhooks, and pay-on-redemption Smart Gift Cards. Zero minimums, US postage included.
Connected Integrations & Direct Mail Playbooks
Explore More Ways to Automate Physical Mail
HubSpot Direct Mail
7 native HubSpot workflow actions and 2-way contact sync.
GoHighLevel Direct Mail
Inbound webhooks & sub-account mail automation for GHL agencies.
Shopify Abandoned Checkout
Recover abandoned carts with automated First-Class postcards.
Follow Up Boss Direct Mail
Embedded FUB sidebar app, Street View cards & neighbor blasts.
Zapier Direct Mail (8,000+ Apps)
Trigger single-piece postcards, letters, and gift cards without code.
ActiveCampaign Direct Mail
Trigger postcards & letters from ActiveCampaign webhooks, Zapier, Make, or n8n.
Klaviyo Direct Mail
Trigger postcards, VIP notecards & Smart Gift Cards from Klaviyo Flow Webhooks.
Make.com Direct Mail
Build Make.com scenarios with routers, batched HTTP calls & QR scan return loops.
AI Direct Mail Agent & MCP Guide
58-tool hosted OAuth MCP server for Claude, Cursor & OpenAI agents.