{
  "openruna_format": "flow-graph-v1",
  "title": "0681_Aggregate_HTTP_Create_Webhook",
  "slug": "0681-aggregate-http-create-webhook",
  "source_filename": "0681_Aggregate_HTTP_Create_Webhook.json",
  "nodes": [
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Response",
      "name": "Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Switch",
      "name": "Switch",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Aggregate1",
      "name": "Aggregate1",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Aggregate2",
      "name": "Aggregate2",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "If1",
      "name": "If1",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Response1",
      "name": "Response1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Search records",
      "name": "Search records",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Process data with code",
      "name": "Process data with code",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Create map image",
      "name": "Create map image",
      "integration": "@n8n/n8n-nodes-langchain.toolCode",
      "kind": "action"
    },
    {
      "id": "Get list of bases",
      "name": "Get list of bases",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Get base schema",
      "name": "Get base schema",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "Get Bases",
      "name": "Get Bases",
      "integration": "airtable",
      "kind": "action"
    },
    {
      "id": "Get Base/Tables schema",
      "name": "Get Base/Tables schema",
      "integration": "airtable",
      "kind": "action"
    },
    {
      "id": "If filter description exists",
      "name": "If filter description exists",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Airtable - Search records",
      "name": "Airtable - Search records",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Generate search filter",
      "name": "OpenAI - Generate search filter",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set schema and prompt",
      "name": "Set schema and prompt",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Upload file to get link",
      "name": "Upload file to get link",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Download File",
      "name": "OpenAI - Download File",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Get messages",
      "name": "OpenAI - Get messages",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Run assistant",
      "name": "OpenAI - Run assistant",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Send message",
      "name": "OpenAI - Send message",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "OpenAI - Create thread",
      "name": "OpenAI - Create thread",
      "integration": "httpRequest",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If1",
      "to": "Response"
    },
    {
      "from": "If1",
      "to": "OpenAI - Download File"
    },
    {
      "from": "Merge",
      "to": "Airtable - Search records"
    },
    {
      "from": "Switch",
      "to": "Get Bases"
    },
    {
      "from": "Switch",
      "to": "Get Base/Tables schema"
    },
    {
      "from": "Switch",
      "to": "If filter description exists"
    },
    {
      "from": "Switch",
      "to": "OpenAI - Create thread"
    },
    {
      "from": "Aggregate",
      "to": "Response"
    },
    {
      "from": "Get Bases",
      "to": "Aggregate"
    },
    {
      "from": "Aggregate1",
      "to": "Response"
    },
    {
      "from": "Aggregate2",
      "to": "Response"
    },
    {
      "from": "OpenAI - Get messages",
      "to": "If1"
    },
    {
      "from": "OpenAI - Send message",
      "to": "OpenAI - Run assistant"
    },
    {
      "from": "Set schema and prompt",
      "to": "OpenAI - Generate search filter"
    },
    {
      "from": "Get Base/Tables schema",
      "to": "Aggregate1"
    },
    {
      "from": "OpenAI - Create thread",
      "to": "OpenAI - Send message"
    },
    {
      "from": "OpenAI - Download File",
      "to": "Upload file to get link"
    },
    {
      "from": "OpenAI - Run assistant",
      "to": "OpenAI - Get messages"
    },
    {
      "from": "Upload file to get link",
      "to": "Response1"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "Switch"
    },
    {
      "from": "Airtable - Search records",
      "to": "Aggregate2"
    },
    {
      "from": "Airtable - Search records",
      "to": "Response"
    },
    {
      "from": "When chat message received",
      "to": "AI Agent"
    },
    {
      "from": "If filter description exists",
      "to": "Merge"
    },
    {
      "from": "If filter description exists",
      "to": "Set schema and prompt"
    },
    {
      "from": "OpenAI - Generate search filter",
      "to": "Merge"
    }
  ]
}