{
  "openruna_format": "flow-graph-v1",
  "title": "Easily Compare LLMs Using OpenAI and Google Sheets",
  "slug": "easily-compare-llms-using-openai-and-google-sheets",
  "source_filename": "1790_Splitout_Summarize_Automation_Triggered.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Simple Memory",
      "name": "Simple Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Chat Memory Manager",
      "name": "Chat Memory Manager",
      "integration": "@n8n/n8n-nodes-langchain.memoryManager",
      "kind": "action"
    },
    {
      "id": "OpenRouter Chat Model",
      "name": "OpenRouter Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "kind": "action"
    },
    {
      "id": "Set model, sessionId, chatInput, sessionIdBase",
      "name": "Set model, sessionId, chatInput, sessionIdBase",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Concatenate Chat Answers",
      "name": "Concatenate Chat Answers",
      "integration": "summarize",
      "kind": "action"
    },
    {
      "id": "Group Model Outputs for Evaluation",
      "name": "Group Model Outputs for Evaluation",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Add Model Results to Google Sheet",
      "name": "Add Model Results to Google Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Prepare Data for Chat and Google Sheets",
      "name": "Prepare Data for Chat and Google Sheets",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Define Models to Compare",
      "name": "Define Models to Compare",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Split Models into Items",
      "name": "Split Models into Items",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Set Output for Chat UI",
      "name": "Set Output for Chat UI",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "AI Agent",
      "to": "Chat Memory Manager"
    },
    {
      "from": "Loop Over Items",
      "to": "Concatenate Chat Answers"
    },
    {
      "from": "Loop Over Items",
      "to": "Group Model Outputs for Evaluation"
    },
    {
      "from": "Loop Over Items",
      "to": "AI Agent"
    },
    {
      "from": "Chat Memory Manager",
      "to": "Prepare Data for Chat and Google Sheets"
    },
    {
      "from": "Split Models into Items",
      "to": "Set model, sessionId, chatInput, sessionIdBase"
    },
    {
      "from": "Concatenate Chat Answers",
      "to": "Set Output for Chat UI"
    },
    {
      "from": "Define Models to Compare",
      "to": "Split Models into Items"
    },
    {
      "from": "When chat message received",
      "to": "Define Models to Compare"
    },
    {
      "from": "Group Model Outputs for Evaluation",
      "to": "Add Model Results to Google Sheet"
    },
    {
      "from": "Prepare Data for Chat and Google Sheets",
      "to": "Loop Over Items"
    },
    {
      "from": "Set model, sessionId, chatInput, sessionIdBase",
      "to": "Loop Over Items"
    }
  ]
}