Automate invoice processing with OCR, GPT-4 & Salesforce opportunity creation
PDF Invoice Extractor (AI) End-to-end pipeline: Watch Drive ➜ Download PDF ➜ OCR text ➜ AI normalize to JSON ➜ Upsert Buyer (Account) ➜ Create Opportunity ➜ Map Products ➜ Create OLI via Composite API ➜ Archive to One...
Template notes
PDF Invoice Extractor (AI)
End-to-end pipeline: Watch Drive ➜ Download PDF ➜ OCR text ➜ AI normalize to JSON ➜ Upsert Buyer (Account) ➜ Create Opportunity ➜ Map Products ➜ Create OLI via Composite API ➜ Archive to OneDrive.
---
Node by node (what it does & key setup)
1) Google Drive Trigger - Purpose: Fire when a new file appears in a specific Google Drive folder. - Key settings: - Event: fileCreated - Folder ID: google drive folder id - Polling: everyMinute - Creds: googleDriveOAuth2Api - Output: Metadata { id, name, ... } for the new file.
---
2) Download File From Google - Purpose: Get the file binary for processing and archiving. - Key settings: - Operation: download - File ID: ={{ $json.id }} - Creds: googleDriveOAuth2Api - Output: Binary (default key: data) and original metadata.
---