Skip to content
FlowHubFluxonLab
C
AI Automationfree

Score Salesforce playbook compliance with Google Sheets, Gemini, and Slack

by WeblineIndiaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeGoogle GeminiGoogle SheetsGoogle SheetsSalesforceSalesforceSlack
Share Post Share
Load Opportunities from SheetLoad Opportunit…SIProcess Each OpportunityProcess Each Op…Fetch Opportunity from SalesforceFetch Opportuni…SeDefine Playbook RulesDefine Playbook…MeMerge Opportunity and RulesMerge Opportuni…IfCheck Meeting RequirementCheck Meeting R…Evaluate ComplianceEvaluate Compli…CoClean AI ResponseClean AI Respon…SeAuto-Flag Low Meeting CaseAuto-Flag Low M…CoCalculate Final ComplianceCalculate Final…Update Salesforce Compliance FieldsUpdate Salesfor…IfCheck High Risk DealsCheck High Risk…Send Slack AlertSeMark Opportunity as CompliantMark Opportunit…Log Results to SheetLog Results to …MaStart Workflow1234567891011121314151617
1/5
STEPS · 17
Run manually by an operator

Quick overview This workflow manually runs to review Salesforce opportunities listed in Google Sheets, evaluates each deal against sales playbook rules using Google Gemini, updates compliance fields in Salesforce, alerts in Slack for low scores, and logs results back to Google Sheets. How it works Starts manually and loads a list of opportunities from Google Sheets. Processes each row in batches and fetches the latest matching Opportunity record from Salesforce. Adds predefined playbook rules (including a passing score) and combines them with the opportunity data. Checks whether at least two meetings are completed, and if not, auto-generates a non-compliant evaluation without using AI. For opportunities that pass the meeting minimum, sends the opportunity details and rules to Google Gemini to produce a compliance decision, missing steps, score, reason, and risk level, then normalizes the response into structured fields. Updates the Opportunity in Salesforce with compliance status, risk, score, and timestamp, and sends a Slack alert when the compliance score is below 70.

Tags

n8nreference-onlygoogle-geminigoogle-sheetssalesforceslack
Connects
CCodeGoogle GeminisheetsGoogle SheetssalesforceSalesforceSlack
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes16
AddedJul 14, 2026

Related workflows

See all AI Automation
Csheets
free

Route supplier risk alerts from Gmail to Slack with Gemini and Google Sheets

Quick overview This workflow monitors incoming Gmail messages from suppliers, uses Google Gemini to analyze sentiment and relationship risk, generates an engagement strategy for risky emails, sends an alert to Slack, and logs the analysis and recommended response to Google Sheets. How it works Triggers every minute by checking Gmail for new incoming emails. Filters out irrelevant messages (for example newsletters, unsubscribe emails, no-reply senders, and auto-replies) and keeps only valid supplier emails. Extracts the sender, subject, and email snippet into a single text block and waits briefly to buffer processing. Sends the email text to Google Gemini to return a structured JSON analysis with sentiment score/label, intent, urgency, key concern, and deterioration risk, then normalizes these fields and derives a trend. Flags the interaction as high risk based on the deterioration risk value or a low sentiment score and waits briefly before continuing. Uses Google Gemini to generate a concise engagement strategy (recommended action, draft opening message, and follow-up timeline), then parses it and formats a Slack-ready alert. Sends the alert to a selected Slack user and appends th

by WeblineIndia
Cgmailsheets
free

Qualify voicemail leads with Twilio, Google Gemini, Gmail and Google Sheets

Quick overview When a buyer or seller leaves a voicemail, this workflow transcribes it automatically, qualifies their intent using Gemini AI, sends an instant SMS acknowledgment, and alerts the agent for Hot leads — turning every missed call into a qualified lead within seconds. How it works Receives a POST webhook from Twilio when a voicemail recording and transcription are completed. Validates the voicemail by checking that the recording is completed, the transcription is completed, and the call duration is longer than 5 seconds. Extracts the transcript, caller phone number, call SID, duration, and recording URL, then sends the transcript to Google Gemini to return structured lead details, a Hot/Warm/Cold score, and draft SMS/email replies. Parses and sanitizes the Gemini JSON output, applies fallbacks if parsing fails, optionally appends a Google Calendar booking link for Hot leads, and builds an agent-ready HTML summary including the transcript and recording link. Sends an acknowledgment SMS to the caller via Twilio, and sends an acknowledgment email via Gmail only when a caller email address is available. Appends the lead details, transcript, and messaging status to a Google S

by Hassan
Cgmailgoogledrive
free

Extract and validate invoice data from Google Drive using OCR.Space, Gemini, and Google Sheets

Quick overview This workflow monitors a Google Drive folder for newly uploaded invoice files, extracts text with OCR.Space, uses Google Gemini to convert the OCR text into structured invoice fields, validates required values, then stores results in Google Sheets and sends Gmail notifications for success or manual review. How it works Triggers when a new file is created in a specified Google Drive folder. Downloads the uploaded invoice file from Google Drive and checks that the MIME type is PDF, JPG, JPEG, or PNG. Sends the file to the OCR.Space API to extract the invoice text and stops if OCR reports a processing error. Uses Google Gemini to convert the OCR text into structured JSON containing supplier, invoice metadata, amounts, currency, and line items. Validates and normalizes the extracted fields, flags missing required values, and marks the record for manual review when needed. If manual review is required, sends a Gmail alert listing missing fields; otherwise, appends key invoice fields to Google Sheets and sends a Gmail confirmation email. Setup Connect Google Drive OAuth2 credentials and set the folder ID to watch for invoice uploads. Provide an OCR.Space API key and ensure

by WeblineIndia