
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
5 MIN READ
Before you begin, make sure you have:
The JSON workflow uses the PDF.co community node. Install this node before importing the workflow so n8n can recognize and display the PDF.co steps.
For n8n version 1.94.0 or later:
If you already imported the workflow and the PDF.co nodes are missing, install the node and then import the JSON file again.
After importing, connect your own credentials and select your Google Sheet, Google Drive folder, Google Calendar, Gmail account, and PDF.co templates. Imported credentials and resource selections are not transferred for security reasons.
For additional installation guidance, see Getting Started with n8n and PDF.co.
templateId values with your own from the PDF.co Template Manager.Follow the steps below to understand and rebuild the workflow from scratch.
Here’s what the final workflow does:
Node: Google Sheets Trigger
Row AddedSuccess looks like: Each new form submission (a patient entry) triggers the workflow, capturing their details including name, contact, medical history, and appointment date.
Node: PDF.co API → htmlTemplateToPDF
15692 (Your PDF.co template ID){
"first_name": "{{ $json['First Name'] }}",
"last_name": "{{ $json['Last Name'] }}",
"date_of_birth": "{{ $json['Date of Birth '] }}",
"gender": "{{ $json['Gender'] }}",
"primary_phone": "{{ $json['Primary Phone Number'] }}",
"home_address": "{{ $json['Home Address'] }}",
"mailing_address": "{{ $json['Mailing Address'] }}",
"current_medications": "{{ $json['Current Medications'] }}",
"allergies": "{{ $json['Allergies'] }}",
"major_medical_history": "{{ $json['Major Medical History'] }}",
"appointment_date": "{{ $json['Appointment date'] }}"
}{{ $json["First Name"] }}_{{ $json["Last Name"] }}_Medical-Record.pdfSuccess looks like: A professional, customized PDF medical record is generated and hosted by PDF.co.
Node: HTTP Request
={{ $json.url }}Success looks like: The PDF is converted into binary data ready for upload.
Node: Google Drive
Success looks like: The patient’s medical record PDF is safely uploaded to your Google Drive folder.
Node: Google Calendar
={{ $('Google Sheets Trigger from Google Form').item.json['Appointment date'] }}"{{ First Name }} {{ Last Name }}'s Doctor's Appointment"Success looks like: An appointment is automatically added to your Google Calendar based on the patient’s selected date.
Node: PDF.co API → htmlTemplateToPDF
15694 (Your receipt template){
"first_name": "{{ $('Google Sheets Trigger from Google Form').item.json['First Name'] }}",
"last_name": "{{ $('Google Sheets Trigger from Google Form').item.json['Last Name'] }}",
"date_of_birth": "{{ $('Google Sheets Trigger from Google Form').item.json['Date of Birth '] }}",
"primary_phone": "{{ $('Google Sheets Trigger from Google Form').item.json['Primary Phone Number'] }}",
"home_address": "{{ $('Google Sheets Trigger from Google Form').item.json['Home Address'] }}",
"current_medications": "{{ $('Google Sheets Trigger from Google Form').item.json['Current Medications'] }}",
"allergies": "{{ $('Google Sheets Trigger from Google Form').item.json['Allergies'] }}",
"major_medical_history": "{{ $('Google Sheets Trigger from Google Form').item.json['Major Medical History'] }}"
}{{ First Name }}_{{ Last Name }}_Receipt.pdfSuccess looks like: A personalized appointment receipt is generated for the patient.
Node: HTTP Request
={{ $json.url }}Success looks like: The generated receipt is converted to a binary file ready for email attachment.
Node: Gmail
={{ $('Google Sheets Trigger from Google Form').item.json['Mailing Address'] }}Appointment_Confirmation [{{ First Name }} {{ Last Name }}]Success looks like: A beautifully formatted confirmation email is sent to the patient, including their receipt.
You’ve successfully automated your patient intake, record generation, scheduling, and communication process. Your workflow now:
Built something awesome? Share your project with the community — and tag @pdfdotco to showcase your automation!

6 MIN READ

6 MIN READ

6 MIN READ

6 MIN READ
Create an account, get an API key and test a request.