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
- Receive Supplier Submission (Webhook Trigger)
- Split Documents Array
- Process Documents Loop
- Download Document File
- Extract Text from PDF
- AI Extract Structured Data (Gemini)
- Parse & Normalize AI Response
- Batch Processing Delay (Loop Control)
- Aggregate All Processed Documents
- Validate Supplier Documents
- Check Validation Status
- Generate Validation Feedback
- AI Improve Feedback Message
- Send Rejection Email to Supplier
22 steps in total.
Similar automations
Tasks & Project ManagementAutomate Employee Onboarding with Slack, Jira and Google Drive32 stepsFinance, Invoices & AccountingExtract and post supplier invoices with AI, routing exceptions for review16 stepsAI Agents & AssistantsClassify supplier diversity and flag replacements with Groq, Notion and Slack15 stepsCRM & Sales PipelineOnboard new clients from form intake using Claude, Supabase, Gmail and Slack19 steps