# Classify procurement spend in Google Sheets with Gemini and Gmail

> Quick Overview This workflow classifies procurement transactions stored in Google Sheets using Google Gemini with an approved spend taxonomy and prior human feedback, then either auto-updates the transactions and logs results or routes uncertain cases to a reviewer by Gmail and captures the final decision via an n8n form. How it works 1. Runs daily on a schedule trigger and loads workflow settings such as confidence threshold, statuses, and the review recipient email. 2. Reads pending transactions, active spend categories, and approved historical classification feedback from Google Sheets and builds a taxonomy plus a limited set of feedback examples. 3. For each pending transaction, sends the transaction context, allowed taxonomy, and feedback examples to Google Gemini and parses a structured classification output. 4. Validates that the predicted category code and name exist in the active taxonomy and that the confidence score and reasoning fields are present and well-formed. 5. If the

- **Domain**: `n8n-workflow-21509.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21509
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21509.n8n.io
- Documentation: https://n8n.io/workflows/21509
