Simple File-Based Key-Value Store: Get Key
Retrieves a value by key from a local JSON file with optional default fallback. Perfect for lightweight, persistent storage without databases.
This n8n workflow implements a simple file-based key-value store for retrieving values. It reads a specified JSON file from a local directory (e.g., /home/node/.n8n/local-files/), extracts the value associated with a given key, and returns it—or a user-defined default if the key is missing or the file is empty. The workflow uses a manual trigger, processes input parameters via a function node, reads the file as binary, converts it to JSON, and outputs the resolved value.
Key benefits include zero external dependencies, no need for databases or cloud storage, and seamless integration into larger n8n automations via the 'Execute Workflow' node. Setup is straightforward: create the local-files folder with proper permissions, place JSON files named by workflow ID (e.g., 4711.json), and pipe config data (file, key, default) from another workflow.
Use cases: temporary caching of API results, storing user preferences or session data across executions, simple config management, or prototyping stateful logic. Pair it with the companion 'WriteKey' workflow for full CRUD-like operations. Ideal for self-hosted n8n environments, Docker setups, or any scenario needing quick, file-persistent storage.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $7.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Other - Miscellaneous workflows
- Shopify SEO Content Automation with GPT-4o & Claude Multi-Agent$27.99
- Monitor LinkedIn Competitor Engagement & Analysis with Bright Data & AI$24.99
- Manage Autopilot Contacts: Create List, Add, Update & Retrieve$9.99
- Gmail Attachment Backup to Google Drive$9.99
- Automate Tally Form: Airtable Storage & Slack Alerts$12.99
- Personalized Birthday AI Companion with GPT-4 & PostgreSQL$19.99
More from Jordi Faber
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.