How to Build a Local AI Agent With n8n (NO CODE!)
Leon van Zyl
@leonvanzylAbout
Welcome to my YouTube channel! Here, you'll find step-by-step tutorials on building real-world solutions with AI. From AI agents and automation workflows to vibe coding and agentic coding, I cover it all - using both code and no-code tools like n8n, Claude Code, Codex, Cursor, and more. Whether you're a vibe coder building your first app with AI, or a developer integrating agents into your workflow, there's something here for you. I focus on practical, hands-on tutorials that you can follow along with and implement right away. New videos every week - thanks for stopping by, and I hope you enjoy the content! Let’s work together! - For brand, sponsorship, and business inquiries: [email protected]
Latest Posts
Video Description
🚀 Access ALL video resources & get personalized help in my community: https://www.skool.com/agentic-labs/about?ref=3fd61190e13d426dbf4f3b38adc7de69 🚀 Start building with n8n (use my link to support my channel ❤️): https://n8n.partnerlinks.io/f7f19w3vrhin 💬 My AI voice-to-text software (Wispr Flow): https://wisprflow.ai/r?LEON114 ☕ Buy me a coffee: https://www.buymeacoffee.com/leonvanzyl 💵 Donate using PayPal: https://www.paypal.com/ncp/payment/EKRQ8QSGV6CWW Discover how to build a powerful AI agent that runs completely on your local machine in this step-by-step tutorial. Learn to combine N8N's workflow automation with Ollama's LLM capabilities and PostgreSQL's vector database features to create a responsive assistant that can access your documents, maintain conversation history, and retrieve real-time information from the web. This video demonstrates a cost-effective solution requiring no paid API services or cloud subscriptions. You'll see how to properly configure Ollama with two essential models, set up Docker with PostgreSQL for vector search, and orchestrate everything through N8N's intuitive interface. Perfect for developers, AI enthusiasts, and business users looking to implement private AI solutions, this tutorial covers common troubleshooting issues and provides simplified alternatives to more complex setups. Watch as your agent retrieves information from uploaded documents, maintains context across conversations, and delivers accurate responses using locally-run large language models. If you're interested in self-hosted AI tools that respect your privacy while delivering powerful functionality, this comprehensive guide walks you through building an extensible foundation you can customize for your specific needs. -------------------------------------------------------- POSTGRES DOCKER COMMAND: -------------------------------------------------------- docker run --name pgvector-container -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypassword -e POSTGRES_DB=mydatabase -p 5432:5432 -d ankane/pgvector 🕒 TIMESTAMPS: 00:00 - Intro 00:33 - Demo 02:29 - Note on Starter Kit 02:55 - Ollama Setup 04:31 - Postgres Setup 06:20 - n8n Setup 07:01 - Create AI Agent 08:49 - Assign LLM 10:01 - Chat Memory 11:44 - Postgres Chat Memory 13:13 - Adding Tools 13:42 - Adding RAG 15:13 - Using OpenAI Node instead 16:24 - Housekeeping 17:02 - Add Web Search 17:59 - Add Docs to Vector DB #n8n #aiagents #ollama
You May Also Like
AI Agent Build Essentials
AI-recommended products based on this video

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Western Digital 2TB WD Blue SA510 SATA Internal Solid State Drive SSD - SATA III 6 Gb/s, 2.5"/7mm, Up to 560 MB/s - WDS200T3B0A

Western Digital 4TB Elements Desktop External Hard Drive, USB 3.0 external hard drive for plug-and-play storage - WDBWLG0040HBK-NESN

Western Digital 4TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0040HBK-NESN

Western Digital 4TB My Passport Portable External Hard Drive HDD, USB 3.0, USB 2.0 Compatible, Black - WDBPKJ0040BBK-WESN

TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only

TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

BOSGAME Linux Mini PC, Intel 12th N100 16GB DDR4 RAM 512GB SSD Linux Server Computers Preinstalled Ubuntu 22.04,Support 4K Triple Display/USB3.2/WiFi 5/2.5GbE

LEGO City Mobile Police Dog Training 60369, SUV Toy Car with Trailer, Obstacle Course and Puppy Figures, Animal Playset for Boys and Girls Ages 5 Plus

Pishengfa DIY Stitch Book, Embroidery Stitch Book, DIY Sewing Books, EmbroideryS Books of Stitches, with 86/128 Sewing Tips for Beginners, Unique Embroidery Handmade Gifts (Grey)

NAFYRE N11 PRO GPS Drone with Camera for Adults 4K UHD, 90 Min Long Flight Time, Long Control Range, Auto Return, Follow Me, Brushless Motor, 5G FPV RC Quadcopter for Beginners

Super Enduring Brushless Motor Drone with Camera for Beginners, CHUBORY A68 WiFi FPV Quadcopter with 2K HD Camera, Auto Hover, 3D Flips, Headless Mode, Trajectory Flight

Brushless Super Endurance Foldable Drone for Beginners 35+ mins Flight Time Drone with 90° Wide-Angle 2K HD Camera, Follow me, Dual Cameras, Auto Hover and Trajectory Flight(3 Batteries)

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

The Pandy - Emotional Healing on Demand, Realistic Panda Plush for Emotional Support, Mimics Natural Movements for Realistic Comfort, Pandy Ai Plush with Ultra-Soft Fur, The Comfort Hug You Have

Real-Time AI Translation Earbuds - 198 Languages 3-in-1 Translating Device, Écouteurs traducteurs Anglais-français, Clear Voice Translation Headphones with Charging Case for Travel & Learning Global Recycled Standard

1080p Wireless Doorbell Camera Without Receiver, AI Human Detection, 2-Way Audio, Night Vision, Cloud Storage (Sold Separately), Real-Time Alerts, Battery-Powered, 2.4Ghz Wi-Fi Olny (Black)



















