GenAiHub

Last checked 24 November 2026 — responded normally.

Qualify bilingual leads with OpenAI, Google Sheets, and Gmail

Quick overview

Live
Open / InstallLast updated November 24, 2026

Description

Quick overview This workflow collects Arabic or English service inquiries via an n8n Form, validates and scores them with OpenAI, logs each submission to Google Sheets, and routes bilingual acknowledgment and owner alert emails through Gmail based on intent, score, and confidence. How it works Receives a lead submission from an n8n Form trigger. Cleans and validates the submitted fields, flags spam patterns or blocked senders, and rejects invalid inputs. For valid leads, sends the service and message to OpenAI to return a JSON classification with language, intent, score, summary, and confidence. Validates the AI output, assigns a routing status (hot/warm/cold/review) using confidence and threshold rules, and prepares rows for the appropriate Google Sheets tabs. Appends the lead record to the Leads tab and also to Review or Rejected tabs when applicable in Google Sheets. If Google Sheets writes are confirmed, generates safe HTML email tasks and sends them through Gmail (hot leads also alert the owner, while warm/cold leads receive bilingual acknowledgments). If Gmail does not confirm a send, emails the owner a failure alert through Gmail without automatically resending the lead acknowledgment. Setup In the Config node, replace businessName, ownerEmail, and sheetId, then set setupComplete to true and adjust thresholds, timezone, templates, and validation limits as needed. Create a Google Sheets document with three tabs named Leads, Rejected, and Review, and add the exact header columns expected by the append step. Add Google Sheets OAuth2 credentials with edit access to the target spreadsheet. Add OpenAI credentials for the OpenAI Chat Model and ensure the selected model is available in your account. Add Gmail OAuth2 credentials with permission to send email from your chosen mailbox, and verify the owner and reply email addresses are correct. An n8n automation workflow template by Mohamed Hisham.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Mohamed Hisham

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • google-sheets
  • gmail
  • code
  • basic-llm-chain
  • openai-chat-model

Capabilities

  • 5 nodes

Information

TypeWorkflow
Sourcen8n
AddedNovember 4, 2026

Comments

?

Others in the same category, ranked by how often they are opened.