AI sales agent — fully automated email handling & lead scoring system
Needs changesWhat this workflow does
This AI workflow has 57 nodes and runs on a schedule (legacy Cron node) (plus 3 other triggers). Along the way it connects NocoDB, OpenAI, Gmail and Brevo.
How it runs
Trigger: On a schedule (legacy Cron node) (plus 3 other triggers).
- Get Top 10 Leads (NocoDB): uses NocoDB
- Parse Event Data (Code): runs custom JavaScript code
- Get All Active Leads (NocoDB): uses NocoDB
- Parse Response Data (Code): runs custom JavaScript code
- Loop Over Leads (Loop Over Items (Split in Batches)): loops over the items in batches
- Find Lead (NocoDB): uses NocoDB
- Process in Batches (Loop Over Items (Split in Batches)): loops over the items in batches
- Find Lead by Email (NocoDB): uses NocoDB
- Get Product Info (NocoDB): uses NocoDB
- Get Previous Correspondance (NocoDB): uses NocoDB
…plus 43 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + NocoDB templates (12) · Other Brevo + Gmail templates (5)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Cron in Daily Trigger, Hourly Trigger: replace with Schedule Trigger.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| Cron Daily Trigger, Hourly Trigger | Schedule Trigger |
Nodes used (15)
- NocoDB
n8n-nodes-base.nocoDb - OpenAI
@n8n/n8n-nodes-langchain.openAi - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Cron
n8n-nodes-base.cron - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Aggregate
n8n-nodes-base.aggregate - HTTP Request
n8n-nodes-base.httpRequest - Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Brevo Trigger
n8n-nodes-base.sendInBlueTrigger - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch
From the author
🤖 AI Sales Agent — Fully Automated Email Handling & Lead Scoring System Automate lead outreach, analyze replies with AI, and keep your CRM always in sync — hands-free. This workflow acts as a 24/7 intelligent sales assistant that not only sends personalized…