{
  "openruna_format": "flow-graph-v1",
  "title": "1376_Manual_GoogleDrive_Automation_Triggered",
  "slug": "1376-manual-googledrive-automation-triggered",
  "source_filename": "1376_Manual_GoogleDrive_Automation_Triggered.json",
  "nodes": [
    {
      "id": "When clicking \"Execute Workflow\"",
      "name": "When clicking \"Execute Workflow\"",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "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": "Set file URL in Google Drive",
      "name": "Set file URL in Google Drive",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Add in metadata",
      "name": "Add in metadata",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Download file",
      "name": "Download file",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Chat Trigger",
      "name": "Chat Trigger",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Prepare chunks",
      "name": "Prepare chunks",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Embeddings OpenAI2",
      "name": "Embeddings OpenAI2",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Set max chunks to send to model",
      "name": "Set max chunks to send to model",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Structured Output Parser",
      "name": "Structured Output Parser",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "Compose citations",
      "name": "Compose citations",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Generate response",
      "name": "Generate response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Answer the query based on chunks",
      "name": "Answer the query based on chunks",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Get top chunks matching query",
      "name": "Get top chunks matching query",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Add to Pinecone vector store",
      "name": "Add to Pinecone vector store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Chat Trigger",
      "to": "Set max chunks to send to model"
    },
    {
      "from": "Download file",
      "to": "Add in metadata"
    },
    {
      "from": "Prepare chunks",
      "to": "Answer the query based on chunks"
    },
    {
      "from": "Add in metadata",
      "to": "Add to Pinecone vector store"
    },
    {
      "from": "Compose citations",
      "to": "Generate response"
    },
    {
      "from": "Set file URL in Google Drive",
      "to": "Download file"
    },
    {
      "from": "Get top chunks matching query",
      "to": "Prepare chunks"
    },
    {
      "from": "Set max chunks to send to model",
      "to": "Get top chunks matching query"
    },
    {
      "from": "Answer the query based on chunks",
      "to": "Compose citations"
    },
    {
      "from": "When clicking \"Execute Workflow\"",
      "to": "Set file URL in Google Drive"
    }
  ]
}