{"product_id":"classify-purchase-requisitions-with-gemini-gmail-slack-n8n","title":"Classify Purchase Requisitions with Gemini, Gmail \u0026 Slack | n8n","description":"\u003ch3\u003eAutomatically classify purchase requisitions with Gemini, then route for approval via Gmail \u0026amp; Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives new purchase requisitions through a webhook, uses \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to classify each PR into a procurement category with \u003cstrong\u003econfidence\u003c\/strong\u003e and \u003cstrong\u003erisk signals\u003c\/strong\u003e, and then either \u003cstrong\u003eauto-approves\u003c\/strong\u003e or sends it for \u003cstrong\u003emanual review\u003c\/strong\u003e—with full logging and stakeholder notifications via \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, \u003cstrong\u003eGmail\u003c\/strong\u003e, and \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives PR submissions\u003c\/strong\u003e as a POST request to the webhook endpoint (example: \u003ccode\u003e\/pr-submission\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates required fields\u003c\/strong\u003e including \u003cem\u003ePR ID\u003c\/em\u003e, \u003cem\u003erequester\u003c\/em\u003e, \u003cem\u003edescription\u003c\/em\u003e, and \u003cem\u003eamount\u003c\/em\u003e, then normalizes the payload into a consistent structure.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies with Google Gemini\u003c\/strong\u003e by sending requisition details plus the allowed category list, requesting a strict \u003cstrong\u003eJSON\u003c\/strong\u003e response (category, confidence, risk, correction, reasoning).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDecides approval vs. manual review\u003c\/strong\u003e based on confidence thresholds and misclassification risk.\u003c\/li\u003e\n  \u003cli\u003eIf eligible: \u003cstrong\u003emarks the requisition as auto-approved\u003c\/strong\u003e and ready for \u003cstrong\u003eERP routing\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIf not eligible: \u003cstrong\u003emarks it pending manual review\u003c\/strong\u003e and creates a review ticket flow via \u003cstrong\u003eGmail\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs an audit record\u003c\/strong\u003e to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e and sends status updates through \u003cstrong\u003eGmail\u003c\/strong\u003e and a \u003cstrong\u003eSlack\u003c\/strong\u003e channel.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReduce procurement bottlenecks by auto-classifying PRs that meet confidence and risk thresholds.\u003c\/li\u003e\n  \u003cli\u003eFlag ambiguous or high-risk requisitions for human review automatically.\u003c\/li\u003e\n  \u003cli\u003eMaintain a clear audit trail for each categorized purchase requisition in Google Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e endpoint for incoming requisition data.\u003c\/li\u003e\n  \u003cli\u003eNodes: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003egmail\u003c\/strong\u003e, \u003cstrong\u003emerge\u003c\/strong\u003e, \u003cstrong\u003eslack\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e integration for strict JSON category classification.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail OAuth2\u003c\/strong\u003e for email notifications\/review tickets.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45872784703667,"sku":"N8N-18492","price":67.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/7QdIOz-Vvu2OEWNsD-bmc_VirK6ghv.png?v=1787216575","url":"https:\/\/buyflowscripts.com\/products\/classify-purchase-requisitions-with-gemini-gmail-slack-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}