{
  "name": "Google Sheet DEMO",
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        120,
        0
      ],
      "id": "3f19a141-8632-4ac7-b92a-309690b8f054",
      "name": "When chat message received",
      "webhookId": "7192b57d-2812-40b8-aea0-9d0b3e7c861f"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You are a helpful and efficient AI assistant.\nYou have access to Google Sheet and can search contact details when instructed.\nWhenever the user asks a question that may require information from their Google SHeet, use the search function to find the most relevant content and respond accordingly."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [
        320,
        0
      ],
      "id": "248767a9-b113-4a13-aa4c-ba092d2fc915",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        320,
        220
      ],
      "id": "41a161ec-b878-4e71-89cf-1b0941f66453",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "MzIepidaRw9ZqcPB",
          "name": "OpenAi account Credentials"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1xdAtUAGCcSbkQl2GLY-7OxU8EGAFNo26JKdaxAYxLH0",
          "mode": "list",
          "cachedResultName": "CRM Data",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1xdAtUAGCcSbkQl2GLY-7OxU8EGAFNo26JKdaxAYxLH0/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Contacts",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1xdAtUAGCcSbkQl2GLY-7OxU8EGAFNo26JKdaxAYxLH0/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.6,
      "position": [
        480,
        220
      ],
      "id": "a6baa59a-4587-42a7-ad65-c10a6a805796",
      "name": "Google Sheets",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ESD8JJHqd8A9NlNx",
          "name": "Google Sheets account (Kris)"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5c3b9d38-706f-4136-9412-35c09973722f",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4aabc0aa2e160dafa4f9d9bcedde563b5af29598cd16960f637ae2fb99aea720"
  },
  "id": "gQ0HPwrH2O9V6beA",
  "tags": []
}