n8n Automation Business: 5 Local Workflows That Save Hours Every Week
Overview & Architecture
Five small automations are easier to run and sell when they share one backbone. This blueprint uses a single n8n workflow with a Schedule Trigger, a shared Postgres tasks table and a Switch node that routes each task to one of five lanes. Every lane uses a local Ollama model (gemma4:12b-it-qat) and ends by writing its status and output back to the task row.
Only the final outputs (Google Sheets, Discord, Telegram) leave your machine.
The Pipeline
- Task queue: Every 15 minutes the workflow creates the
taskstable if needed, seeds five demo tasks when it is empty, and claims pending rows. - Routing: A Switch node sends each task by type to its lane.
- Intake triage: Ollama classifies a message, a Code node picks the label, and the result goes to Google Sheets and Discord. A Webhook can queue new messages.
- Document summariser: Apache Tika extracts text, Ollama summarises, a Code node checks length, and the summary goes to Sheets and Telegram.
- Private research: SearXNG finds pages, Browserless fetches three, a Code node checks that enough sources came back, Ollama writes a brief, and it is saved to Sheets.
- Daily digest: Today’s finished rows are read from Postgres, Ollama writes a short digest, and it goes to Telegram and Discord.
- Content ideas: Ollama generates ideas, a Code node drops duplicates against past ideas in the table, and the rest go to Sheets.
- Status tracking: Each lane updates its task row with a status and output.
What You Need
- Docker with n8n, Ollama, Postgres, SearXNG, Apache Tika and Browserless on one network (the build was made on the creator’s own n8n instance; the exact version was not recorded)
- An Ollama model pulled locally (the build used
gemma4:12b-it-qat) - A Google Sheet with tabs
triage,summaries,researchandideas, and a Google Sheets credential - A Discord webhook and a Telegram bot with a chat ID
Key Deployment Hurdles & Solutions
- Placeholders to fill in: The Sheets nodes need your spreadsheet selected and the Telegram nodes need your chat ID in place of
YOUR_TELEGRAM_CHAT_ID. - Model tag: The exact
gemma4:12btag was not available on the creator’s server;gemma4:12b-it-qatwas used. Set the model on all five model nodes to one you have pulled. - One GPU, five lanes: The lanes start in parallel, so Ollama queues the model calls. No concurrency limit is set.
- Tested scope: The test run used pinned data for the external services and ran the Ollama chains and Code nodes live, so test your own services end to end after import.
- One task per type: The research and digest lanes assume one task of their type per run.
Download the Workflow (.json)
Import-ready n8n workflow with all 41 nodes with clear names (the stage groups from the original canvas are not included in the export, so group them yourself if you like). In n8n choose Import from file, then connect your own Postgres, Ollama, Google Sheets, Telegram, Discord and Browserless credentials.
Download the n8n workflow (.json)
Download the Companion System Prompt (.md)
Enter your first name to personalize the assistant prompt so your AI helper can walk you through the Postgres, Ollama, Tika, SearXNG, Browserless, Sheets, Discord and Telegram setup step by step. Add your email optionally to get notified when new home lab blueprints drop.