-
-
Save alnutile/39d07a3765b5f13dab790f5ebb5f405e to your computer and use it in GitHub Desktop.
Supabase Storage and N8N How To https://youtu.be/Kx0Mx-zDSbA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "type": "n8n-nodes-base.manualTrigger", | |
| "typeVersion": 1, | |
| "position": [ | |
| -352, | |
| -208 | |
| ], | |
| "id": "d3e9d274-0f6a-46e7-b83f-f05cfd6191a5", | |
| "name": "When clicking ‘Execute workflow’" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "https://api.unsplash.com/photos/random?client_id=hPV1d2bIF13kYnrtzaV47BFq4ILDMohtcfMlEi0v_xQ", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -112, | |
| -208 | |
| ], | |
| "id": "fa945b1d-123e-40b1-ac28-d9fdf4231fb1", | |
| "name": "RandomAsset" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🎉 GET ASSET TO UPLOAD \n" | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| -224 | |
| ], | |
| "typeVersion": 1, | |
| "id": "f5a583c3-d442-4b03-80f9-3165225c1b2d", | |
| "name": "Sticky Note" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🔐 UPLOAD Node \nPrivate Node", | |
| "color": 4 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 80 | |
| ], | |
| "typeVersion": 1, | |
| "id": "c265c92d-4a12-42fd-bf86-0ce205e45262", | |
| "name": "Sticky Note1" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🔓 UPLOAD Node\nPublic Node", | |
| "color": 3 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 352 | |
| ], | |
| "typeVersion": 1, | |
| "id": "b3d903c4-cf69-438a-bf3d-01a2153bdd7f", | |
| "name": "Sticky Note2" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "📁 Get File\n", | |
| "color": 6 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 608 | |
| ], | |
| "typeVersion": 1, | |
| "id": "9a00af57-66d9-44f2-b819-c5bb6226b390", | |
| "name": "Sticky Note3" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🤝🏻 Share Non-Public\nNOTE the URL \"sign\"", | |
| "color": 7 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 832 | |
| ], | |
| "typeVersion": 1, | |
| "id": "c8fe7232-a6af-46f6-9af1-58931ae230a1", | |
| "name": "Sticky Note4" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🚀 Share Public", | |
| "color": 2 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 1040 | |
| ], | |
| "typeVersion": 1, | |
| "id": "398a93ce-77e7-4c44-a0e9-584726cba142", | |
| "name": "Sticky Note5" | |
| }, | |
| { | |
| "parameters": { | |
| "content": "💫 Get Multiple files from Supabase", | |
| "color": 3 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 1584 | |
| ], | |
| "typeVersion": 1, | |
| "id": "fb9eaacd-4952-4135-bb16-f49a46618c8c", | |
| "name": "Sticky Note6" | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/public/{{ $binary.data.fileName }}.{{ $binary.data.fileExtension }}", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "sendBody": true, | |
| "contentType": "binaryData", | |
| "inputDataFieldName": "data", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -336, | |
| 400 | |
| ], | |
| "id": "eba3bd8b-c22e-41ac-8b19-3ad61da26dc7", | |
| "name": "UploadToPublic", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| }, | |
| "onError": "continueErrorOutput" | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/nonpublic/{{ $binary.data.fileName }}", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "sendBody": true, | |
| "contentType": "binaryData", | |
| "inputDataFieldName": "data", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -336, | |
| 112 | |
| ], | |
| "id": "e4785686-43fc-4627-a0ff-b636c2d33e36", | |
| "name": "UploadToPrivate", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| }, | |
| "onError": "continueErrorOutput" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "={{ $json.urls.small }}", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 96, | |
| -208 | |
| ], | |
| "id": "b1a48d56-04a2-4dbe-a8bc-f095984b4d45", | |
| "name": "HTTP Request" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/nonpublic/Community_Wellness_Initiative_2025_RFP.pdf", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -336, | |
| 640 | |
| ], | |
| "id": "4da4147d-8ea1-4dfe-9d71-d359761115ea", | |
| "name": "GetFile", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| }, | |
| "onError": "continueErrorOutput" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "84c24c44-ab22-4cfd-9c86-7d817a85c554", | |
| "name": "signed_url", | |
| "value": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1{{ $json.signedURL }}", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -128, | |
| 864 | |
| ], | |
| "id": "b0d99b2b-442e-4aac-a230-6c3b59470b1e", | |
| "name": "Edit Fields" | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/sign/nonpublic/Community_Wellness_Initiative_2025_RFP.pdf", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "sendBody": true, | |
| "specifyBody": "json", | |
| "jsonBody": "{\n \"expiresIn\": 604800\n}", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -336, | |
| 864 | |
| ], | |
| "id": "2fa8ac7e-e52b-4062-8ea2-ada8063070f7", | |
| "name": "CreateSignedUrl", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/list/nonpublic", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "sendBody": true, | |
| "specifyBody": "json", | |
| "jsonBody": "={\n \"prefix\": \"\",\n \"limit\": 100,\n \"offset\": 0,\n \"sortBy\": {\n \"column\": \"name\",\n \"order\": \"asc\"\n }\n} ", | |
| "options": {} | |
| }, | |
| "id": "c559939c-a955-469d-ad8c-9abfdab4c7fe", | |
| "name": "HTTP Request1", | |
| "type": "n8n-nodes-base.httpRequest", | |
| "position": [ | |
| -336, | |
| 1616 | |
| ], | |
| "typeVersion": 4.2, | |
| "alwaysOutputData": true, | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.splitInBatches", | |
| "typeVersion": 3, | |
| "position": [ | |
| -96, | |
| 1776 | |
| ], | |
| "id": "553cb334-5071-4e1d-890e-b7b1c34be820", | |
| "name": "Loop Over Items" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/nonpublic/{{ $json.name }}", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -96, | |
| 1616 | |
| ], | |
| "id": "f41a5db4-2f00-4667-a261-3fe6915d80dd", | |
| "name": "HTTP Request2", | |
| "credentials": { | |
| "httpHeaderAuth": { | |
| "id": "HJxFfWxGe15F05Ff", | |
| "name": "Unsplash" | |
| }, | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "content": "✨ Demo Use Ai\n\nBinary or URL (Signed)\n\n" | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -640, | |
| 2016 | |
| ], | |
| "typeVersion": 1, | |
| "id": "1718cafc-81ad-49bc-b7d8-fdb7202ac441", | |
| "name": "Sticky Note7" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/public/public-bucket/banner-2025.png", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -336, | |
| 1072 | |
| ], | |
| "id": "71b8f5dd-08fc-467e-8412-eb42d73054fd", | |
| "name": "GetPublicIsEasy", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/nonpublic/note_2.jpg", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -352, | |
| 2016 | |
| ], | |
| "id": "176fcd78-8370-4ca1-ae8f-12dbfe1ee77e", | |
| "name": "GetPublicIsEasy1", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "image", | |
| "operation": "analyze", | |
| "modelId": { | |
| "__rl": true, | |
| "value": "chatgpt-4o-latest", | |
| "mode": "list", | |
| "cachedResultName": "CHATGPT-4O-LATEST" | |
| }, | |
| "inputType": "base64", | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| -176, | |
| 2016 | |
| ], | |
| "id": "7a13c851-e996-4cd1-b108-71de48fa35f3", | |
| "name": "Analyze image", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "tKDllHwZ5LC3AbM4", | |
| "name": "OpenAi account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "84c24c44-ab22-4cfd-9c86-7d817a85c554", | |
| "name": "signed_url", | |
| "value": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1{{ $json.signedURL }}", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -176, | |
| 2272 | |
| ], | |
| "id": "80253f99-d9f9-4033-bd77-bdd7ff95978e", | |
| "name": "Edit Fields1" | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "=https://qffscbjesrqizluwzbrq.supabase.co/storage/v1/object/sign/nonpublic/note_2.jpg", | |
| "authentication": "predefinedCredentialType", | |
| "nodeCredentialType": "supabaseApi", | |
| "sendBody": true, | |
| "specifyBody": "json", | |
| "jsonBody": "{\n \"expiresIn\": 604800\n}", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| -352, | |
| 2272 | |
| ], | |
| "id": "60134b65-53e8-4a42-ba2e-c564273bd285", | |
| "name": "CreateSignedUrl1", | |
| "credentials": { | |
| "supabaseApi": { | |
| "id": "pniVbLKNPVCiq60E", | |
| "name": "DailyAiSupabase" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "image", | |
| "operation": "analyze", | |
| "modelId": { | |
| "__rl": true, | |
| "value": "chatgpt-4o-latest", | |
| "mode": "list", | |
| "cachedResultName": "CHATGPT-4O-LATEST" | |
| }, | |
| "imageUrls": "={{ $json.signed_url }}", | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| 32, | |
| 2272 | |
| ], | |
| "id": "5916688c-f4a4-4f4a-8d25-606115d976d9", | |
| "name": "Analyze image1", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "tKDllHwZ5LC3AbM4", | |
| "name": "OpenAi account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "content": "🗑️ Delete", | |
| "color": 2 | |
| }, | |
| "type": "n8n-nodes-base.stickyNote", | |
| "position": [ | |
| -656, | |
| 1312 | |
| ], | |
| "typeVersion": 1, | |
| "id": "c57f439f-a885-4b24-8f6a-863dc07aa3fe", | |
| "name": "Sticky Note8" | |
| } | |
| ], | |
| "connections": { | |
| "When clicking ‘Execute workflow’": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "RandomAsset", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "RandomAsset": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "HTTP Request", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "HTTP Request": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "CreateSignedUrl", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "CreateSignedUrl": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Edit Fields", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "HTTP Request1": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "HTTP Request2", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Loop Over Items": { | |
| "main": [ | |
| [], | |
| [] | |
| ] | |
| }, | |
| "GetPublicIsEasy1": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Analyze image", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Edit Fields1": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Analyze image1", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "CreateSignedUrl1": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Edit Fields1", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "pinData": {}, | |
| "meta": { | |
| "templateCredsSetupCompleted": true, | |
| "instanceId": "9cda1041b042b5eaf770a19882c585271b3aae30fe3a8d729d0903b97b8e7cc0" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment