{
  "openruna_format": "flow-graph-v1",
  "title": "Complete Youtube",
  "slug": "complete-youtube-2",
  "source_filename": "1758_Code_HTTP_Automation_Webhook.json",
  "nodes": [
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "chat_message_received",
      "name": "chat_message_received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "youtube_search",
      "name": "youtube_search",
      "integration": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "kind": "action"
    },
    {
      "id": "openai_llm",
      "name": "openai_llm",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "window_buffer_memory",
      "name": "window_buffer_memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "find_video_data1",
      "name": "find_video_data1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "get_videos1",
      "name": "get_videos1",
      "integration": "youTube",
      "kind": "action"
    },
    {
      "id": "response1",
      "name": "response1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "group_data1",
      "name": "group_data1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "save_data_to_memory1",
      "name": "save_data_to_memory1",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "retrieve_data_from_memory1",
      "name": "retrieve_data_from_memory1",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "loop_over_items1",
      "name": "loop_over_items1",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "if_longer_than_3_",
      "name": "if_longer_than_3_",
      "integration": "if",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "get_videos1",
      "to": "loop_over_items1"
    },
    {
      "from": "group_data1",
      "to": "save_data_to_memory1"
    },
    {
      "from": "find_video_data1",
      "to": "if_longer_than_3_"
    },
    {
      "from": "loop_over_items1",
      "to": "retrieve_data_from_memory1"
    },
    {
      "from": "loop_over_items1",
      "to": "find_video_data1"
    },
    {
      "from": "if_longer_than_3_",
      "to": "group_data1"
    },
    {
      "from": "if_longer_than_3_",
      "to": "loop_over_items1"
    },
    {
      "from": "save_data_to_memory1",
      "to": "loop_over_items1"
    },
    {
      "from": "chat_message_received",
      "to": "AI Agent"
    },
    {
      "from": "retrieve_data_from_memory1",
      "to": "response1"
    }
  ]
}