Skip to main content

Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets

Workflow preview

Workflow preview
100%
Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow receives inbound lead data via a webhook, uses Anthropic Claude to qualify it as HOT, WARM, or COLD, then routes HOT leads to Gmail and WARM leads to Google Sheets, and...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatanthropic, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.switch, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets
Workflow name
Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets

Quick overview

This workflow receives inbound lead data via a webhook, uses Anthropic Claude to qualify it as HOT, WARM, or COLD, then routes HOT leads to Gmail and WARM leads to Google Sheets, and finally returns the score in the webhook response.

How it works

  1. Receives a POST webhook request containing lead details (nom, email, entreprise, message).
  2. Normalizes the incoming fields into a consistent lead payload.
  3. Sends the lead details to Anthropic Claude (via an n8n LangChain chain) to classify the lead as HOT, WARM, or COLD with a one-sentence justification.
  4. Routes the result based on whether the model output contains HOT or WARM (everything else falls back to the default path).
  5. Sends an HTML email via Gmail with the lead details and AI justification when the lead is HOT.
  6. Appends the lead details, score, justification, and timestamp to a Google Sheets sheet when the lead is WARM.
  7. Responds to the webhook caller with a JSON payload indicating success and the model’s classification text.

Setup

  1. Add an Anthropic API credential and select the Claude model in the Anthropic Chat Model configuration.
  2. Add a Gmail OAuth2 credential and replace [email protected] with the inbox that should receive HOT lead alerts.
  3. Add a Google Sheets OAuth2 credential, set VOTRE_SHEET_ID to your spreadsheet, and ensure the target sheet includes columns for nom, email, entreprise, message, score, justification, and date.
  4. Copy the production webhook URL for the lead-qualifier endpoint and configure your form/website/app to POST lead data to it in the expected body fields.

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

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

Block 2 - Section 1

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

Block 3 - Section 2

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

Block 4 - Receive Lead

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 5 - Set Lead Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Score Lead with Claude

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.9

Block 7 - Claude Haiku

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.5

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - Route by Score

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 10 - Alert: Email HOT Lead

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 11 - Log WARM Lead

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 12 - Return Score to Caller

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

3. Summary Table

Workflow Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets
Complexity intermediate
Nodes 12
Categories Lead Generation, AI Summarization
Author nexum
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15902/15902.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 Qualify inbound email leads with Claude Haiku, Gmail, and Google Sheets do?

Quick overview This workflow receives inbound lead data via a webhook, uses Anthropic Claude to qualify it as HOT, WARM, or COLD, then routes HOT leads to Gmail and WARM leads to Google Sheets, and...

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 Generation, AI Summarization use case.