Skip to main content

Multi-channel campaign messaging with GPT-4 and Salesforce

Workflow preview

Workflow preview
100%
Multi-channel campaign messaging with GPT-4 and 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

How it works 1. Fetch campaign & members from Salesforce. 2. GPT‑4 auto‑writes a channel‑appropriate, personalised outbound message. 3. Switch node sends via Twilio (SMS/WhatsApp), SMTP (Email). 4....

Best for

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

Tools used

n8n-nodes-base.twilio, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.emailsend, n8n-nodes-base.httprequest, n8n-nodes-base.salesforce, n8n-nodes-base.stickynote, n8n-nodes-base.switch, n8n-nodes-base.scheduletrigger

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
Multi-channel campaign messaging with GPT-4 and Salesforce
Workflow name
Multi-channel campaign messaging with GPT-4 and Salesforce

How it works

  1. Fetch campaign & members from Salesforce.
  2. GPT‑4 auto‑writes a channel‑appropriate, personalised outbound message.
  3. Switch node sends via Twilio (SMS/WhatsApp), SMTP (Email).
  4. Mark each member as processed to avoid double‑touches.
  5. Error trigger notifies Slack if anything fails.

Set‑up steps

  1. Time: ~10‑15 min once credentials are ready.
  2. Prereqs: Active Salesforce OAuth app, Twilio account, SMTP creds, Slack app.
  3. In‑flow sticky notes walk you through credential mapping, environment variables, and optional tweaks (e.g., campaign SOQL filter).

> Copy the workflow, add your keys, and run a quick manual test—after that you can place it on a cron or Salesforce trigger.

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 - Send SMS

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

Block 2 - OpenAI

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

Block 3 - Send Email

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

Block 4 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Fetch Campaign

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Fetch Campaign Members

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

Block 9 - Sticky Note2

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

Block 10 - Sticky Note3

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

Block 11 - Communication Method Switch

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

Block 12 - Send Whatsapp

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

Block 13 - Sticky Note4

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

Block 14 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

3. Summary Table

Workflow Multi-channel campaign messaging with GPT-4 and Salesforce
Complexity intermediate
Nodes 14
Categories Lead Nurturing, Multimodal AI
Author Le Nguyen
Published 21 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6219/6219.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 Multi-channel campaign messaging with GPT-4 and Salesforce do?

How it works 1. Fetch campaign & members from Salesforce. 2. GPT‑4 auto‑writes a channel‑appropriate, personalised outbound message. 3. Switch node sends via Twilio (SMS/WhatsApp), SMTP (Email). 4....

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