{
  "openruna_format": "flow-graph-v1",
  "title": "Google Drive Automation",
  "slug": "google-drive-automation",
  "source_filename": "1906_Code_Extractfromfile_Automate_Triggered.json",
  "nodes": [
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Monitor Google Drive for New Files",
      "name": "Monitor Google Drive for New Files",
      "integration": "googleDrive",
      "kind": "trigger"
    },
    {
      "id": "Download File from Google Drive",
      "name": "Download File from Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Extract PDF Content",
      "name": "Extract PDF Content",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Insert Document into Pinecone Vector Store",
      "name": "Insert Document into Pinecone Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Generate Document Embeddings (Google Gemini)",
      "name": "Generate Document Embeddings (Google Gemini)",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "kind": "action"
    },
    {
      "id": "Clean and Normalize PDF Text",
      "name": "Clean and Normalize PDF Text",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Load Document Data for Processing",
      "name": "Load Document Data for Processing",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Split Document Text into Chunks",
      "name": "Split Document Text into Chunks",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Chat Message Trigger",
      "name": "Chat Message Trigger",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Retrieve Relevant Documents from Pinecone",
      "name": "Retrieve Relevant Documents from Pinecone",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Generate Query Embeddings (Google Gemini)",
      "name": "Generate Query Embeddings (Google Gemini)",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "kind": "action"
    },
    {
      "id": "Generate Chat Prompt with Context",
      "name": "Generate Chat Prompt with Context",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "OpenRouter Chat Model Interface",
      "name": "OpenRouter Chat Model Interface",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Extract PDF Content",
      "to": "Clean and Normalize PDF Text"
    },
    {
      "from": "Chat Message Trigger",
      "to": "Retrieve Relevant Documents from Pinecone"
    },
    {
      "from": "Clean and Normalize PDF Text",
      "to": "Insert Document into Pinecone Vector Store"
    },
    {
      "from": "Download File from Google Drive",
      "to": "Extract PDF Content"
    },
    {
      "from": "Generate Chat Prompt with Context",
      "to": "AI Agent"
    },
    {
      "from": "Monitor Google Drive for New Files",
      "to": "Download File from Google Drive"
    },
    {
      "from": "Retrieve Relevant Documents from Pinecone",
      "to": "Generate Chat Prompt with Context"
    }
  ]
}