This template monitors Google Drive folder for new files, extracts text from PDFs, images, text files, CSVs, and Google Docs., reads images with meta/llama-3.2-11b-vision-instruct, structures the result with nvidia/llama-3.3-nemotron-super-49b-v1.5, logs everything to Google Sheets, and sends a Telegram notification when processing finishes. โจ
What This Template Does
- Watches a specific Google Drive folder for new files with Google Drive Trigger. ๐
- Downloads each new file with Google Drive before processing. โฌ๏ธ
- Routes PDFs, images, text files, CSVs, and Google Docs through the correct extraction branch. ๐
- Extracts image text with meta/llama-3.2-11b-vision-instruct ๐ผ๏ธ
- Structures extracted content into JSON fields with nvidia/llama-3.3-nemotron-super-49b-v1.5 through NVIDIA NIM. ๐ค
- Appends the final result to Google Sheets in Extract_Log. ๐
- Sends a Telegram notification when processing is complete. ๐ฌ
Key Benefits
- Turns a Drive folder into a reusable intake point for mixed file types. โฑ๏ธ
- Creates a searchable audit trail in Google Sheets for every processed file. ๐
- Sends a lightweight Telegram notification without requiring Telegram as the input channel. โ
- Keeps the extraction and structuring logic reusable for internal ops or client delivery workflows. ๐
- Makes it easier to test multimodal document processing with free-tier NVIDIA NIM models. ๐ก
Features
- Google Drive Trigger configured for new files in a specific folder. ๐ฅ
- Google Drive download step for binary file access before extraction. โ๏ธ
- File-type routing with Switch and normalization with Code nodes. ๐ง
- Native n8n Extract from File nodes for PDF, TXT, and CSV parsing. ๐
- NVIDIA NIM HTTP Request nodes for image OCR and structured JSON generation. ๐ค
- Google Sheets append logging with a fixed
Extract_Log tab schema. ๐
- Plain-text Telegram completion notifications with a fixed destination chat ID. ๐จ
Requirements
- n8n instance with access to Google Drive Trigger, Google Drive, Google Docs, Google Sheets, HTTP Request, Telegram, and Extract from File nodes. ๐งฐ
- Google Drive OAuth2 credential with access to the watched folder. ๐
- Google Docs OAuth2 credential with access to any Google Docs files you want to process. ๐
- Google Sheets OAuth2 credential and a sheet with an
Extract_Log tab. ๐
- Telegram bot credential plus a valid destination chat ID for notifications. ๐ค
- NVIDIA NIM API key stored as an HTTP Header Auth credential. ๐
- A folder ID and Google Sheet ID added to the provided placeholders before activation. ๐ ๏ธ
Target Audience
- Operations teams monitoring a shared Drive folder for inbound files. ๐๏ธ
- Founders and solo operators who want document extraction. ๐ค
- Agencies building reusable back-office workflows for receipts, notes, and uploaded files. ๐ข
- Analysts who want structured text output logged into Google Sheets automatically. ๐
- Automation builders testing file-driven multimodal extraction with Drive as the source. ๐งช
Step-by-Step Setup Instructions
- Import the workflow and read every sticky note on the canvas before editing any nodes. ๐
- Connect your Google Drive, Google Docs, Google Sheets, Telegram, and NVIDIA NIM credentials. ๐
- Replace
REPLACE_WITH_GOOGLE_DRIVE_FOLDER_ID, REPLACE_WITH_GOOGLE_SHEET_ID, and REPLACE_WITH_TELEGRAM_CHAT_ID in the marked nodes. ๐
- Create the
Extract_Log tab with the required headers shown in the sticky notes. ๐
- Test one file at a time in this order: PDF, TXT, CSV, image, then Google Docs file. ๐งช
- Confirm that each test adds one clean row to Google Sheets and sends one Telegram notification. โ
- Activate the workflow only after every supported path works end to end. ๐
Built by Cordexa Technologies
https://cordexa.tech | [email protected]