Skip to main content

AI sales agent — fully automated email handling & lead scoring system

Workflow preview

Workflow preview
100%
AI sales agent — fully automated email handling & lead scoring system preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.nocodb, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.cron, n8n-nodes-base.splitinbatches

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Evervise.

Original n8n.io source

1.1 Workflow description

Title
AI sales agent — fully automated email handling & lead scoring system
Workflow name
AI sales agent — fully automated email handling & lead scoring system

🤖 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 cold emails but also reads and interprets replies, updates your CRM, and even writes contextual responses — just like a real sales rep would.
Ideal for founders, growth teams, and agencies who want to automate outreach and follow-ups without losing the human touch.


🧩 What This Workflow Does

🔹 1. Smart AI Email Analysis

Every incoming email is parsed and sent to GPT-4o for structured classification:

  • Detects unsubscribe requests, automated replies, or manual responses
  • Extracts intent, sentiment, urgency, and key points
  • Determines the next best action — follow-up, escalate, or close

🔹 2. Personalized AI Replies

When appropriate, the workflow automatically drafts replies that:

  • Match the sender’s tone and intent
  • Address objections using feel-felt-found logic
  • Suggest the most relevant product or resource
  • Sign off naturally (e.g. “Sofia from Tech Powered Growth”)

🔹 3. Lead Scoring & CRM Sync (NocoDB)

Leads are continuously enriched and scored based on activity:

  • +5 points for interested replies, +2 for clicks, –10 for unsubscribes
  • Status automatically transitions between cold → warm → hot
  • Daily maintenance updates decay inactive leads and schedule re-engagement

🔹 4. Engagement Tracking & Insights

The workflow tracks opens, clicks, bounces, spam, and unsubscribes from Brevo (Sendinblue), updating CRM records instantly.
Each day, it generates a performance report with lead distribution, score changes, and actionable recommendations.


⚙️ Integrations Used

  • OpenAI GPT-4o-mini — intent classification & reply generation
  • Brevo (Sendinblue) — email sending & webhook event tracking
  • Gmail — real-time incoming replies & outbound responses
  • NocoDB — lead management, scoring, and analytics
  • n8n Code Nodes — smart logic for scoring, decay, and decision flow

🚀 Key Benefits

  • ✅ Save hours of manual email triage and follow-ups
  • 💬 Maintain human-sounding conversations with prospects
  • 📊 Keep lead data accurate and always up-to-date
  • ⚡ Automatically nurture, score, and re-engage leads
  • 📈 Get daily actionable analytics for your sales pipeline

🛠️ Setup Instructions

  1. Connect your NocoDB, Brevo, Gmail, and OpenAI credentials
  2. Adjust your NocoDB table structure or use the sample schema provided
  3. Set your sender details in the “Send Initial Outreach Email” node
  4. Customize the AI response prompt with your brand tone or offer
  5. Turn on the triggers — and watch your AI sales assistant go to work

💡 Ideal For

  • Solo founders automating outreach
  • B2B agencies handling multiple clients
  • Growth engineers and sales ops teams
  • SaaS companies with inbound or outbound funnels

🧠 Pro Tip

Pair this workflow with your lead scraping or enrichment flow to create a fully autonomous sales system — from discovery to closed deal.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Find Lead by Email

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 2 - AI Intent Classification

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.4

Block 3 - Create Manual Review

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 4 - Generate AI Response

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.4

Block 5 - Natural Response Delay

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Log Interaction

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 7 - Update Lead Score

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Parse Event Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Find Lead

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 11 - Lead Found?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 12 - Log Engagement Event

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 13 - Calculate Score Update

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Update Lead Engagement

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 15 - Special Action Needed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Daily Trigger

Type / Role
n8n-nodes-base.cron - cron
Config choices
Version 1

Block 18 - Get All Active Leads

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 19 - Process in Batches

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 20 - Calculate Score Decay

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Update Lead Scores

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 22 - Needs Re-engagement?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 23 - Schedule Re-engagement

Type / Role
n8n-nodes-base.nocoDb - nocoDb
Config choices
Version 3

Block 24 - Generate Analytics Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 77 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI sales agent — fully automated email handling & lead scoring system
Complexity advanced
Nodes 77
Categories Lead Nurturing, AI Chatbot
Author Evervise
Published 24 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10128/10128.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI sales agent — fully automated email handling & lead scoring system do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, AI Chatbot use case.