Quick Overview
This workflow collects vendor onboarding applications via an n8n form, checks for duplicates in Google Sheets, validates compliance inputs, calculates a risk score, and then approves or rejects vendors while logging outcomes to Google Sheets and sending notification emails via Gmail.
How it works
- Receives a vendor application submission through an n8n form.
- Normalizes the submitted fields, stamps an application ID and timestamps, and validates that all required vendor data is present.
- Looks up the vendor in a Google Sheets Vendor_Master sheet using Tax ID and Registration No to detect duplicate registrations.
- If a duplicate is found, logs the rejection to a Google Sheets onboarding log and emails the applicant via Gmail.
- If not a duplicate, checks the mandatory compliance fields (Tax Registration Valid, Business Registration Valid, and Bank Details Verified) and rejects failures.
- Calculates a compliance-based risk score and risk level, then approves vendors within the configured threshold by adding them to Google Sheets Vendor_Master and logging the decision.
- Sends the final approved or rejected decision to the applicant via Gmail.
Setup
- Connect Google Sheets credentials in n8n and replace YOUR_GOOGLE_SHEET_ID with your spreadsheet ID in all Google Sheets steps.
- Create the required sheets and columns in the spreadsheet (Vendor_Master and Vendor_Onboarding_Log) to match the mapped fields (for example Tax ID, Registration No, Risk Score, Risk Level, Decision, and timestamps).
- Connect a Gmail account in n8n and confirm the sender settings for sending approval, rejection, and duplicate notifications.
- Review and adjust the risk threshold values (lowRiskMax, mediumRiskMax, highRiskMax) to match your vendor risk policy.
- Publish the form and share the n8n form URL with vendors so they can submit applications.