Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Documents, PDF & OCR

Documents, PDF & OCR

Validate supplier onboarding documents with Gemini, Gmail and Google Drive

Triggered by a webhook, extracts and checks supplier documents with Gemini for completeness and expiry, then emails the supplier feedback and stores results in Sheets.

What it does

## This workflow automates supplier onboarding by collecting, extracting, validating, and storing supplier documents using AI. ### How it works: 1. A webhook receives supplier details and document URLs. 2. Each document is downloaded and processed in a loop. 3. Text is extracted from PDFs and sent to an AI model to extract structured data. 4. All documents are aggregated and validated (required docs, fields, consistency, expiration checks). 5. If validation fails: - A detailed feedback message is generated and improved using AI. - The supplier receives an email with issues and next steps. 6. If validation passes: - A supplier record is created. - Data is stored in Google Sheets. - Documents are uploaded to Google Drive. - Confirmation emails are sent to both supplier and internal team. ### Setup Steps: - Configure Webhook and ensure request body contains documents array + supplier info. - Add Google Gemini API credentials. - Connect Google Sheets, Google Drive, and Gmail accounts. - Update sheet ID, Drive folder ID, and email templates. - Replace placeholder links (resubmission portal, profile link).

The steps

  1. Receive Supplier Submission (Webhook Trigger)
  2. Split Documents Array
  3. Process Documents Loop
  4. Download Document File
  5. Extract Text from PDF
  6. AI Extract Structured Data (Gemini)
  7. Parse & Normalize AI Response
  8. Batch Processing Delay (Loop Control)
  9. Aggregate All Processed Documents
  10. Validate Supplier Documents
  11. Check Validation Status
  12. Generate Validation Feedback
  13. AI Improve Feedback Message
  14. Send Rejection Email to Supplier

22 steps in total.

Similar automations