{
  "name": "Schedule and manage appointments with Groq, Google Calendar, Gmail and Sheets",
  "nodes": [
    {
      "id": "9d77144c-2211-4c53-a494-eb208a5dc7a5",
      "name": "⭐ Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        -400
      ],
      "parameters": {
        "width": 548,
        "height": 496,
        "content": "# 🗓️ BytezTech Appointment Bot\n\n## How it works\nTwo parallel flows run independently:\n1. **AI Chat Flow** — clients message the bot to book, reschedule, or cancel meetings. The agent checks Google Cal"
      }
    },
    {
      "id": "116e4a5c-1a69-47a5-a0ce-467aa7ef2f15",
      "name": "Group: AI Chat Flow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -592
      ],
      "parameters": {
        "width": 1364,
        "height": 564,
        "content": "## 🤖 AI Chat Agent Flow\nClient sends a chat message → AI Agent (Groq LLaMA 4) processes the request using session memory and 5 Calendar/Gmail tools. Handles booking, rescheduling, and cancellation end"
      }
    },
    {
      "id": "2ac902ea-b3c6-4428-ba1c-0f589b632fa6",
      "name": "Group: Daily Sheet Sync",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        16
      ],
      "parameters": {
        "width": 1424,
        "height": 452,
        "content": "## 📊 Daily Sheet Sync Flow\nScheduled at 9:30 AM IST daily. Clears yesterday's sheet rows, fetches today's Google Calendar events, formats each event, inserts into Sheets, then emails the admin a count"
      }
    },
    {
      "id": "671a89a2-7816-4caf-90fd-8ca3bf9e6132",
      "name": "Clint Chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -560,
        -480
      ]
    },
    {
      "id": "ab93e552-3075-4ef5-b030-788853fa2e1b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -32,
        -480
      ]
    },
    {
      "id": "d004c824-595f-495a-9ad1-f9b5fe13dd3f",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        -336,
        -256
      ]
    },
    {
      "id": "1e5fb7f5-529a-4219-8b78-53616257e1a4",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -208,
        -256
      ]
    },
    {
      "id": "b454d3ac-f03a-49ef-98d2-ca33b88c7589",
      "name": "Create an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -80,
        -256
      ]
    },
    {
      "id": "090d0624-6a27-45b9-ba1c-8164344b2f28",
      "name": "Get many events in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        64,
        -256
      ]
    },
    {
      "id": "b2845da6-618e-460a-90f5-f6c7c15cd963",
      "name": "Delete an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        192,
        -256
      ]
    },
    {
      "id": "ff6461d7-7810-46f9-bf47-8e5090f9570a",
      "name": "Update an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        320,
        -256
      ]
    },
    {
      "id": "7700f47c-0f58-496d-ac72-a49382bad973",
      "name": "Send a message in Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        448,
        -256
      ]
    },
    {
      "id": "aaa95646-57bb-4c1c-a098-fa10f8263567",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -560,
        208
      ]
    },
    {
      "id": "3e53c7f4-cddd-4c37-bf61-42abdd5d389a",
      "name": "Clear Old Appointments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -336,
        208
      ]
    },
    {
      "id": "0474dd9e-37e8-483e-bd85-120b0be43e0e",
      "name": "Get Today Events",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -112,
        208
      ]
    },
    {
      "id": "a88400b8-9743-4721-94a8-285959e85835",
      "name": "IF Has Events",
      "type": "n8n-nodes-base.if",
      "position": [
        128,
        112
      ]
    },
    {
      "id": "05b3b967-ef65-4a44-a045-7c96abbd5cbf",
      "name": "Format Event Data",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        96
      ]
    },
    {
      "id": "3cb4eaa7-de26-40e1-8f6a-76a10cdb6ab9",
      "name": "Insert Events Details",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        576,
        96
      ]
    },
    {
      "id": "33593fe3-96db-4e6b-a0a5-cc6cd282cb66",
      "name": "Build Daily Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        128,
        304
      ]
    },
    {
      "id": "2781fb58-0761-4af7-a944-287939aafaee",
      "name": "Send Email to Admin",
      "type": "n8n-nodes-base.gmail",
      "position": [
        352,
        304
      ]
    }
  ],
  "connections": {
    "Clint Chat": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF Has Events": {
      "main": [
        [
          {
            "node": "Format Event Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Today Events": {
      "main": [
        [
          {
            "node": "IF Has Events",
            "type": "main",
            "index": 0
          },
          {
            "node": "Build Daily Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Clear Old Appointments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Event Data": {
      "main": [
        [
          {
            "node": "Insert Events Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Daily Summary": {
      "main": [
        [
          {
            "node": "Send Email to Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clear Old Appointments": {
      "main": [
        [
          {
            "node": "Get Today Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message in Gmail": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many events in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}