Email Automation
Monitor vendor compliance documents and expiries with Google Drive, OpenAI, Sheets
When something happens in a connected app, it handles email with OpenAI / ChatGPT using Gmail, Google Drive, Google Sheets, Slack.
What it does
## Monitor vendor compliance documents and expiry dates with Google Drive, OpenAI and Google Sheets ### How it works This workflow has two related flows for vendor compliance management. When a new Google Drive file arrives, it checks that it is a PDF, extracts text, uses OpenAI to identify document details, matches the document to a vendor, updates a Google Sheets document register, moves the file, and alerts Slack if review is needed. A separate daily schedule reads vendor and document data from Google Sheets, evaluates compliance and expiry status against tier requirements, logs results, sends vendor reminders, and posts/email a daily digest. ### Setup steps - Connect Google Drive credentials and configure the trigger to watch the vendor document intake folder. - Configure Google Drive folders or file operations for downloading incoming PDFs and moving processed files. - Connect OpenAI credentials for the document information extraction node and tune the extraction schema/prompt if needed. - Connect Google Sheets credentials and set the spreadsheet IDs/ranges for vendor intake, vendor master data, document register, and compliance log sheets. - Connect Slack credentials and choose channels for unsupported-file alerts, review-needed alerts, and daily summaries. - Connect Gmail credentials for vendor reminder emails and the compliance-owner digest. - Set the schedule trigger timezone and confirm the 8 AM run time, then update the Configuration node values such as companyName, complianceOwnerEmail, complianceInbox, and testMode. ### Customization Adjust the tier requirements code to reflect the documents required for each vendor tier, and modify reminder timing, Slack channels, email templates, or review rules to match the organization’s compliance process.
The steps
- When File Added to Google Drive
- Check If PDF
- Download Google Drive File
- Extract Text from PDF
- AI Document Data Extraction
- OpenAI GPT-4 Chat Model
- Build Document Records
- Read Vendors from Sheets
- Match and Validate Vendor
- Update Document Register
- Move File to Processed Folder
- Check If Review Needed
- Notify Slack: Review Needed
- Notify Slack: Unsupported File
26 steps in total.
Similar automations
Email AutomationDraft weekly vendor update emails from Google Sheets using OpenAI and Gmail10 stepsFinance, Invoices & AccountingRoute purchase approvals by spend and vendor risk with Postgres and Slack24 stepsEmail AutomationApprove vendor invoices from Gmail using Claude, Google Sheets, Slack and QuickBooks38 stepsData Sync & ETLSync customer and vendor master data between ERP and CRM via webhook16 steps