{"product_id":"n8n-slack-invoice-extraction-with-gemini-drive-sheets","title":"n8n Slack Invoice Extraction with Gemini, Drive \u0026 Sheets","description":"\u003ch3\u003eAutomatically extract invoice data from Slack uploads—then archive, log, and summarize in one thread\u003c\/h3\u003e\n\u003cp\u003eWith this \u003cstrong\u003en8n Slack invoice extraction workflow\u003c\/strong\u003e, invoices posted in a Slack channel are automatically downloaded, processed with \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e, archived to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, recorded in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, and summarized back in the \u003cstrong\u003eoriginal Slack thread\u003c\/strong\u003e—ready for faster bookkeeping and review.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eListens in Slack\u003c\/strong\u003e for new messages in a specified channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownloads the first attachment\u003c\/strong\u003e from the Slack message and normalizes it for processing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates file type\u003c\/strong\u003e: supports \u003cstrong\u003ePDF\u003c\/strong\u003e and common image types. If the attachment isn’t supported, the workflow replies in the same Slack thread with an “unsupported file” notice.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts invoice fields with Gemini\u003c\/strong\u003e by sending the document to the \u003cstrong\u003eGoogle Gemini API\u003c\/strong\u003e using a structured JSON schema prompt.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and validates results\u003c\/strong\u003e: generates a \u003cstrong\u003eMarkdown invoice summary\u003c\/strong\u003e and flags missing or inconsistent values for review.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eArchives the original invoice\u003c\/strong\u003e in a chosen \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e folder and combines the Drive link with the extracted invoice data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs to Google Sheets\u003c\/strong\u003e by appending invoice fields and the Drive file link.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReplies back in Slack\u003c\/strong\u003e with the summary and archive link in the original thread.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eOperations teams receiving supplier invoices in Slack and needing structured extraction for follow-up.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators who want automatic \u003cstrong\u003einvoice data capture\u003c\/strong\u003e with Drive archiving and Sheets logging.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building \u003cstrong\u003edocument processing\u003c\/strong\u003e workflows with Slack, Gemini, Drive, and Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack Trigger\u003c\/strong\u003e for new messages and attachment handling\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eif\u003c\/strong\u003e and \u003cstrong\u003ecode\u003c\/strong\u003e nodes for supported-format checks and Gemini response parsing\/validation\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e to call the \u003cstrong\u003eGenerative Language API\u003c\/strong\u003e (Gemini) using API key authentication via HTTP header\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive\u003c\/strong\u003e to upload and generate shareable links\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e to append extracted invoice fields and Drive URLs\u003c\/li\u003e\n  \u003cli\u003eIncludes \u003cstrong\u003emerge\u003c\/strong\u003e to combine extracted data with the Drive link before writing to Sheets and replying in Slack\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45756676505779,"sku":"N8N-17740","price":69.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Ds-j3GuWU2dMEC7bVMQV1_SW2EU994.png?v=1785748113","url":"https:\/\/buyflowscripts.com\/products\/n8n-slack-invoice-extraction-with-gemini-drive-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}