{
  "openruna_format": "flow-graph-v1",
  "title": "1678_Splitout_Code_Automation_Webhook",
  "slug": "1678-splitout-code-automation-webhook",
  "source_filename": "1678_Splitout_Code_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Embeddings OpenAI",
      "name": "Embeddings OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Default Data Loader",
      "name": "Default Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Convert to Question Answer Pairs",
      "name": "Convert to Question Answer Pairs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Get Survey Results",
      "name": "Get Survey Results",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Get Survey Headers",
      "name": "Get Survey Headers",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Extract Questions",
      "name": "Extract Questions",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Questions to List",
      "name": "Questions to List",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Find All Answers",
      "name": "Find All Answers",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get Payload of Points",
      "name": "Get Payload of Points",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Clusters To List",
      "name": "Clusters To List",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Set Variables",
      "name": "Set Variables",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Prep Output For Export",
      "name": "Prep Output For Export",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Export To Sheets",
      "name": "Export To Sheets",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Export To Sheets1",
      "name": "Export To Sheets1",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "For Each Question...",
      "name": "For Each Question...",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Trigger Insights",
      "name": "Trigger Insights",
      "integration": "executeWorkflow",
      "kind": "action"
    },
    {
      "id": "Prep Values For Trigger",
      "name": "Prep Values For Trigger",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Create Insights Sheet",
      "name": "Create Insights Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Prep Values For Export",
      "name": "Prep Values For Export",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "QA Pairs to List",
      "name": "QA Pairs to List",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Has Clusters?",
      "name": "Has Clusters?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Get Sheet Details",
      "name": "Get Sheet Details",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Only Clusters With 3+ points",
      "name": "Only Clusters With 3+ points",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Apply K-means Clustering Algorithm",
      "name": "Apply K-means Clustering Algorithm",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Qdrant Vector Store",
      "name": "Qdrant Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "kind": "action"
    },
    {
      "id": "Survey Insights Agent",
      "name": "Survey Insights Agent",
      "integration": "@n8n/n8n-nodes-langchain.informationExtractor",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Has Clusters?",
      "to": "Clusters To List"
    },
    {
      "from": "Has Clusters?",
      "to": "Prep Values For Export"
    },
    {
      "from": "Set Variables",
      "to": "Create Insights Sheet"
    },
    {
      "from": "Clusters To List",
      "to": "Only Clusters With 3+ points"
    },
    {
      "from": "Export To Sheets",
      "to": "For Each Question..."
    },
    {
      "from": "Find All Answers",
      "to": "Apply K-means Clustering Algorithm"
    },
    {
      "from": "QA Pairs to List",
      "to": "Qdrant Vector Store"
    },
    {
      "from": "Export To Sheets1",
      "to": "For Each Question..."
    },
    {
      "from": "Extract Questions",
      "to": "Questions to List"
    },
    {
      "from": "Get Sheet Details",
      "to": "Set Variables"
    },
    {
      "from": "Questions to List",
      "to": "For Each Question..."
    },
    {
      "from": "Get Survey Headers",
      "to": "Extract Questions"
    },
    {
      "from": "Get Survey Results",
      "to": "Convert to Question Answer Pairs"
    },
    {
      "from": "Qdrant Vector Store",
      "to": "Prep Values For Trigger"
    },
    {
      "from": "For Each Question...",
      "to": "Find All Answers"
    },
    {
      "from": "Create Insights Sheet",
      "to": "Get Survey Headers"
    },
    {
      "from": "Get Payload of Points",
      "to": "Survey Insights Agent"
    },
    {
      "from": "Survey Insights Agent",
      "to": "Prep Output For Export"
    },
    {
      "from": "Prep Output For Export",
      "to": "Export To Sheets"
    },
    {
      "from": "Prep Values For Export",
      "to": "Export To Sheets1"
    },
    {
      "from": "Prep Values For Trigger",
      "to": "Trigger Insights"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "Get Sheet Details"
    },
    {
      "from": "Only Clusters With 3+ points",
      "to": "Get Payload of Points"
    },
    {
      "from": "Convert to Question Answer Pairs",
      "to": "QA Pairs to List"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Get Survey Results"
    },
    {
      "from": "Apply K-means Clustering Algorithm",
      "to": "Has Clusters?"
    }
  ]
}