AutomatedReality, home

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

  1. Question Form (Form Trigger): A form titled “Ask the Local AI” with one required text area called Question.
  2. Edit Fields: Copies Question into a field named prompt and adds a submittedAt timestamp.
  3. 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.
  4. Ollama Chat Model: llama3.2:3b through Ollama’s API, temperature 0.4.
  5. Create Answers Table (Postgres): Runs CREATE TABLE IF NOT EXISTS form_answers, so the first run sets up the table.
  6. Save Question and Reply (Postgres): Inserts the question, the reply and the timestamp.
  7. Show Reply on Form (Form node, Completion): Displays the reply under the title “Here is your answer”.

What You Need

Key Deployment Hurdles & Solutions

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.