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
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).
| 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…