Skip to main content

LeadBot autopilot — chat-to-lead for Salesforce

Workflow preview

Workflow preview
100%
LeadBot autopilot — chat-to-lead for Salesforce preview
Open on n8n.io

Important notice

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

1. Workflow Overview

LeadBot Autopilot — Chat to Lead for Salesforce Description — How It Works 1. Greets & Guides: Welcomes the visitor and collects info step by step — Full Name → Email → Mobile → Product Interest. 2...

Best for

  • Lead Generation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.salesforcetool, @n8n/n8n-nodes-langchain.toolthink, n8n-nodes-base.emailsendtool, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
LeadBot autopilot — chat-to-lead for Salesforce
Workflow name
LeadBot autopilot — chat-to-lead for Salesforce

LeadBot Autopilot — Chat-to-Lead for Salesforce

Description — How It Works

  1. Greets & Guides: Welcomes the visitor and collects info step-by-step — Full Name → Email → Mobile → Product Interest.
  2. Validates Inputs: Checks email/phone formats; politely re-asks if invalid.
  3. De-dupe in Salesforce: Looks up by email; updates an existing lead if found.
  4. Create/Update Lead: Writes to Salesforce, including ProductInterest__c.
  5. Notify Instantly: Sends a Slack alert to your team and a personalized email to the prospect.
  6. Close the Loop: Confirms submission and ends the chat.

Description — Set Up Steps (≈45–75 mins)

  • Connect Credentials (20–30 mins): Salesforce OAuth, OpenAI, Slack, SMTP.
  • Tune the Prompt (5–10 mins): Greeting, field order, product options.
  • Map Fields (10–15 mins): Name split, email/phone, ProductInterest__c.
  • Smoke Test (10–15 mins): Run a full chat; verify de-dupe, Slack + email.
  • Go Live (5–10 mins): Expose the webhook/chat entry point on your site.

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 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Simple Memory

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

Block 5 - check_duplicate_lead

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

Block 6 - Think

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 7 - update_lead

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

Block 8 - create_lead

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

Block 9 - send_notification_client

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

Block 16 - Sticky Note6

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

Block 17 - Sticky Note7

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

Block 18 - Sticky Note8

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

Block 19 - Sticky Note9

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

Block 20 - send_notification_internal

Type / Role
n8n-nodes-base.slackTool - slackTool
Config choices
Version 2.3

Block 21 - Sticky Note10

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

3. Summary Table

Workflow LeadBot autopilot — chat-to-lead for Salesforce
Complexity advanced
Nodes 21
Categories Lead Generation, Multimodal AI
Author Le Nguyen
Published 16 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7467/7467.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 LeadBot autopilot — chat-to-lead for Salesforce do?

LeadBot Autopilot — Chat to Lead for Salesforce Description — How It Works 1. Greets & Guides: Welcomes the visitor and collects info step by step — Full Name → Email → Mobile → Product Interest. 2...

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