{
  "name": "Automate lead meeting scheduling with Zoho CRM, Google Calendar & Gemini AI",
  "nodes": [
    {
      "id": "5f5e5d7b-6d70-4c73-9f05-ffda8eb04dd8",
      "name": "New Lead Trigger",
      "type": "n8n-nodes-base.zohoCrm",
      "position": [
        -800,
        368
      ]
    },
    {
      "id": "6fdef927-6c46-476c-89e4-3da12a64d3e8",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -496,
        368
      ]
    },
    {
      "id": "d74b2808-6562-446a-af66-546d93d48d80",
      "name": "Get Sales Rep Details",
      "type": "n8n-nodes-base.zohoCrm",
      "position": [
        -128,
        368
      ]
    },
    {
      "id": "4bd23adf-0fdf-4361-a6f2-a1947c4690c7",
      "name": "Detect Lead Timezone",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        368
      ]
    },
    {
      "id": "596b7c12-344f-4651-8986-42a4df49f61b",
      "name": "Get Rep Calendar Availability",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        224,
        368
      ]
    },
    {
      "id": "3b78a1d2-bf0e-4b9b-9786-76cc39a65b25",
      "name": "Find Available Slots with Buffer",
      "type": "n8n-nodes-base.code",
      "position": [
        448,
        368
      ]
    },
    {
      "id": "3a2ef151-6eca-4757-964f-2da81eba5b48",
      "name": "Check Slots Available",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        368
      ]
    },
    {
      "id": "44b47691-07a1-4b94-8712-8253426579cc",
      "name": "Generate Meeting Link",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        64
      ]
    },
    {
      "id": "c80d5adf-e346-40a9-b841-dce726c188e6",
      "name": "Generate Personalized Invite",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1888,
        304
      ]
    },
    {
      "id": "74cc79c0-dd30-4414-8af3-66601029ba2d",
      "name": "Send Meeting Invite",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2224,
        304
      ]
    },
    {
      "id": "830014ab-c1fc-43c4-a091-76325c1b0320",
      "name": "Log Meeting in Zoho CRM",
      "type": "n8n-nodes-base.zohoCrm",
      "position": [
        2464,
        304
      ]
    },
    {
      "id": "bcdcb6dd-9585-4369-822c-c9523819fa64",
      "name": "No Slots Available Message",
      "type": "n8n-nodes-base.set",
      "position": [
        1056,
        544
      ]
    },
    {
      "id": "4fc09d7c-4e51-4635-8927-5a938a7f3a7d",
      "name": "Send No Availability Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1360,
        544
      ]
    },
    {
      "id": "326b149a-ef54-44e1-ba7f-73914f74bcca",
      "name": "Zoho CRM Lead Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1040,
        368
      ]
    },
    {
      "id": "13b1e2c4-3b4f-4cfb-a78c-1b6602928a50",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1920,
        544
      ]
    },
    {
      "id": "2fe13fe0-5ac7-4b1c-9a74-5801491e4c9a",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        64
      ]
    },
    {
      "id": "5bf907e6-4f69-4e62-ad19-e828e97431ea",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -608
      ],
      "parameters": {
        "width": 656,
        "height": 1024,
        "content": "## How It Works\nThis workflow automatically schedules meetings for new Zoho CRM leads. When a lead is created, Zoho triggers a webhook that sends the lead ID to n8n, which then retrieves full lead det"
      }
    },
    {
      "id": "95c0d447-1545-446e-93b2-47ef3304ae24",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        176
      ],
      "parameters": {
        "width": 448,
        "height": 480,
        "content": "## Lead Capture & Retrieval (Webhook + Zoho CRM Get Lead)\n### Automatically triggers when a new lead is created in Zoho CRM. The webhook sends the lead ID to n8n, which then fetches full lead details "
      }
    },
    {
      "id": "e51df1c6-c11c-4510-9289-85a7c053cfb0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        176
      ],
      "parameters": {
        "width": 320,
        "height": 480,
        "content": "## Workflow Configuration\n### Stores all scheduling settings such as meeting duration, buffers, working hours, days to search, and meeting provider for later workflow steps."
      }
    },
    {
      "id": "701e6b38-0538-4421-810b-65e9f624cf18",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        176
      ],
      "parameters": {
        "width": 816,
        "height": 480,
        "content": "## Sales Rep & Availability Processing\n### Retrieves the assigned sales rep’s details, detects the lead’s timezone, checks the rep’s current calendar events, and generates conflict-free meeting slots "
      }
    },
    {
      "id": "90d2adf7-7678-4156-a69a-9a76457b82a8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -224
      ],
      "parameters": {
        "width": 576,
        "height": 560,
        "content": "## Zoom Meeting Creation\n### Authenticates with Zoom to obtain an access token, then creates a scheduled Zoom meeting using the earliest available time slot and returns the join details."
      }
    },
    {
      "id": "0c15bd75-4297-4c65-9a2b-7daf10df99a4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        368
      ],
      "parameters": {
        "width": 576,
        "height": 464,
        "content": "## Fallback Email Handling\n### Prepares a polite “no availability” message and sends it to the lead via Gmail when no suitable meeting slots are found, prompting them to share preferred times."
      }
    },
    {
      "id": "d9fada0c-fa2e-487f-a955-692cdcfba297",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        80
      ],
      "parameters": {
        "width": 1056,
        "height": 624,
        "content": "## AI Email & CRM Logging\n### Generates a personalized HTML invite with meeting details and top time slots, sends it to the lead via Gmail, and logs the scheduled meeting inside Zoho CRM for tracking."
      }
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Generate Personalized Invite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Lead Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Meeting Invite": {
      "main": [
        [
          {
            "node": "Log Meeting in Zoho CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Lead Timezone": {
      "main": [
        [
          {
            "node": "Get Rep Calendar Availability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Slots Available": {
      "main": [
        [
          {
            "node": "Generate Meeting Link",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Slots Available Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Meeting Link": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Sales Rep Details": {
      "main": [
        [
          {
            "node": "Detect Lead Timezone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zoho CRM Lead Webhook": {
      "main": [
        [
          {
            "node": "New Lead Trigger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Get Sales Rep Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Personalized Invite",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "No Slots Available Message": {
      "main": [
        [
          {
            "node": "Send No Availability Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Personalized Invite": {
      "main": [
        [
          {
            "node": "Send Meeting Invite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Rep Calendar Availability": {
      "main": [
        [
          {
            "node": "Find Available Slots with Buffer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Available Slots with Buffer": {
      "main": [
        [
          {
            "node": "Check Slots Available",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}