Библиотека / Документы, PDF и OCR
Документы, PDF и OCR
Извлечение данных турецких счетов из PDF в Gmail в Google Sheets с помощью Gemini
Запускается при получении новых писем в Gmail, разделяет PDF-вложения со счетами, извлекает их текст через Google Drive, считывает данные счёта и позиций с помощью Gemini и записывает результаты в Google Sheets.
Что делает
## AI Invoice Processing ### How it works This workflow monitors Gmail for incoming messages with invoice attachments, separates each attachment, and processes them one at a time. It temporarily uploads and downloads each file through Google Drive, extracts the file text, uses Gemini-powered AI steps to classify and read invoice data, then writes invoice and line-item details into Google Sheets. Non-invoice or rejected files are routed to a cleanup path that deletes the temporary Drive file, while completed sheet writes merge back into the loop for the next attachment. ### Setup steps - Connect and authorize Gmail credentials for the Gmail Trigger, and configure the trigger filters to match the mailbox or labels where invoice emails arrive. - Connect Google Drive credentials and set the upload/download/delete nodes to use the intended temporary folder or file handling settings. - Connect Google Gemini credentials for both AI nodes, and verify the structured output schemas match the fields expected downstream. - Connect Google Sheets credentials and configure both append-row nodes with the target spreadsheet, sheets, and column mappings. - Test with sample invoice and non-invoice attachments to confirm classification, extraction, deletion, and looping behavior. ### Customization You can customize the Gmail search criteria, the Drive temporary storage location, the Gemini prompts and structured schemas, and the Google Sheets column mappings for different invoice formats or additional extracted fields.
Шаги
- When Email Received
- Set Email Fields
- Split Attachments
- Merge Email Data
- Upload to Google Drive
- Download from Google Drive
- Extract Invoice Data
- Parse Structured Output
- Loop Over Attachments
- Parse Structured Details
- If Status Is Valid
- Delete from Google Drive
- AI Invoice Agent
- Append to Invoice Sheet
Всего шагов: 21.
Похожие автоматизации
Документы, PDF и OCRTrack contract renewals from Drive PDFs with Gemini, Sheets, Gmail and SlackШагов: 43Документы, PDF и OCRЗаполнение PDF-форм из новых строк Google Sheets с JustFill и Google DriveШагов: 6Документы, PDF и OCRИзвлечение текста из PDF и изображений Drive с GeminiШагов: 12Документы, PDF и OCRСохранение вложений Gmail на Drive и запись данных в Sheets с OpenAIШагов: 14