This workflow is built from 27 nodes. Here's what each one does:
| # | Node | Type | What it does |
|---|---|---|---|
| 1 | Lead Intake — Form Trigger | n8n Form Trigger | Starts the workflow from an n8n form submission. |
| 2 | CONFIG — Pipeline Settings | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 3 | CONFIG — Notifications | Set | Holds editable configuration values — fill in your own settings here before activating. |
| 4 | Prepare Lead Record | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 5 | Search Existing Leads | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 6 | Detect Duplicate | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 7 | IF — Duplicate Email? | IF | Splits the flow into branches based on a condition. |
| 8 | Log Duplicate — Status DISCARDED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 9 | Log Lead — Status LEAD_RECEIVED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 10 | AI Agent — Qualify Lead | AI Agent | The AI brain — reasons over the task and calls tools to get it done. |
| 11 | OpenAI Chat Model — Qualifier | OpenAI Chat Model | The language model powering the AI agent. |
| 12 | Structured Output Parser — Qualification | Structured Output Parser | Forces the AI to return clean, structured JSON instead of free text. |
| 13 | Update Lead Log — Status DEDUP_CHECKED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 14 | IF — Verdict Qualified? | IF | Splits the flow into branches based on a condition. |
| 15 | GHL — Create Contact | HTTP Request | Calls an external API or webhook endpoint. |
| 16 | GHL — Create Opportunity | HTTP Request | Calls an external API or webhook endpoint. |
| 17 | GHL — Add Score Note | HTTP Request | Calls an external API or webhook endpoint. |
| 18 | Update Lead Log — Status QUALIFIED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 19 | Build Qualified Alert | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 20 | Telegram — Qualified Alert | Telegram | Sends you a Telegram message or alert. |
| 21 | IF — Verdict Nurture? | IF | Splits the flow into branches based on a condition. |
| 22 | Append Nurture List | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 23 | Update Lead Log — Status NURTURED | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 24 | Update Lead Log — Status DISCARDED (Junk) | Google Sheets | Reads from or writes to a Google Sheet — this workflow's log and state store. |
| 25 | Merge — Combine Verdict Branches | Merge | Combines the outputs of two or more branches back into one flow. |
| 26 | Build Summary Message | Code | Runs custom JavaScript to transform, filter, or compute data between steps. |
| 27 | Telegram — Send Summary | Telegram | Sends you a Telegram message or alert. |