Sync OpenAI vector stores from Google Sheets with Drive and AWS S3
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every 2 minutes). Along the way it connects Google Sheets, Google Drive, OpenAI and AWS S3. It also calls api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every 2 minutes).
- Get Row(s) From Sheet (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Delete File From Vector Store (HTTP Request): calls an HTTP API (DELETE)
- Filter: keeps only the items that match a condition
- Mark Row as Deleted (Google Sheets): update
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Route by File Source (Switch): routes items into 3 branches
- Download from Google Drive (Google Drive): download
- Download from S (AWS S3): uses AWS S3
- Download via HTTP (HTTP Request): calls an HTTP API
…plus 7 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - No Operation, do nothing
n8n-nodes-base.noOp - Switch
n8n-nodes-base.switch - Google Drive
n8n-nodes-base.googleDrive - OpenAI
@n8n/n8n-nodes-langchain.openAi - AWS S3
n8n-nodes-base.awsS3 - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow runs every two minutes to sync a Google Sheets file queue with an OpenAI Vector Store by deleting outdated entries, downloading new files from Google Drive, AWS S3, or a URL, uploading them to OpenAI, and updating each row’s…