{
  "openruna_format": "flow-graph-v1",
  "title": "Multi-Agent Conversation",
  "slug": "multi-agent-conversation",
  "source_filename": "1926_Stickynote_Splitinbatches_Automation_Triggered.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Extract mentions",
      "name": "Extract mentions",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Simple Memory",
      "name": "Simple Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Set last Assistant message as input",
      "name": "Set last Assistant message as input",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Set user message as input",
      "name": "Set user message as input",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "First loop?",
      "name": "First loop?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Set lastAssistantMessage",
      "name": "Set lastAssistantMessage",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Combine and format responses",
      "name": "Combine and format responses",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Define Global Settings",
      "name": "Define Global Settings",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Define Agent Settings",
      "name": "Define Agent Settings",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "OpenRouter Chat Model",
      "name": "OpenRouter Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "AI Agent",
      "to": "Set lastAssistantMessage"
    },
    {
      "from": "First loop?",
      "to": "Set user message as input"
    },
    {
      "from": "First loop?",
      "to": "Set last Assistant message as input"
    },
    {
      "from": "Loop Over Items",
      "to": "Combine and format responses"
    },
    {
      "from": "Loop Over Items",
      "to": "First loop?"
    },
    {
      "from": "Extract mentions",
      "to": "Loop Over Items"
    },
    {
      "from": "Define Agent Settings",
      "to": "Extract mentions"
    },
    {
      "from": "Define Global Settings",
      "to": "Define Agent Settings"
    },
    {
      "from": "Set lastAssistantMessage",
      "to": "Loop Over Items"
    },
    {
      "from": "Set user message as input",
      "to": "AI Agent"
    },
    {
      "from": "When chat message received",
      "to": "Define Global Settings"
    },
    {
      "from": "Set last Assistant message as input",
      "to": "AI Agent"
    }
  ]
}