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

Library / Email Automation

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

  1. When File Added to Google Drive
  2. Check If PDF
  3. Download Google Drive File
  4. Extract Text from PDF
  5. AI Document Data Extraction
  6. OpenAI GPT-4 Chat Model
  7. Build Document Records
  8. Read Vendors from Sheets
  9. Match and Validate Vendor
  10. Update Document Register
  11. Move File to Processed Folder
  12. Check If Review Needed
  13. Notify Slack: Review Needed
  14. Notify Slack: Unsupported File

26 steps in total.

Similar automations