Upload Google Drive Files to an InfraNodus Graph
Categories
Created by
Last edited 10 days ago
This template can be used to upload the files in your Google drive to an 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:
- Extracting documents from a Google Drive folder
- text extraction
- optional: high-quality PDF conversion using ConvertAPI
- InfraNodus knowledge graph generation
Note: If you want to Sync 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:
- Find all the files in a specific Google drive folder
- 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 thename
of the new graph, thetext
field with the text data, the text settings, anddoNotSave=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 Sync with 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
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!