Feature Spotlight: Mail Flows
Mail Flows User Guide
A complete guide to creating, configuring, and using Mail Flows for automated postal mailing.
What Are Mail Flows?
Mail Flows are reusable mailing templates that let you automatically retrieve addresses from a document you send a lot. You can
Save your rules once, use them repeatedly
Automatically extract addresses from documents
Send bulk mail with a single zip file upload
Think of a Mail Flow as a "recipe" for your mail - configure it once, then just add documents whenever you need to send.
Getting Started
Creating Your First Flow
Navigate to Services > Flows in the main menu
Click Add a Flow
Fill in the basic information:
Name: A descriptive name (e.g., "Monthly Invoices", "Client Letters")
Description: Brief explanation of what this flow is for
Enter your Return Address (sender's address):
Full Name (max 40 characters)
Street Address
City, State, Zip Code
Country and Phone (optional)
Configure Flow Properties:
Color: Enable color printing
Single Sided: Print on one side only
Return Envelope: Include a return envelope
Service Type: Choose your mailing method
Click Create
Service Types Explained
Service | Best For | Features |
|---|---|---|
First Class Mail | Standard business letters | Economical, reliable delivery |
First Class - Full Window | Branded correspondence | Custom logo on envelope |
Certified Mail | Legal documents | Proof of mailing |
Certified + Electronic Receipt | Important notices | Digital delivery confirmation |
Certified + Green Card | Legal requirements | Physical signed receipt |
Postcard | Marketing, announcements | Coming soon! |
Notecard | Personal correspondence | Coming Soon |
Address Extraction with AI Prompts
The most powerful feature of Mail Flows is automatic address extraction. Instead of manually entering addresses, the system can read them directly from your documents.
How It Works
You write a natural language prompt describing where to find the address
Upload a sample document to test
The AI extracts the address based on your instructions
Save the configuration - it applies to all future uploads
Setting Up Address Extraction
Open your flow and go to the Recipient Address tab
Write your extraction prompt in the text area
Upload a sample PDF
Click Test Address Parse
Review the extracted address
Adjust your prompt if needed
Click Save when satisfied
Writing Effective Prompts
Prompt Basics
Your prompt should clearly describe:
Where the address is located on the page
What labels or markers identify it
Which address to extract (if multiple exist)
Example Prompts
Standard Letter Format:
Extract the recipient's mailing address from the top portion of the
first page. Look for the address block that appears below the date
and before the salutation (Dear...).
Invoice with Ship-To:
Find the address labeled "Ship To" or "Deliver To" on this invoice.
This is typically on the right side of the document header. Extract
the complete mailing address including company name if present.
Legal Document:
Extract the defendant's address from the caption section of this
legal document. Look for the address that appears under the party
names at the top of the first page.
Form with Multiple Addresses:
Extract only the "Applicant Address" from this form. Ignore the
"Business Address" and "Mailing Address for Correspondence" fields.
The Applicant Address should be in Section 2 of the form.
Tips for Better Prompts
Do | Don't |
|---|---|
Be specific about location | Use vague descriptions |
Mention visual markers (labels, sections) | Assume the AI knows your document |
Specify which address if multiple exist | Leave ambiguity about which to extract |
Use document terminology | Use internal jargon |
Test with multiple document variations | Test with only one sample |
Troubleshooting Extraction
Problem: Wrong address extracted
Add more specific location details
Mention the label that appears near the correct address
Specify what to ignore
Problem: Partial address extracted
Ask for "complete mailing address including all lines"
Mention expected components (name, company, street, city, state, zip)
Problem: No address found
Check that your sample has an address on page 1 (default)
Verify the address is machine-readable (not handwritten or in an image)
Simplify your prompt to be less restrictive
Testing Your Prompts
The Testing Workflow
1. Write initial prompt
↓
2. Upload sample document
↓
3. Click "Test Address Parse"
↓
4. Review results
↓
┌─── Correct? ───┐
│ │
Yes No
│ │
↓ ↓
Save config Adjust prompt
and repeat
What Good Results Look Like
{
"name": "John Smith",
"recipient": "ABC Corporation",
"address1": "123 Main Street",
"address2": "Suite 400",
"city": "San Francisco",
"state": "CA",
"zip": "94102",
"country": "USA"
}
Testing Best Practices
Test with variations: Use documents with different layouts or formats
Test edge cases: Try documents where addresses might be in unusual positions
Test with real data: Use actual documents you'll be sending, not just samples
Document your prompts: Keep notes on what works for different document types
Creating a Test Document Set
Build a small collection of test documents that represent:
Standard format documents
Edge cases (unusual layouts)
Documents with multiple addresses
Documents from different sources/systems
Sending Mail with Flows
Single Document
Go to Flows and find your flow
Click the Send Mail icon (circular arrow)
In the modal, upload your PDF(s)
Files are processed automatically
You'll be redirected to complete the order
Bulk Upload (Zip File)
For sending many pieces of mail at once:
Prepare your documents:
Each PDF = one piece of mail
Name files descriptively
Compress into a single ZIP file
Click Send Mail on your flow
Choose the ZIP upload option
Select your ZIP file
Monitor the progress bar
Review and complete the order
Supported File Types
Type | Notes |
|---|---|
Preferred format, best compatibility | |
DOC/DOCX | Converted to PDF automatically |
Images (JPG, PNG) | Converted to PDF, check sizing |
Managing Flows
Editing a Flow
Click the Details icon on any flow
Modify settings in the Settings tab
Update address extraction in Recipient Address or Return Address tabs
Click Save
Deleting a Flow
Click the Delete icon (trash can)
Confirm deletion
Note: This cannot be undone
Organizing Flows
Name clearly: Use descriptive names like "Q4 Invoice Mailings" not "Flow 1"
Use descriptions: Add context for team members
Associate with companies: If you manage multiple companies, assign flows appropriately
Advanced Features
Full Window Envelopes with Logo
For branded mailings:
Select First Class - Full Window with Image/Logo as service type
Upload your logo:
Format: PNG or JPEG
Max size: 250KB
Recommended: Square or horizontal orientation
The logo appears on the envelope window
Limitations:
Maximum 5 sheets per envelope
Return envelopes not available with this option
Return Address Extraction
If your documents contain the sender's address:
Go to the Return Address tab
Configure a prompt to extract the sender address
Test and save
This is useful when mailing on behalf of different senders.
Company Association
Associate flows with specific companies:
Keeps flows organized
Enables company-specific billing
Useful for agencies managing multiple clients
Frequently Asked Questions
Q: Can I use the same flow for different document types? A: Yes, but your address extraction prompt should be general enough to work with all variants, or you may need separate flows.
Q: What happens if address extraction fails? A: You'll have the opportunity to manually enter or correct addresses before completing the order.
Q: Is there a limit to how many files I can include in a ZIP? A: There's no hard limit, but very large batches may take longer to process. Consider breaking into multiple uploads for 100+ files.
Q: Can I preview before sending? A: Yes, you'll see a summary before finalizing your order with options to review and edit.
Q: How do I know which page the address is on? A: By default, extraction looks at page 1. For multi-page documents where addresses are elsewhere, adjust the page setting in your extraction configuration.
Quick Reference
Keyboard Shortcuts
Action | Shortcut |
|---|---|
Save flow | Ctrl/Cmd + S |
Test parse | Ctrl/Cmd + Enter |
Status Icons
Icon | Meaning |
|---|---|
✓ | Completed/Success |
⟳ | Processing |
○ | Pending |
✕ | Error/Failed |
Support
Need help? Contact support or visit the help documentation at help.mailform.io
