Skip to main content

Salesforce lead capture with GPT-4 personalized email & SMS follow-up

Workflow preview

Workflow preview
100%
Salesforce lead capture with GPT-4 personalized email & SMS follow-up preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How It Works This workflow transforms n8n into a smart Web Lead Form alternative to Salesforce's traditional Web to Lead, capturing leads, creating Salesforce records, and sending AI personalized r...

Best for

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

Tools used

n8n-nodes-base.salesforce, n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.switch, n8n-nodes-base.twilio, n8n-nodes-base.emailsend, 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
Salesforce lead capture with GPT-4 personalized email & SMS follow-up
Workflow name
Salesforce lead capture with GPT-4 personalized email & SMS follow-up

How It Works

This workflow transforms n8n into a smart Web Lead Form alternative to Salesforce's traditional Web-to-Lead, capturing leads, creating Salesforce records, and sending AI-personalized responses via email or SMS.

  • Capture Submission: User submits form data (name, email, phone, description, preference) via n8n's hosted form.
  • Create Lead: Maps data to a new Salesforce Lead.
  • Personalize Message: Uses OpenAI to generate a tailored welcome based on description and preference (detailed for email, concise for SMS).
  • Route Outreach: Branches to send via Twilio SMS or SMTP email depending on preference.

Set Up Steps

Setup takes about 15-30 minutes if you have credentials ready. Focus on connecting services; detailed configs are in workflow sticky notes.

  • Duplicate this template in n8n.
  • Add your Salesforce, OpenAI, Twilio, and SMTP credentials (no hardcoding—use n8n's credential manager).
  • Customize form fields if needed and test with sample data.
  • Activate and share the form URL on your site.

n8n Web to Lead Form.json

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 - Create Salesforce Lead

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

Block 2 - On form submission

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

Block 3 - OpenAI

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

Block 4 - Switch

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

Block 5 - Send SMS

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

Block 6 - Send Email

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

Block 7 - Sticky Note

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

3. Summary Table

Workflow Salesforce lead capture with GPT-4 personalized email & SMS follow-up
Complexity intermediate
Nodes 7
Categories Lead Generation, Multimodal AI
Author Le Nguyen
Published 17 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6102/6102.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 Salesforce lead capture with GPT-4 personalized email & SMS follow-up do?

How It Works This workflow transforms n8n into a smart Web Lead Form alternative to Salesforce's traditional Web to Lead, capturing leads, creating Salesforce records, and sending AI personalized r...

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.