The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "4lXQVvpcLF0mnwGj",
"name": "Gemini File Search - Create Store (Webhook)",
"description": "Creates a new Gemini File Search Store (corpus). Webhook endpoint: POST /kb-create-store with apiKey and displayName in body.",
"active": true,
"isArchived": false,
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "kb-create-store",
"responseMode": "lastNode",
"options": {
"responseData": "firstEntryJson"
}
},
"id": "Webhook",
"name": "Webhook /kb-create-store",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
280,
300
]
},
{
"parameters": {
"mode": "runOnceForAllItems",
"jsCode": "const { apiKey, displayName } = $json;\nif (!apiKey) return [{ json: { status: 'ERROR', error: 'apiKey required' } }];\nif (!displayName) return [{ json: { status: 'ERROR', error: 'displayName required' } }];\nreturn [{ json: { apiKey, displayName } }];"
},
"id": "Validate",
"name": "Validate Input",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
520,
300
]
},
{
"parameters": {
"method": "POST",
"url": "=https://generativelanguage.googleapis.com/v1beta/corpora?key={{$json.apiKey}}",
"responseFormat": "json",
"jsonParameters": true,
"options": {},
"body": "={ \"displayName\": $json.displayName }"
},
"id": "Http Request",
"name": "Create Store",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
760,
300
]
},
{
"parameters": {
"mode": "runOnceForAllItems",
"jsCode": "const res = $json;\nif (res.statusCode && res.statusCode >= 400) {\n return [{ json: { status: 'ERROR', error: `Gemini returned ${res.statusCode}`, body: res.body || res } }];\n}\nreturn [{ json: { status: 'SUCCESS', store: res.body || res } }];"
},
"id": "Return",
"name": "Format Response",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1000,
300
]
}
],
"connections": {
"Webhook /kb-create-store": {
"main": [
[
{
"node": "Validate Input",
"type": "main",
"index": 0
}
]
]
},
"Validate Input": {
"main": [
[
{
"node": "Create Store",
"type": "main",
"index": 0
}
]
]
},
"Create Store": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"callerPolicy": "workflowsFromSameOwner",
"availableInMCP": false
},
"meta": null
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Gemini File Search - Create Store (Webhook). Uses httpRequest. Webhook trigger; 4 nodes.
Source: https://github.com/8Dvibes/mindvalley-ai-mastery-students/blob/main/workflows/Gemini-Create-Store.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow automates end-to-end social media publishing powered by Late API. It generates text content with Google Gemini, creates branded visuals with Kie.ai, uploads media to Late, and publishes
This workflow is perfect for app developers, SaaS founders, and mobile growth teams who need constant UGC-style video ads without hiring creators or agencies. If you're spending $500+ per creator and
AI Background Generation with Nano Banana (Gemini Image). Uses httpRequest, googleDrive. Webhook trigger; 35 nodes.
This template is for developers, teams, and automation enthusiasts who want a private, PIN-protected Telegram chatbot that answers questions from their own documents — without relying on external AI A
Elevate your digital presence with high-fidelity cinematic video automation. This workflow orchestrates the complex, asynchronous rendering process of OpenAI Sora—transforming static product images or