n8n Basics in One Project: A Chatbot That Answers from a Google Sheet, with Free Local AI

n8n Basics in One Project: A Chatbot That Answers from a Google Sheet, with Free Local AI

A good first n8n project is a chatbot that answers questions from a simple spreadsheet. This short developer walkthrough builds one with a chat trigger, an AI Agent node, a free local model through Ollama, chat memory and a Google Sheets tool, and shows the common “workflow not published” error and why a clear system message matters most.

Video: ZAR | Dev (YouTube)

💡 This video offers a Korean audio track (Settings ⚙️ → Audio track), handy if you share it with Korean-speaking friends.

At a glance

  • Who it suits: Beginners learning n8n who want a practical first build
  • Plan needed: Self-hosted n8n and Ollama are free; cloud AI models cost per use
  • Key skill: Writing a clear system message and structuring the sheet
  • Time to first result: About an hour including installs

1. Start with a chat trigger

Install n8n locally (or use n8n cloud), create a workflow and add the “When chat message received” trigger.

2. Add an AI Agent with a model

Add the AI Agent node and choose a chat model. The video uses a free local model through Ollama so there is no API bill; a paid API model is faster and more accurate.

3. Publish before you test

A very common error comes from testing the public chat before the workflow is published or activated. Publish first.

4. Turn on memory

Without a memory node the bot forgets earlier messages, even your name. Add simple chat memory so it can follow a conversation.

5. Give it a Google Sheet as knowledge

Add the Google Sheets tool, connect your Google credentials and pick the sheet (the demo uses a table of graphics cards). Keep one row per item and clear column names.

6. Write the system message with AI help

The system message decides how the bot behaves. Ask ChatGPT or Claude to draft one: who the bot serves, to answer only from the sheet, and to say “I do not know” otherwise. Then test with real questions, including tricky ones.

Tools in the video

  • n8n
  • Ollama (local models)
  • Google Sheets
  • ChatGPT or Claude for drafting the system message

Before you try

  • Local models on a normal PC can be slow and may miss rows; check answers against the sheet before sharing the bot.
  • Do not put personal or confidential data in a sheet a public chatbot can read.
  • Protect your n8n instance with a password and keep it updated if it is reachable from the internet.
  • Scam watch: “ready-made n8n money bots” sold on social media often contain leaked API keys or malicious nodes. Build or import only from trusted sources.

Good to know

This post summarizes a YouTube video in our own words. Watch the video for the full details. The video offers a Korean audio track (Settings → Audio track).

Get new posts by email

No account needed. Leave your email and we will let you know when new guides go up. Unsubscribe with one click anytime.

What we collect: email address only. Why: to send new-post alerts. How long: until you unsubscribe. Sent through MailerLite; we never sell or share it. You may decline, but then we cannot send alerts. Privacy Policy

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *