Templates / Qualify bilingual leads with OpenAI, Google Sheets, and Gmail

Qualify bilingual leads with OpenAI, Google Sheets, and Gmail

Ready for 3.0

by Mohamed Hisham · 0 views · created 2026-10-29 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 14 nodes and runs when someone submits an n8n form (“Service inquiry | استفسار عن خدمة”). Along the way it connects Google Sheets, Gmail and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Service inquiry | استفسار عن خدمة”).

  1. Config (Edit Fields (Set)): sets or maps fields
  2. Clean and Validate Lead (Code): runs custom JavaScript code
  3. Accept Valid Lead (If): checks a condition and branches into true / false
  4. Score Lead with OpenAI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  5. Parse Score and Prepare Rows (Code): runs custom JavaScript code
  6. Write One Tab at a Time (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Build Safe Delivery Tasks (Code): runs custom JavaScript code
  8. Append Lead and Audit Rows (Google Sheets): append (sheet)
  9. Route Score and Intent (Switch): routes items into 5 branches
  10. Send Routed Emails (Gmail): send (message)

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsGmailOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

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,…

Excerpt from Mohamed Hisham's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.