Skip to main content

Sync Google Drive files to an InfraNodus Knowledge Graph

Workflow preview

Workflow preview
100%
Sync Google Drive files to an InfraNodus Knowledge Graph preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This template can be used to sync the files in your Google drive to a new or existing InfraNodus knowledge graph . The InfraNodus graph will then reveal the main topics an...

Best for

  • Document Extraction automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.googledrive, n8n-nodes-base.switch, n8n-nodes-base.extractfromfile, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.googledrivetrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by InfraNodus.

Original n8n.io source

1.1 Workflow description

Title
Sync Google Drive files to an InfraNodus Knowledge Graph
Workflow name
Sync Google Drive files to an InfraNodus Knowledge Graph

This template can be used to sync the files in your Google drive to a new or existing InfraNodus knowledge graph.

The InfraNodus graph will then reveal the main topics and ideas in your collection of documents and show the content gaps in them. You can also use the built-in AI to converse with the documents.

You can also access the InfraNodus Graphs via its GraphRAG API to re-use them in your other n8n workflows for high-quality content retrieval and knowledge base optimization.

The template showcases the use of multiple n8n nodes and processes:

  • Syncing documents from a Google Drive folder / extracting them
  • text extraction from files
  • optional: high-quality PDF conversion using ConvertAPI
  • InfraNodus knowledge graph generation

Note: If you want to upload files from your Google drive to an InfraNodus graph, check out our other workflow

How it works

Here's a description of this workflow step by step:

  • Wait for new file(s) to appear in the Google drive folder
  • Reiterate through each file
  • Retrieve the new file from the Google drive
  • For each file found: reiterate the workflow and
  • Identify the type of the file (TXT, PDF, Markdown)
  • For TXT and Markdown files extract the text data
  • For PDF files use a special PDF to Text convertor to extract the text data. (Optional: using ConvertAPI for better quality PDF conversion)
  • Forward everything to the InfraNodus graphAndStatements API endpoint with the name of the new graph, the text field with the text data, the text settings, and doNotSave=false to create a new graph
  • Reiterate through another file.

How to use

You need an InfraNodus GraphRAG API account and key to use this workflow.

  • Create an InfraNodus account
  • Get the API key at https://infranodus.com/api-access and create a Bearer authorization key for the InfraNodus HTTP nodes.
  • Use that API key to set up authorization for the InfraNodus tool in the workflow.
  • If you want to upload the files to an existing graph, you should copy its name from InfraNodus. Otherwise you can specify any name you want.

Requirements

  • An InfraNodus account and API key
  • A Google Drive account and authorization (you will need to set it up via Google Cloud using the n8n instructions provided in the Google Drive node).

Customizing this workflow

You can use Dropbox instead of Google Drive.

You can also modify this workflow slightly to make it Upload the files from a Google Drive when the new files appear in it.

Check out the complete guide at https://support.noduslabs.com/hc/en-us/articles/20267019838108-Upload-Sync-Your-Google-Drive-Folder-with-InfraNodus-using-n8n

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Retrieve File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 4 - Extract from PDF

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 5 - Extract from Text File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 6 - Extract from Markdown

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 7 - InfraNodus Save to Graph

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Map PDF to Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - New File Created in the Google Folder?

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Convert File to PDF

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Sync Google Drive files to an InfraNodus Knowledge Graph
Complexity advanced
Nodes 16
Categories Document Extraction, AI RAG
Author InfraNodus
Published 29 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4495/4495.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sync Google Drive files to an InfraNodus Knowledge Graph do?

This template can be used to sync the files in your Google drive to a new or existing InfraNodus knowledge graph . The InfraNodus graph will then reveal the main topics an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI RAG use case.