{
  "name": "Salesforce lead capture with GPT-4 personalized email & SMS follow-up",
  "nodes": [
    {
      "id": "ec1d0463-087c-41e4-a4c9-e1672c1bee61",
      "name": "Create Salesforce Lead",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        -380,
        -200
      ]
    },
    {
      "id": "3595d4f3-b3c3-4aa7-ba99-398ff7ab6fad",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -580,
        -200
      ]
    },
    {
      "id": "4349f4a7-98a1-4805-a7b1-fcc475274eea",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -160,
        -200
      ]
    },
    {
      "id": "cac8625a-bd57-48b1-b98f-70daa4561c7c",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        200,
        -200
      ]
    },
    {
      "id": "05b99b9d-a6ce-44a1-9269-508b7afce052",
      "name": "Send SMS",
      "type": "n8n-nodes-base.twilio",
      "position": [
        520,
        -300
      ]
    },
    {
      "id": "5d392311-853e-4e97-a436-874cc891bc6b",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        520,
        -80
      ]
    },
    {
      "id": "10d1bb22-1c6e-4762-937a-f4d1cbba7259",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -480
      ],
      "parameters": {
        "width": 320,
        "height": 460,
        "content": "## n8n Web Lead Form Alternative to Salesforce Web-to-Lead\n \nThis workflow captures leads via n8n's form trigger, creates Salesforce records, personalizes responses with OpenAI, and sends via email/SM"
      }
    }
  ],
  "connections": {
    "OpenAI": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Send SMS",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Create Salesforce Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Salesforce Lead": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}