n8n for Beginners: Free Local Setup Step by Step
Overview & Architecture
This is a small first workflow that teaches the core n8n pieces: a trigger, a node that shapes data, an AI model, a place to save results and a response. A visitor types a question into an n8n form. A local Ollama model answers it, and the answer appears on the same form page. Each question and reply is also saved to a Postgres table so you can see every run.
Everything runs on your own hardware with free tools.
The Pipeline
- Question Form (Form Trigger): A form titled “Ask the Local AI” with one required text area called Question.
- Edit Fields: Copies Question into a field named
promptand adds asubmittedAttimestamp. - Answer with Local AI (Basic LLM Chain): Sends the prompt to the model with a short system message asking for a plain-language answer under 120 words.
- Ollama Chat Model:
llama3.2:3bthrough Ollama’s API, temperature 0.4. - Create Answers Table (Postgres): Runs
CREATE TABLE IF NOT EXISTS form_answers, so the first run sets up the table. - Save Question and Reply (Postgres): Inserts the question, the reply and the timestamp.
- Show Reply on Form (Form node, Completion): Displays the reply under the title “Here is your answer”.
What You Need
- Docker with n8n, Ollama and Postgres reachable from n8n (built and tested on n8n 2.43.5)
- An Ollama model pulled locally (tested with
llama3.2:3b) - A Postgres database and an n8n Postgres credential
- No paid services or API keys
Key Deployment Hurdles & Solutions
- Response setting on the Form Trigger: Setting the trigger to “Using Response Node” failed with “No Respond to Webhook node found”. The Form node’s Completion page works with the trigger left on its default response setting.
- Waiting execution: After a submission, the run waits at the final Form node until the browser opens the waiting page. Submitting from a browser handles this for you.
- Google Sheets swap: The original idea saved rows to Google Sheets. This build saves to Postgres instead. You can replace the second Postgres node with a Google Sheets Append Row node and your own credential.
- Testing the form without a browser: The form field is posted as
field-0, not by its label. A browser does this itself.
Download the Workflow (.json)
Import-ready n8n workflow with all 7 nodes and stage labels. In n8n choose Import from file, then select your own Ollama and Postgres credentials on the model and Postgres nodes.
Download the n8n workflow (.json)
Download the Companion System Prompt (.md)
Enter your first name to personalize the beginner assistant prompt so your AI helper can walk you through n8n, Ollama and Postgres setup step by step. Add your email optionally to get notified when new home lab blueprints drop.