πŸ“Š Score and shortlist suppliers with Google Sheets, Google Gemini, and Gmail

⚑ 28 views Β· πŸ“Š Market Research & Insights

Description

Quick overview

This workflow receives an RFx request via webhook, pulls the matching requirements from Google Sheets, finds candidate suppliers from a supplier master sheet, and uses Google Gemini plus an external supplier-intelligence API to score, rank, email, and log the top supplier recommendations.

How it works

  1. Receives an RFx request via a POST webhook containing a request_id.
  2. Reads sourcing requests from Google Sheets and keeps only the row whose Request_ID matches the incoming request_id.
  3. Normalizes the RFx fields (category, country, certification, ESG/diversity requirements, and search criteria) and queries a Supplier_Master Google Sheet for suppliers matching category, country, and certification.
  4. Combines each matched supplier with the RFx details and sends the combined data to Google Gemini to return a JSON fit assessment (ai_fit_score, strength, and recommendation).
  5. Parses the AI JSON, merges it back into the supplier record, and calls an HTTP supplier-intelligence endpoint to add risk/financial fields.
  6. Calculates a weighted final_score, sorts suppliers by score, and keeps the top 5.
  7. Sends the shortlisted suppliers via Gmail and appends the results to a Supplier_Shortlist_Log Google Sheet for auditing.

Setup

  1. Configure the source system to POST to the workflow’s webhook URL (/rfx-request) with a request_id that matches a Request_ID in your sheet.
  2. Add a Google Sheets credential and set the spreadsheet/sheet names for Sourcing_Requests, Supplier_Master, and Supplier_Shortlist_Log.
  3. Add Google Gemini (PaLM) API credentials for the Gemini chat model used in the supplier fit analysis.
  4. Configure the HTTP Request node with your supplier-intelligence API URL/authorization and ensure it returns fields used in scoring (for example risk_score, risk_level, and financial_health_score).
  5. Add a Gmail credential and set the recipient(s)/email options for the supplier shortlist notification.

Additional info

How To Customize Nodes

RFx Request Webhook

Customize:

Find Matching Suppliers

Add additional supplier filters such as:

AI Supplier Match Analysis

Modify the Gemini prompt to evaluate:

Get Supplier Intelligence

Replace the placeholder API with:

Calculate Final Score

Adjust scoring weights to align with business priorities.

Examples:

Create Supplier Shortlist

Modify the maximum supplier count.

Examples:

Add-Ons

Consider extending the workflow with:

Supplier Risk Monitoring

Automatically monitor suppliers for risk changes and trigger alerts.

Contract Management Integration

Push approved suppliers into contract management systems.

ERP Integration

Create supplier records in ERP platforms automatically.

Approval Workflows

Require sourcing manager approval before sending recommendations.

Supplier Performance Tracking

Track awarded suppliers and compare actual performance against AI recommendations.

Dashboard Reporting

Connect Power BI, Looker Studio, or Tableau for sourcing analytics.

Expand supplier matching across multiple sourcing regions.

Use Case Examples

1. Manufacturing Supplier Discovery

Identify certified manufacturing suppliers that meet category, location, and compliance requirements.

2. ESG-Focused Sourcing

Prioritize suppliers with strong ESG performance and sustainability alignment.

3. Diverse Supplier Programs

Support supplier diversity initiatives by rewarding certified diverse suppliers.

4. Strategic Sourcing Projects

Generate qualified supplier shortlists for large procurement initiatives.

5. Procurement Team Productivity

Reduce manual supplier research and evaluation effort through AI-assisted sourcing.

Additional Possibilities

The same workflow framework can be adapted for:

Troubleshooting Guide

IssuePossible CauseSolution
Webhook request not triggering workflowIncorrect webhook URL or inactive workflowVerify webhook URL and activate workflow
RFQ record not foundRequest_ID mismatchConfirm Request_ID exists in Sourcing_Requests sheet
No suppliers returnedSupplier data does not match filtersVerify Category, Country, and Certification values
Gemini node failsInvalid or missing Gemini credentialsReconnect Google Gemini credentials
AI response parsing errorAI output is not valid JSONReview prompt and enforce JSON-only output
Supplier intelligence API failsInvalid URL or authentication issueVerify API endpoint and credentials
Final score appears incorrectMissing supplier data fieldsCheck ESG, diversity, financial, and experience fields
Email not deliveredGmail authentication issueReconnect Gmail OAuth credentials
Logging failsSheet columns do not match mappingsVerify Supplier_Shortlist_Log schema
Empty shortlist generatedNo qualified suppliers foundExpand matching criteria or update supplier database

Need Help?

If you need assistance with:

The n8n development team at WeblineIndia can help customize, extend and deploy this workflow based on your procurement processes and business requirements.

πŸ”— Nodes Used

Google Sheets, HTTP Request, Webhook, Gmail, Filter, Basic LLM Chain

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup