{
  "openruna_format": "flow-graph-v1",
  "title": "Chat with Google Sheet",
  "slug": "chat-with-google-sheet",
  "source_filename": "1378_Code_Filter_Automation_Triggered.json",
  "nodes": [
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Get Google sheet contents",
      "name": "Get Google sheet contents",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Set Google Sheet URL",
      "name": "Set Google Sheet URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get column names",
      "name": "Get column names",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Prepare output",
      "name": "Prepare output",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "List columns tool",
      "name": "List columns tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Get customer tool",
      "name": "Get customer tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Get column values tool",
      "name": "Get column values tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Prepare column data",
      "name": "Prepare column data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Filter",
      "name": "Filter",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Check operation",
      "name": "Check operation",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Chat Trigger",
      "name": "Chat Trigger",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Filter",
      "to": "Prepare output"
    },
    {
      "from": "Chat Trigger",
      "to": "AI Agent"
    },
    {
      "from": "Check operation",
      "to": "Get column names"
    },
    {
      "from": "Check operation",
      "to": "Prepare column data"
    },
    {
      "from": "Check operation",
      "to": "Filter"
    },
    {
      "from": "Get column names",
      "to": "Prepare output"
    },
    {
      "from": "Prepare column data",
      "to": "Prepare output"
    },
    {
      "from": "Set Google Sheet URL",
      "to": "Get Google sheet contents"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "Set Google Sheet URL"
    },
    {
      "from": "Get Google sheet contents",
      "to": "Check operation"
    }
  ]
}