AI-Process Mortgage Document using n8n action
PDF4me AI-Process Mortgage Document extracts structured data from mortgage documents using AI-powered machine learning through n8n automation workflows. Process mortgage document PDFs or images via n8n triggers, binary data, base64 strings, or public URLs to automatically extract loan amounts, interest rates, loan terms, borrower information, property details, appraiser data, closing costs, title information, payment projections, compliance fields, and other mortgage document fields with high accuracy and intelligent field recognition. This solution is ideal for mortgage document processing automation, loan processing digitization, real estate document management, automated mortgage data extraction, property information processing, loan compliance tracking, and mortgage document management workflows that require AI-powered extraction with structured output and seamless integration.
Setup
Add the PDF4me "AI-Process Mortgage Document" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.
Prerequisites:
- PDF4me API credentials
- n8n workflow access
Configuration:
- Add PDF4me node to workflow
- Select "AI-Process Mortgage Document" action
- Configure input parameters (see below)

Parameters
Complete list of parameters for the AI-Process Mortgage Document action. Configure these parameters to control mortgage document processing.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Input Data Type*** | String | Mortgage Document Input Format Selection • Choose the format of your mortgage document data input • PDF4me supports multiple input types • Options: Binary Data, Base64 String, or URL | Binary Data |
| Input Binary Field*** | Binary | Binary Mortgage Document File Input (Required if Binary Data) • Reference mortgage document file (.pdf, .png, .jpg, .jpeg) from previous n8n node or file upload • PDF4me processes binary mortgage document files with automatic format detection and AI-powered data extraction • Required when Input Data Type is "Binary Data" | {{ $binary.data }} |
| Base64 Mortgage Document Content*** | String | Base64 Encoded Mortgage Document Input (Required if Base64 String) • Provide mortgage document content (.pdf, .png, .jpg, .jpeg) as base64 encoded string for secure transmission • PDF4me automatically decodes and processes the mortgage document content using AI technology • Required when Input Data Type is "Base64 String" | JVBERi0xLjQKJ... |
| Mortgage Document URL*** | String | Public Mortgage Document URL Input (Required if URL) • Provide a public/open permission URL to the mortgage document file (.pdf, .png, .jpg, .jpeg) to be processed • PDF4me downloads and processes the mortgage document file from the provided URL using AI technology • Required when Input Data Type is "URL" | https://abc.com/mortgage_document.pdf |
| Mortgage Document Name*** | String | Mortgage Document Input Filename • Specify the name of the input mortgage document file with proper extension (.pdf, .png, .jpg, .jpeg) • PDF4me uses this for format detection and AI processing optimization | mortgage_document_2024.pdf |
| Document Type | String | Optional Document Type for Improved Parsing Accuracy • Specify mortgage document type to enhance extraction precision • Examples: "Deed of Trust", "Promissory Note", "Mortgage Agreement", "Loan Application" • Helps AI engine optimize field recognition for specific document formats | Deed of Trust |
| Custom Field Keys | Array | Optional Custom Field Keys List • Optional list of custom field keys to extract from the mortgage document • Specify additional fields beyond standard mortgage data • Supports multiple custom field keys for enhanced data extraction | ["customField1", "customField2"] |
Output
Output Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| documentType | String | PDF4me extracted document type - The type of mortgage document extracted (e.g., Deed of Trust, Promissory Note) by PDF4me's AI technology | Deed of Trust |
| lenderName | String | PDF4me extracted lender name - The name of the lender or financial institution providing the mortgage loan | ABC Bank |
| propertyAddress | String | PDF4me extracted property address - The complete address of the property being mortgaged | 123 Main Street, New York, NY 10001 |
| legalDescription | String | PDF4me extracted legal description - The legal description of the property extracted from the mortgage document | Lot 5, Block 10, Subdivision A |
| loanAmount | Number | PDF4me extracted loan amount - The principal amount of the mortgage loan, with precise decimal handling | 350000.00 |
| interestRate | Number | PDF4me extracted interest rate - The annual interest rate of the mortgage loan (as a percentage) | 4.5 |
| loanTerm | Number | PDF4me extracted loan term - The term or duration of the loan in months or years | 360 |
| loanType | String | PDF4me extracted loan type - The type of loan (e.g., Fixed Rate, Adjustable Rate, FHA, VA) | Fixed Rate |
| appraisedValue | Number | PDF4me extracted appraised value - The appraised value of the property, with precise decimal handling | 400000.00 |
| effectiveDate | String | PDF4me extracted effective date - The effective date of the mortgage document, formatted in ISO 8601 format (YYYY-MM-DD) | 2024-01-15 |
| borrowerName | String | PDF4me extracted borrower name - The name of the primary borrower extracted from the mortgage document | John Michael Smith |
| coBorrowerName | String | PDF4me extracted co-borrower name - The name of the co-borrower, if applicable | Sarah Elizabeth Smith |
| employerName | String | PDF4me extracted employer name - The name of the borrower's employer | Tech Corporation Inc. |
| position | String | PDF4me extracted position - The job position or title of the borrower | Software Engineer |
| income | Number | PDF4me extracted income - The income amount of the borrower, with precise decimal handling | 85000.00 |
| employmentStatus | String | PDF4me extracted employment status - The employment status of the borrower (e.g., Full-time, Part-time, Self-employed) | Full-time |
| employmentStartDate | String | PDF4me extracted employment start date - The start date of employment, formatted in ISO 8601 format (YYYY-MM-DD) | 2020-06-01 |
| appraiserName | String | PDF4me extracted appraiser name - The name of the property appraiser | Jane Appraiser |
| appraiserLicenseNumber | String | PDF4me extracted appraiser license number - The license number of the property appraiser | APP-12345 |
| propertyType | String | PDF4me extracted property type - The type of property (e.g., Single Family, Condominium, Commercial) | Single Family |
| conditionRating | String | PDF4me extracted condition rating - The condition rating of the property | Good |
| comparableSales | Array | PDF4me extracted comparable sales - Array of comparable sale objects with address, sale price, sale date, and adjustments | [{"address": "120 Main Street", "salePrice": 380000.00}] |
| closingCosts | Number | PDF4me extracted closing costs - The total closing costs associated with the mortgage, with precise decimal handling | 8500.00 |
| cashToClose | Number | PDF4me extracted cash to close - The amount of cash required to close the mortgage, with precise decimal handling | 75000.00 |
| settlementAgent | String | PDF4me extracted settlement agent - The name of the settlement agent or closing agent | XYZ Title Company |
| closingDate | String | PDF4me extracted closing date - The closing date of the mortgage, formatted in ISO 8601 format (YYYY-MM-DD) | 2024-02-01 |
| disbursementDate | String | PDF4me extracted disbursement date - The disbursement date of the loan funds, formatted in ISO 8601 format (YYYY-MM-DD) | 2024-02-02 |
| currentOwner | String | PDF4me extracted current owner - The current owner of the property | John Michael Smith |
| liensAndEncumbrances | Array | PDF4me extracted liens and encumbrances - Array of liens and encumbrances on the property | ["First Mortgage Lien"] |
| easements | Array | PDF4me extracted easements - Array of easements affecting the property | ["Utility Easement"] |
| titleInsuranceAmount | Number | PDF4me extracted title insurance amount - The amount of title insurance coverage, with precise decimal handling | 350000.00 |
| propertyTaxesStatus | String | PDF4me extracted property taxes status - The status of property taxes (e.g., Current, Delinquent, Exempt) | Current |
| projectedPayments | Array | PDF4me extracted projected payments - Array of projected payment objects with payment type, principal and interest, mortgage insurance, escrow, and total monthly payment | [{"paymentType": "Principal and Interest", "principalAndInterest": 1772.78}] |
| notarySignatureWitness | String | PDF4me extracted notary signature witness - The name of the notary or witness who signed the document | Notary Public - Jane Doe |
| controlNumber | String | PDF4me extracted control number - The control number or reference number of the mortgage document | MC-2024-001234 |
| parish | String | PDF4me extracted parish - The parish or county where the property is located | New York County |
| currency | String | PDF4me extracted currency - The currency code (ISO 4217) of the mortgage amounts (e.g., USD, EUR, GBP) | USD |
| witnessName | String | PDF4me extracted witness name - The name of the witness to the mortgage document | Robert Williams |
| witnessType | String | PDF4me extracted witness type - The type of witness (e.g., Notary Public, Attorney) | Notary Public |
| preparerCompany | String | PDF4me extracted preparer company - The name of the company that prepared the mortgage document | Legal Document Services Inc. |
| homesteadActCompliance | String | PDF4me extracted homestead act compliance - Compliance information regarding the Homestead Act | Compliant |
| farmLandActCompliance | String | PDF4me extracted farmland act compliance - Compliance information regarding the Farmland Act | N/A |
| securesLiabilities | String | PDF4me extracted secures liabilities - Information about liabilities secured by the mortgage | Secures promissory note dated 2024-01-15 |
| guaranteeMortgage | String | PDF4me extracted guarantee mortgage - Information about guarantee mortgage provisions | None |
| collateralMortgage | String | PDF4me extracted collateral mortgage - Information about collateral mortgage provisions | Property at 123 Main Street, New York, NY 10001 |
| warnings | Array | PDF4me processing warnings - Array of warning messages indicating potential data quality issues or extraction challenges encountered during processing | [] |
| fallbackUsed | Boolean | PDF4me fallback indicator - Boolean flag indicating whether fallback extraction methods were used during processing | false |
| jobId | String | PDF4me processing job identifier - Unique identifier for the AI processing job, used for tracking and debugging purposes | 00000000-0000-0000-0000-000000000000 |
| jobIdExt | String | PDF4me external job identifier - External job identifier for integration with third-party systems, if applicable | null |
| success | Boolean | PDF4me AI extraction status indicator - Boolean flag indicating the success or failure of the AI-powered mortgage document data extraction process. PDF4me returns true for successful extractions and false for any errors | true |
| message | String | PDF4me AI extraction status message - Descriptive message indicating the result of the AI-powered mortgage document data extraction process. PDF4me provides clear status messages for successful extractions and detailed error information | Mortgage document data extracted successfully using AI technology |
N8N Action Response
The PDF4me AI-Process Mortgage Document API returns a JSON response with the following structure:
{
"documentType": "Deed of Trust",
"lenderName": "ABC Bank",
"propertyAddress": "123 Main Street, New York, NY 10001",
"legalDescription": "Lot 5, Block 10, Subdivision A",
"loanAmount": 350000.00,
"interestRate": 4.5,
"loanTerm": 360,
"loanType": "Fixed Rate",
"appraisedValue": 400000.00,
"effectiveDate": "2024-01-15",
"borrowerName": "John Michael Smith",
"coBorrowerName": "Sarah Elizabeth Smith",
"employerName": "Tech Corporation Inc.",
"position": "Software Engineer",
"income": 85000.00,
"employmentStatus": "Full-time",
"employmentStartDate": "2020-06-01",
"appraiserName": "Jane Appraiser",
"appraiserLicenseNumber": "APP-12345",
"propertyType": "Single Family",
"conditionRating": "Good",
"comparableSales": [
{
"address": "120 Main Street, New York, NY 10001",
"salePrice": 380000.00,
"saleDate": "2023-12-01",
"adjustments": 5000.00
}
],
"closingCosts": 8500.00,
"cashToClose": 75000.00,
"settlementAgent": "XYZ Title Company",
"closingDate": "2024-02-01",
"disbursementDate": "2024-02-02",
"currentOwner": "John Michael Smith",
"liensAndEncumbrances": ["First Mortgage Lien"],
"easements": ["Utility Easement"],
"titleInsuranceAmount": 350000.00,
"propertyTaxesStatus": "Current",
"projectedPayments": [
{
"paymentType": "Principal and Interest",
"principalAndInterest": 1772.78,
"mortgageInsurance": 150.00,
"estimatedEscrow": 500.00,
"estimatedTotalMonthlyPayment": 2422.78
}
],
"notarySignatureWitness": "Notary Public - Jane Doe",
"controlNumber": "MC-2024-001234",
"parish": "New York County",
"currency": "USD",
"witnessName": "Robert Williams",
"witnessType": "Notary Public",
"preparerCompany": "Legal Document Services Inc.",
"homesteadActCompliance": "Compliant",
"farmLandActCompliance": "N/A",
"securesLiabilities": "Secures promissory note dated 2024-01-15",
"guaranteeMortgage": "None",
"collateralMortgage": "Property at 123 Main Street, New York, NY 10001",
"warnings": [],
"fallbackUsed": false,
"jobId": "12345678-1234-1234-1234-123456789012",
"jobIdExt": "MORT-2024-001",
"success": true,
"message": "Mortgage document data extracted successfully using AI technology"
}
Use Cases
Enterprise Loan Automation
- Loan Processing: Automate mortgage loan processing using extracted document data
- Loan Portfolio Management: Manage loan portfolios using extracted mortgage information
- Risk Assessment: Assess loan risk using extracted borrower and property data
- Compliance Tracking: Track mortgage compliance using extracted compliance fields
AI-Powered Document Processing
- Multi-Format Support: Process PDF, PNG, JPG, and JPEG mortgage document formats
- Multi-Language Processing: Extract data from mortgage documents in various languages
- Intelligent Field Recognition: Automatically identify and extract relevant mortgage fields
Business Intelligence and Analytics
- Loan Analytics: Analyze loan performance using extracted mortgage information
- Property Analytics: Analyze property values using extracted comparable sales data
- Performance Metrics: Track processing accuracy and efficiency