See llms.txt for all machine-readable content.
This workflow receives purchase requisitions via a webhook, validates and normalizes the payload, uses Google Gemini to classify the requisition into a procurement category with confidence and risk signals, then routes for auto-approval or manual review, logs results to Google Sheets, and notifies stakeholders via Gmail and Slack.
/pr-submission) in your PR submission source and ensure it sends pr_id, requester, description, and amount in the request body.PR_Records sheet, and ensure the columns match the fields being appended (for example pr_id, final_category, confidence_score, and approval_status).Modify the allowed categories inside:
AI: Categorize Purchase RequisitionCurrent categories:
Modify logic inside:
Calculate Classification ConfidenceCurrent approval logic considers:
Typical behavior:
Update the node:
Check Auto Approval EligibilityYou can add additional business rules such as:
Edit message templates inside:
You can include additional PR fields or approval details.
Add more tracking columns in:
Store Procurement RecordExamples:
You can further enhance this workflow with:
Automatically classify laptop, monitor, and hardware requests into the IT Equipment category.
Categorize recurring office supply purchases without manual procurement review.
Detect potential category mismatches and route suspicious PRs for manual review.
Store all procurement decisions, confidence scores, and AI reasoning for compliance and auditing purposes.
Reduce procurement processing time by auto-approving high-confidence purchase requests.
Additional use cases can be built depending on your procurement policies, ERP ecosystem, and approval structure.
| Issue | Possible Cause | Solution |
|---|---|---|
| Webhook not receiving requests | Incorrect webhook URL | Verify webhook endpoint configuration |
| AI categorization fails | Google Gemini credentials missing or invalid | Reconnect Google Gemini credentials |
| PR rejected during validation | Required fields missing | Ensure pr_id, requester, description, and amount are included |
| Gmail notifications not sent | Gmail OAuth2 not configured | Reconnect Gmail credentials |
| Slack alerts not delivered | Invalid Slack channel ID | Update the Slack channel configuration |
| Google Sheets insertion fails | Incorrect spreadsheet or permissions | Verify spreadsheet ID and sharing permissions |
| AI response parsing error | Invalid JSON returned by AI | Review AI prompt formatting |
| Requests always routed for review | Confidence thresholds too strict | Adjust confidence scoring logic |
| Duplicate PR records | Same PR submitted multiple times | Add duplicate detection logic |
| Workflow execution stops unexpectedly | Node configuration issue | Check execution logs in n8n |
If you need assistance with:
the n8n workflow development team at WeblineIndia can help you build, customize and deploy enterprise-grade n8n automation workflows tailored to your business requirements.
You can also extend this workflow with additional integrations, approval chains, procurement intelligence and enterprise compliance features based on your operational needs.