{
  "openruna_format": "flow-graph-v1",
  "title": "(G) LineChatBot + Google Sheets (as a memory)",
  "slug": "g-linechatbot-google-sheets-as-a-memory",
  "source_filename": "1789_Code_Webhook_Automate_Webhook.json",
  "nodes": [
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Google Gemini Chat Model",
      "name": "Google Gemini Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "Edit Fields",
      "name": "Edit Fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "HTTP Request",
      "name": "HTTP Request",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get History",
      "name": "Get History",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Prepare Prompt",
      "name": "Prepare Prompt",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Save History",
      "name": "Save History",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Split History",
      "name": "Split History",
      "integration": "code",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Webhook",
      "to": "Edit Fields"
    },
    {
      "from": "AI Agent",
      "to": "Split History"
    },
    {
      "from": "Edit Fields",
      "to": "Get History"
    },
    {
      "from": "Get History",
      "to": "Prepare Prompt"
    },
    {
      "from": "Save History",
      "to": "HTTP Request"
    },
    {
      "from": "Split History",
      "to": "Save History"
    },
    {
      "from": "Prepare Prompt",
      "to": "AI Agent"
    }
  ]
}