How to Generate Shipping Documents from Airtable Automatically

Shipping document generation is the process of connecting your Airtable data to a document template to automatically produce PDFs like packing slips, bills of lading, or commercial invoices. This automation eliminates the manual copy-paste work required to create shipping paperwork for every order.

This guide shows you how to set up automated shipping document generation from Airtable using Google Docs templates.

Types of Shipping Documents You Can Generate from Airtable

Different shipping scenarios require different documents:

Document TypePurposeWhen Used
Packing SlipLists items included in a shipmentPlaced inside package for recipient verification
Bill of LadingLegal contract for freight transportRequired for LTL and truckload shipments
Commercial InvoiceDeclares shipment contents and valueRequired for international customs clearance
Delivery ReceiptProof of delivery documentSigned by recipient upon delivery
Shipping LabelAddress and tracking informationAttached to outside of package

All of these can be generated automatically from your Airtable order data.


Why Automate Shipping Documents in Airtable

Manual document creation causes problems that automation solves:

  • Save time on repetitive tasks - Stop creating documents manually for each order
  • Reduce errors in shipping data - Data pulled directly from Airtable fields eliminates typos
  • Scale fulfillment without extra work - Handle growing order volume without adding staff
  • Maintain consistency - Every document follows the same professional format
  • Create audit trails - Generated documents are automatically saved to order records

How to Set Up Your Airtable Base for Shipping Documents

Your Airtable base needs the right structure to support shipping document generation.

Required Fields for Shipping Documents

Field NameField TypePurpose
Order IDAuto-number or FormulaUnique identifier for tracking
Ship To NameSingle line textRecipient name
Ship To AddressLong textFull delivery address
Ship To CitySingle line textCity for address formatting
Ship To Postal CodeSingle line textZIP/postal code
Ship To CountrySingle selectCountry for international shipping
Shipping MethodSingle selectCarrier and service level
Order DateDateWhen order was placed
Ship DateDateWhen order ships
Tracking NumberSingle line textCarrier tracking ID
ProductsLinked recordConnection to line items
Shipping Document PDFAttachmentWhere generated docs are saved

Organizing Orders and Line Items

For orders with multiple products, create a separate Line Items table linked to your Orders table.

Line Items Table:

Field NameField TypePurpose
Product NameSingle line textItem description
SKUSingle line textStock keeping unit
QuantityNumberUnits being shipped
Unit WeightNumberWeight per unit
Unit PriceCurrencyPrice per unit (for commercial invoices)
OrderLinked recordLink back to Orders table

Pro Tip: Add Rollup Fields for Totals

Create rollup fields in your Orders table to calculate totals from linked line items. For example, a "Total Weight" rollup that sums all unit weights, or "Total Value" for commercial invoices.


How to Create a Shipping Document Template in Google Docs

Design your template with placeholders that TypeFlow will replace with actual data.

Step 1: Set Up Your Document Structure

Create a new Google Doc with your company header:

[Company Logo]
[Company Name]
[Company Address]
[Phone | Email]

---

PACKING SLIP

Order #: {{Order ID}}
Ship Date: {{Ship Date}}
Tracking: {{Tracking Number}}

Step 2: Add Shipping Address Block

SHIP TO:
{{Ship To Name}}
{{Ship To Address}}
{{Ship To City}}, {{Ship To Postal Code}}
{{Ship To Country}}

SHIPPING METHOD: {{Shipping Method}}

Step 3: Create the Line Items Table

Use loop syntax to include all products from linked records:

ITEMS:

| SKU | Description | Qty |
|-----|-------------|-----|
{{loop_0}}
| {{SKU}} | {{Product Name}} | {{Quantity}} |

Step 4: Add Footer Elements

---

Total Items: {{Total Items}}
Total Weight: {{Total Weight}} kg

Special Instructions: {{Special Instructions}}

Packed by: ________________  Date: ________________

Pro Tip: Create Multiple Templates

Create separate templates for different document types (packing slip, commercial invoice, bill of lading). Each can pull from the same Airtable data but display it differently based on the document's purpose.


How to Connect TypeFlow to Your Airtable Base

Install TypeFlow and link it to your shipping data.

Step 1: Create Your TypeFlow Account

Go to app.typeflow.us and connect your Google account. This gives TypeFlow access to your Google Docs templates.

Step 2: Link Your Airtable Base

Authorize TypeFlow to access your Airtable account, then select the base containing your shipping data.

Selecting the Orders table in TypeFlow for shipping document generation

Step 3: Select Your Shipping Table

Choose the table containing your orders. This is where TypeFlow will pull data from when generating documents.

Step 4: Configure Output Settings

Select the attachment field where generated shipping documents should be saved.

Selecting the attachment field for saving generated shipping documents

How to Map Airtable Fields to Your Shipping Template

Connect each placeholder in your template to the corresponding Airtable field.

Field mapping interface connecting Airtable fields to shipping document template

Mapping Basic Shipping Fields

Direct one-to-one mapping for order details:

  • {{Order ID}} → Order ID field
  • {{Ship Date}} → Ship Date field
  • {{Tracking Number}} → Tracking Number field
  • {{Shipping Method}} → Shipping Method field

Mapping Address Fields

Map each address component separately for proper formatting:

  • {{Ship To Name}} → Ship To Name field
  • {{Ship To Address}} → Ship To Address field
  • {{Ship To City}} → Ship To City field
  • {{Ship To Postal Code}} → Ship To Postal Code field
  • {{Ship To Country}} → Ship To Country field

Mapping Line Items for Multiple Products

Configure the linked record field to pull data from each connected line item.

Configuring linked record mapping for product line itemsSetting up the loop to include all products in shipping document

Apply Data Formatting

Use formatting options for dates, numbers, and currency values.

Data formatting options for shipping document fields

How to Automate Shipping Document Generation in Airtable

Once configured, you have multiple options for generating shipping documents.

Option 1: Button Field (On-Demand Generation)

Add a button field to your Orders table for one-click generation.

Button field configuration for on-demand shipping document generation

Workflow:

  1. Open an order record
  2. Click "Generate Shipping Doc"
  3. PDF appears in the attachment field
  4. Print and include with shipment

Best for: Operations where staff manually processes each order.

Option 2: Bulk Generation (Batch Processing)

Generate shipping documents for multiple orders at once.

Workflow:

  1. Filter view to show orders ready to ship
  2. Select all records
  3. Click "Generate PDFs"
  4. All documents generate in parallel

Best for: End-of-day batch processing or preparing multiple shipments at once.

Option 3: Airtable Automations (Automatic Generation)

Set up automations to generate documents when orders reach a specific status.

Creating an Airtable Automation for automatic shipping document generation

Setup steps:

  1. Create a new Automation in Airtable
  2. Set trigger: "When record matches conditions" (Status = "Ready to Ship")
  3. Add action: "Run script"
  4. Paste the TypeFlow script
Pasting the TypeFlow automation script

Pro Tip: Generate Multiple Documents at Once

If you need both a packing slip and commercial invoice for international orders, set up two automations with the same trigger but different templates. Both documents generate simultaneously when an order is ready to ship.

Automate your document generation

Start with 20 free documents. Built for businesses using Airtable.

Start now

Commercial Invoices for International Shipping

International shipments require commercial invoices with specific customs information.

Additional Fields for Commercial Invoices

Field NameField TypePurpose
HS CodeSingle line textHarmonized System tariff code
Country of OriginSingle selectWhere goods were manufactured
Invoice NumberAuto-numberUnique invoice identifier
Terms of SaleSingle selectIncoterms (FOB, CIF, etc.)
CurrencySingle selectTransaction currency

Commercial Invoice Template Structure

COMMERCIAL INVOICE

Invoice #: {{Invoice Number}}
Date: {{Ship Date}}
Currency: {{Currency}}

EXPORTER:
[Your Company Details]

IMPORTER:
{{Ship To Name}}
{{Ship To Address}}
{{Ship To City}}, {{Ship To Postal Code}}
{{Ship To Country}}

| Description | HS Code | Origin | Qty | Unit Value | Total |
|-------------|---------|--------|-----|------------|-------|
{{loop_0}}
| {{Product Name}} | {{HS Code}} | {{Country of Origin}} | {{Quantity}} | {{Unit Price}} | {{Line Total}} |

TOTAL VALUE: {{Total Value}}
TERMS: {{Terms of Sale}}

I declare that the information on this invoice is true and correct.

Signature: ________________  Date: ________________

Best Practices for Shipping Document Generation

Test Before Going Live

Generate sample documents with test data before using in production. Verify all fields populate correctly and formatting looks professional.

Use Consistent Field Naming

Airtable field names must match template placeholders exactly. Avoid spaces or special characters when possible. Use underscores instead (e.g., Ship_To_Name).

Handle Missing Data Gracefully

Some orders may have empty fields. Design your template so missing data doesn't create awkward blank spaces or broken formatting.

Keep Templates Simple

Complex formatting can cause PDF generation issues. Use standard fonts, simple tables, and minimal styling for reliable results.


Common Issues and How to Fix Them

Variables Not Populating

Problem: Template shows {{Field_Name}} instead of actual data.

Solution: Check that Airtable field names match template placeholders exactly, including capitalization and underscores.

Line Items Not Displaying

Problem: Products don't appear in the generated document.

Solution:

  1. Verify linked records are properly connected in Airtable
  2. Check loop syntax is correct in template
  3. Ensure line items mapping is configured in TypeFlow

Formatting Problems in PDFs

Problem: Generated PDFs look different from Google Docs template.

Solution: Simplify template formatting. Use standard fonts (Arial, Times New Roman), avoid complex table borders, and remove unnecessary styling.


Generate Professional Shipping Documents from Airtable Today

Automating your shipping document workflow saves time and reduces errors. TypeFlow makes this simple with Google Docs templates and direct Airtable integration.

Automate your document generation

Start with 20 free documents. Built for businesses using Airtable.

Start now

Frequently Asked Questions

Find answers to the most common questions about this feature.

Yes. Generate a barcode in Airtable using a formula or app, save it as an attachment, and map it to an image placeholder in your template.
Use bulk generation to select multiple order records and generate all shipping documents in a single action. TypeFlow creates a separate PDF for each order.
Yes. Combine TypeFlow with Airtable Automations to automatically send generated PDFs as email attachments when documents are created.
It depends on your requirements. International shipments typically need commercial invoices with customs details. Create multiple templates and use the appropriate one based on destination.
No. Airtable cannot natively generate formatted PDF documents. You need a tool like TypeFlow to create professional shipping documents from your data.
You can generate packing slips, bills of lading, commercial invoices, delivery receipts, and shipping labels - all from the same Airtable order data using different templates.

All Questions

Need more help?

Our team is here to help you solve all your problems and answer your questions.

Contact Us
Kevin Rabesaotra

Kevin from TypeFlow

Author

Kevin Rabesaotra is a growth engineer and automation specialist with 8+ years of experience building no-code solutions. As Founder & CEO of TypeFlow, he has helped hundreds of businesses automate document generation and streamline workflows with Airtable integrations. Previously, Kevin was a Product Lead specializing in growth engineering, running experiments to drive revenue, retention, and lead generation.

Was this page helpful?