πŸ”¬ Generate verified gym trial passes with QR code, email & PDF export

⚑ 255 views Β· πŸ”¬ Document Extraction & Analysis

Description

Verified Gym Trial Pass with Photo ID

Overview

Automate gym trial pass generation with email verification, photo ID integration, QR codes, and professional PDF passes. This workflow handles the complete member onboarding process - from signup to verified pass delivery - in under 10 seconds.

What This Workflow Does

  1. Receives signup data via webhook (name, email, photo URL, validity dates)
  2. Verifies email authenticity using VerifiEmail API (blocks disposable emails)
  3. Generates unique Pass ID in format GYM-{timestamp}
  4. Creates QR code for quick check-in at gym entrance
  5. Builds branded pass design with gradient styling, member photo, and validity dates
  6. Exports to PDF format for mobile-friendly viewing
  7. Sends email with PDF attachment and welcome message
  8. Logs all registrations in Google Sheets for record-keeping
  9. Returns API response with complete pass details

Key Features

βœ… Email Verification - Blocks fake and disposable email addresses
βœ… Photo ID Integration - Displays member photo on digital pass
βœ… QR Code Generation - Instant check-in scanning capability
βœ… Professional Design - Gradient purple design with modern styling
βœ… PDF Export - Mobile-friendly format that members can save
βœ… Automated Emails - Welcome message with pass attachment
βœ… Spreadsheet Logging - Automatic record-keeping in Google Sheets
βœ… Error Handling - Proper 400 responses for invalid signups
βœ… Success Responses - Detailed JSON with all pass information

Use Cases

What You Need

Required Credentials

  1. VerifiEmail API - Email verification service

  2. HTMLCSSToImage API - PNG image generation

  3. HTMLCSSToPDF API - PDF conversion

  4. Gmail OAuth2 - Email delivery

    • Connect your Google account
    • Enable Gmail API in Google Cloud Console
  5. Google Sheets API - Data logging

    • Connect your Google account
    • Same OAuth2 as Gmail

Setup Instructions

Step 1: Create Google Sheet

  1. Create a new Google Sheet named β€œGym Trial Passes 2025”
  2. Add these column headers in Row 1:
    • Pass ID
    • Name
    • Email
    • Start Date
    • Valid Till
    • Issued At
    • Email Verified
    • Status

Step 2: Configure Credentials

  1. Add VerifiEmail API credentials
  2. Add HTMLCSSToImage credentials
  3. Add HTMLCSSToPDF credentials
  4. Connect Gmail OAuth2
  5. Connect Google Sheets OAuth2

Step 3: Update Google Sheets Node

  1. Open β€œLog to Google Sheets” node
  2. Select your β€œGym Trial Passes 2025” sheet
  3. Confirm column mappings match your headers

Step 4: Test the Workflow

  1. Copy the webhook URL from the Webhook node
  2. Open Postman and create a POST request
  3. Use this test payload:
{
  "name": "Rahul Sharma",
  "email": "your-email@gmail.com",
  "photo_url": "https://images.unsplash.com/photo-1633332755192-727a05c4013d?w=400",
  "start_date": "2025-11-15",
  "valid_till": "2025-11-22"
}
  1. Send the request and check:
    • βœ… Email received with PDF pass
    • βœ… Google Sheet updated with new row
    • βœ… Success JSON response returned

Step 5: Activate & Use

  1. Click β€œActive” toggle to enable the workflow
  2. Integrate webhook URL with your gym’s website form
  3. Members receive instant verified passes upon signup

Expected Responses

βœ… Success Response (200 OK)

{
  "status": "success",
  "message": "Gym trial pass verified and sent successfully! πŸŽ‰",
  "data": {
    "pass_id": "GYM-1731398400123",
    "email": "member@example.com",
    "name": "Rahul Sharma",
    "valid_from": "November 15, 2025",
    "valid_till": "November 22, 2025",
    "email_verified": true,
    "recorded_in_sheets": true,
    "pass_sent_to_email": true
  },
  "timestamp": "2025-11-12T10:30:45.123Z"
}

❌ Error Response (400 Bad Request)

{
  "status": "error",
  "message": "Invalid or disposable email address. Please use a valid email to register.",
  "email_verified": false,
  "email_provided": "test@tempmail.com"
}

Customization Options

Modify Pass Design

Edit the Build HTML Pass node to customize:

Change Email Template

Edit the Send Email with Pass node to modify:

Adjust Validity Period

Workflow accepts custom start_date and valid_till from webhook payload. You can also hardcode validity periods in the Generate Pass Details node.

Add Additional Fields

Extend the workflow to capture:

Performance

Security & Privacy

βœ… Email verification prevents fake signups
βœ… Unique Pass IDs prevent duplication
βœ… All data logged in your private Google Sheet
βœ… No data stored in n8n (passes through only)
βœ… HTTPS webhook for secure data transmission
βœ… OAuth2 authentication for Google services


Tags

gym fitness trial-pass email-verification qr-code pdf-generation member-onboarding automation verification photo-id


πŸ”— Nodes Used

Google Sheets, HTTP Request, Webhook, Gmail

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup