Templates / Build a cost-efficient Lookio RAG chatbot with GPT-4.1 models for knowledge Q&A

Build a cost-efficient Lookio RAG chatbot with GPT-4.1 models for knowledge Q&A

Ready for 3.0

by Guillaume Duvernay ✓ · 84 views · created 2026-01-06 · Support Chatbot, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. Find past messages (Chat Memory Manager): uses Chat Memory Manager, with memory: Simple Memory
  2. Intent router (Text Classifier): classifies text into categories with AI, with model: Very small model
  3. Simple response (Basic LLM Chain): sends a prompt to an LLM, with model: Very small model
  4. Prepare retrieval query (Basic LLM Chain): sends a prompt to an LLM, with model: Mini model
  5. Respond to Chat (Chat): uses Chat
  6. RAG via Lookio (HTTP Request): calls an HTTP API (POST)
  7. Store messages (Chat Memory Manager): uses Chat Memory Manager, with memory: Simple Memory
  8. Write the final response (Basic LLM Chain): sends a prompt to an LLM, with model: Large model

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This template provides a high-performance, cost-optimized alternative to standard AI Agents for building RAG (Retrieval-Augmented Generation) chatbots. Instead of relying on a single expensive model to decide every action, this workflow uses a modular…

Excerpt from Guillaume Duvernay's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.