Smart Mail Merge / Docs / Getting Started

Understanding the Workflow

Whether you trigger a single row on Google Form™ submission or launch a 1,500-row background campaign in Google Sheets™, every run follows the same reliable 5-stage pipeline:

Stage 1: Data Ingestion

  • Google Sheets™ Mode: Reads Row 1 as column headers and extracts display values for each target row. Automatically detects score columns (Score, Points, Marks, Percentage) if Pass/Fail criteria are enabled.
  • Google Forms™ Mode: Reads the submitted form item responses, timestamp, respondent email, and quiz points (if the form is a quiz).

Stage 2: Tag & Score Resolution

  • Resolves all column/question values plus system tags ({{date}}, {{certificate-no}}, {{reached-percentage}}, etc.).
  • Evaluates Passing Criteria (if enabled): if the score is below your threshold, skips document generation and prepares the Failed email template instead.

Stage 3: Multi-Format Document Merge

  • Creates a temporary copy of each configured Google Docs™, Google Sheets™, or Google Slides™ template using exponential backoff retries.
  • Replaces Text, Image, and QR Code placeholders, exports the result in your selected format (PDF, DOCX, XLSX, PNG, CSV, etc.), saves the final file to your Google Drive™ Destination Folder, applies File Sharing ACLs, and deletes the temporary working copy.

Stage 4: Multi-Provider Email Delivery

  • Resolves dynamic To, CC, and BCC expressions ({{Email}}, {{Manager}}, {{respondent}}) with automatic deduplication.
  • Routes the HTML email + generated attachments through your chosen Mail Provider (Gmail, Gmail Pool, Microsoft 365 Pool, or any of the 11 transactional APIs), with automatic Gmail fallback if a third-party provider fails.

Stage 5: Audit Logging

  • Writes _Mail_Status_ (_Mail_Sent_, File Generated, or exact error text) and _PDF_URL directly back into your Sheet, and updates the Bulk Run / Logs dashboard.

Ready to launch your first mail merge?

Install Smart Mail Merge free from the Google Workspace Marketplace (includes a 7-day Pro trial).

Install Add-on Free →