{
  "openruna_format": "flow-graph-v1",
  "title": "0401_Code_Filter_Send_Triggered",
  "slug": "0401-code-filter-send-triggered",
  "source_filename": "0401_Code_Filter_Send_Triggered.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "OpenAI Chat Model1",
      "name": "OpenAI Chat Model1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Simple Memory",
      "name": "Simple Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "When Executed by Another Workflow",
      "name": "When Executed by Another Workflow",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "List columns tool",
      "name": "List columns 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": "Get customer tool",
      "name": "Get customer tool",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Set Google Sheet URL",
      "name": "Set Google Sheet URL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Google sheet contents",
      "name": "Get Google sheet contents",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Check operation",
      "name": "Check operation",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get column names",
      "name": "Get column names",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Prepare column data",
      "name": "Prepare column data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Filter",
      "name": "Filter",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Prepare output",
      "name": "Prepare output",
      "integration": "code",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Filter",
      "to": "Prepare output"
    },
    {
      "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": "Get Google sheet contents",
      "to": "Check operation"
    },
    {
      "from": "When chat message received",
      "to": "AI Agent"
    },
    {
      "from": "When Executed by Another Workflow",
      "to": "Set Google Sheet URL"
    }
  ]
}