Gemini File Store
Shared 1/6/2026
15 views
Visual Workflow
JSON Code
{
"meta": {
"instanceId": "8bba31afc481e53af32b9e724656d52ebd7acc9476cecd38e6b911dab063602e",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "6f747405-c44e-4002-82de-0cbe8e988d06",
"name": "Select Document",
"type": "n8n-nodes-base.formTrigger",
"position": [
-1664,
-560
],
"webhookId": "82848bc4-5ea2-4e5a-8bb6-3c09b94a8c5d",
"parameters": {
"options": {},
"formTitle": "Upload files to the document store",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "Upload your file(s)",
"requiredField": true,
"acceptFileTypes": ".pdf, .csv"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "3bc8ff9d-f9a7-4856-abef-34b642627b13",
"name": "Upload Document",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1472,
-560
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/upload/v1beta/files",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "binaryData",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"inputDataFieldName": "Upload_your_file_s_"
},
"credentials": {
"httpQueryAuth": {
"id": "qDv1Izj8QB4vWSgt",
"name": "Gemini API KEY"
}
},
"typeVersion": 4.2
},
{
"id": "9ee704fd-350d-491d-a394-4c0e1d05e5c0",
"name": "Move To File Store",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1264,
-560
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/fileSearchStores/whatsappcompanytest-nwsmz8rackjb:importFile",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "file_name",
"value": "={{ $json.file.name }}"
}
]
},
"genericAuthType": "httpQueryAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "=application/json"
}
]
}
},
"credentials": {
"httpQueryAuth": {
"id": "qDv1Izj8QB4vWSgt",
"name": "Gemini API KEY"
}
},
"typeVersion": 4.2
},
{
"id": "3bd3feb2-da38-4874-848a-46c6cee165af",
"name": "Create New File Store",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1888,
-560
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/fileSearchStores",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "displayName",
"value": "whatsapp-company-test"
}
]
},
"genericAuthType": "httpQueryAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpQueryAuth": {
"id": "qDv1Izj8QB4vWSgt",
"name": "Gemini API KEY"
}
},
"typeVersion": 4.2
}
],
"pinData": {
"Create New File Store": [
{
"name": "fileSearchStores/whatsappcompanytest-nwsmz8rackjb",
"createTime": "2025-12-05T14:06:01.777761Z",
"updateTime": "2025-12-05T14:06:01.777761Z",
"displayName": "whatsapp-company-test"
}
]
},
"connections": {
"Select Document": {
"main": [
[
{
"node": "Upload Document",
"type": "main",
"index": 0
}
]
]
},
"Upload Document": {
"main": [
[
{
"node": "Move To File Store",
"type": "main",
"index": 0
}
]
]
}
}
}