Quick overview
This workflow clears two PostgreSQL tables, then scans a specific Google Drive folder for files and prepares to download each document for processing.
How it works
- Starts by deleting the
n8n_vectors table in PostgreSQL to remove existing vector data.
- Deletes the
scraped_pages table in PostgreSQL to clear previously scraped page records.
- Lists all files in a specified Google Drive folder and returns each file’s ID, name, and webViewLink.
- Downloads each listed Google Drive document using its file ID so it can be used in downstream steps.
Setup
- Add PostgreSQL credentials with permission to delete tables, and confirm the
public.n8n_vectors and public.scraped_pages tables match your environment.
- Add a Google Drive OAuth2 connection with access to the target folder and its files.
- Update the Google Drive folder URL/ID in the folder scan step to point to your source directory.