{
  "name": "Run an AI SDR sales pipeline with OpenAI, Google Sheets, Gmail and Calendar",
  "nodes": [
    {
      "id": "c04df318-1ba8-45ed-9714-6082975dba18",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 1584,
        "height": 496,
        "content": "# Flow 1: CRM Agent\nMoves leads from Lead List to CRM"
      }
    },
    {
      "id": "f7eba756-3dfc-4d29-bc13-6831a537f69f",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        64,
        208
      ]
    },
    {
      "id": "96fdc901-baed-478c-9f7b-073084089545",
      "name": "Email List",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        272,
        208
      ]
    },
    {
      "id": "87b853ac-203b-4a02-9571-d99557711e7c",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        480,
        208
      ]
    },
    {
      "id": "852b820e-4c59-4224-a08d-d2179c6a1cf0",
      "name": "Update CRM",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        304
      ]
    },
    {
      "id": "26653239-175c-4320-9514-1c18f48bfba9",
      "name": "Get row(s) from CRM",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1008,
        304
      ]
    },
    {
      "id": "4001ace2-6baa-4597-9305-79b4dca62819",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1216,
        304
      ]
    },
    {
      "id": "fdf58236-8fce-4063-aafd-4f8698a62c2d",
      "name": "Finalize Contact Record in Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1424,
        304
      ]
    },
    {
      "id": "cc5708c8-eaaf-4fbf-a664-ac59c699f138",
      "name": "Count",
      "type": "n8n-nodes-base.summarize",
      "position": [
        800,
        112
      ]
    },
    {
      "id": "6eb33933-dac5-46fc-92f3-161d2bbcf29f",
      "name": "Reset email list",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1008,
        112
      ]
    },
    {
      "id": "cd94b74c-5148-476f-861b-0a83ca6b8b69",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        528
      ],
      "parameters": {
        "width": 1728,
        "height": 608,
        "content": "# Flow 2: Follow-Up Agent\nSends 3 personalized follow-up emails every 2 days"
      }
    },
    {
      "id": "07b9b253-9c2f-45ae-b7fa-69a28958eff1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        1168
      ],
      "parameters": {
        "width": 656,
        "height": 368,
        "content": "# Flow 3: Concierge Agent\nUpdates CRM when someone books a call\n"
      }
    },
    {
      "id": "ee97152c-4f36-4323-adfd-6ef5379a8e70",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        1168
      ],
      "parameters": {
        "width": 896,
        "height": 368,
        "content": "# Flow 4: No-Show Agent\nEmails leads who miss calls"
      }
    },
    {
      "id": "2f53546d-982c-4d80-af11-d20a00867942",
      "name": "Schedule Trigger (Follow Ups)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        64,
        752
      ]
    },
    {
      "id": "effffea2-866f-4f56-bdc1-9f5266f74b33",
      "name": "Get rows from CRM",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        272,
        752
      ]
    },
    {
      "id": "8f754c06-b0a9-4ff9-a37d-365d95e05dc5",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        480,
        752
      ]
    },
    {
      "id": "62991a84-37c9-42d1-b7fd-73c2afe28002",
      "name": "Which follow-up phase?",
      "type": "n8n-nodes-base.switch",
      "position": [
        688,
        736
      ]
    },
    {
      "id": "2e0b3a30-d994-49ee-be53-12565523e73f",
      "name": "Follow Up 1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        976,
        560
      ]
    },
    {
      "id": "c8105904-a3ad-405d-8da8-13753d5b24ed",
      "name": "Send First Follow Up",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1328,
        560
      ]
    },
    {
      "id": "1e75be13-56cc-4137-8f1e-d71c74667f52",
      "name": "Update CRM (Follow Up 1)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1536,
        560
      ]
    },
    {
      "id": "c1d6c670-9386-4b7d-b664-8fd744d422d1",
      "name": "Follow Up 3",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        976,
        944
      ]
    },
    {
      "id": "c90f5478-eddc-4250-a75d-8e6e84e8942e",
      "name": "Follow Up 2",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        976,
        752
      ]
    },
    {
      "id": "75106f00-bd4c-42a9-8d44-f7331d1543a4",
      "name": "Send Second Follow Up",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1328,
        752
      ]
    },
    {
      "id": "83034612-a064-465a-a13d-dea08cb6f3fb",
      "name": "Send Third Follow Up",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1328,
        944
      ]
    },
    {
      "id": "4f6b384c-9256-493f-89da-db62bccbe750",
      "name": "Update CRM (Follow Up 2)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1536,
        752
      ]
    },
    {
      "id": "c9bf82f2-0987-4df1-86d1-3da97e8563d8",
      "name": "Update CRM (Follow Up 3)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1536,
        944
      ]
    },
    {
      "id": "84baca8d-eb6c-45a5-bf8c-ef99008f778f",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        272,
        1312
      ]
    },
    {
      "id": "a487ef27-7cd9-4fa2-b464-ac4e2b1048a5",
      "name": "Update CRM (Call Scheduled)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        480,
        1216
      ]
    },
    {
      "id": "e8ff9503-18ad-4c38-a7c3-c9d255dde706",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        480,
        1408
      ]
    },
    {
      "id": "d7b20e0f-ff21-4939-a2b9-97b7185cc33c",
      "name": "Schedule Trigger (No shows)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        752,
        1312
      ]
    },
    {
      "id": "c47e81e3-6d20-4534-9864-202723ca3ba3",
      "name": "Check for \"No Shows\"",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        960,
        1312
      ]
    },
    {
      "id": "876ba313-7e7d-4a89-bccd-487a87732202",
      "name": "Send No-Show Follow-Up",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1168,
        1312
      ]
    },
    {
      "id": "07c8fe5f-d789-49ef-85b8-e10850763eb0",
      "name": "Update No-Show Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1376,
        1312
      ]
    },
    {
      "id": "ebb89ffa-5b7f-494f-a772-b73e8792d5ce",
      "name": "OpenAI Follow Up",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        704,
        960
      ]
    },
    {
      "id": "051378a3-5803-4d04-9639-1cbd664054da",
      "name": "Google Calendar Trigger",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        80,
        1312
      ]
    },
    {
      "id": "2fc3126c-15b9-4ab3-b58b-b5849785df97",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        48
      ],
      "parameters": {
        "width": 704,
        "height": 1344,
        "content": "# Sales Agent\nThis n8n template is a complete, automated sales operating system. It acts as an AI-powered sales development representative (SDR) that moves leads into a CRM, sends highly personalized "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Update CRM (Call Scheduled)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Finalize Contact Record in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Count": {
      "main": [
        [
          {
            "node": "Reset email list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Which follow-up phase?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email List": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update CRM": {
      "main": [
        [
          {
            "node": "Get row(s) from CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow Up 1": {
      "main": [
        [
          {
            "node": "Send First Follow Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow Up 2": {
      "main": [
        [
          {
            "node": "Send Second Follow Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow Up 3": {
      "main": [
        [
          {
            "node": "Send Third Follow Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Count",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Follow Up": {
      "ai_languageModel": [
        [
          {
            "node": "Follow Up 1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Follow Up 2",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Follow Up 3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Email List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get rows from CRM": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) from CRM": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for \"No Shows\"": {
      "main": [
        [
          {
            "node": "Send No-Show Follow-Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send First Follow Up": {
      "main": [
        [
          {
            "node": "Update CRM (Follow Up 1)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Third Follow Up": {
      "main": [
        [
          {
            "node": "Update CRM (Follow Up 3)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Second Follow Up": {
      "main": [
        [
          {
            "node": "Update CRM (Follow Up 2)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send No-Show Follow-Up": {
      "main": [
        [
          {
            "node": "Update No-Show Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Which follow-up phase?": {
      "main": [
        [
          {
            "node": "Follow Up 1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Follow Up 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Follow Up 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar Trigger": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger (No shows)": {
      "main": [
        [
          {
            "node": "Check for \"No Shows\"",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger (Follow Ups)": {
      "main": [
        [
          {
            "node": "Get rows from CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Finalize Contact Record in Sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}