Templates / AI-powered knowledge assistant using Google Sheets, OpenAI, and Supabase Vector Search

AI-powered knowledge assistant using Google Sheets, OpenAI, and Supabase Vector Search

Needs changes

by Alex Huy ✓ · 576 views · created 2025-05-29 · Internal Wiki, AI RAG

Needs changes. This template uses 3 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), Function (legacy), SerpApi (Google Search). 3 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs on Google Sheets events. Along the way it connects OpenAI Chat Model, Embeddings OpenAI, Vector Store Question Answer and Supabase Vector Store and 2 more.

How it runs

Trigger: On Google Sheets events.

  1. Check If New Message (If): checks a condition and branches into true / false
  2. Extract Message (Edit Fields (Set)): sets or maps fields
  3. Generate Timestamp ID (Function): runs custom JavaScript (legacy Function node)
  4. Get Chat History (Google Sheets): uses Google Sheets
  5. Merge: merges the data from its input branches
  6. Format Conversation (Function): runs custom JavaScript (legacy Function node)
  7. Update AI Response (Google Sheets): uses Google Sheets
  8. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Web Search Tool, Vector Store Tool); memory: Conversation Memory

Services it uses

OpenAI Chat ModelEmbeddings OpenAIVector Store Question AnswerSupabase Vector StoreGoogle SheetsSerpApi (Google Search)

Before you upgrade to n8n 3.0

3 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Function (legacy) in Format Conversation, Generate Timestamp ID: replace with Code node, mode 'Run Once for All Items'.
  • SerpApi (Google Search) in Web Search Tool: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Function (legacy)
Format Conversation, Generate Timestamp ID
Code node, mode 'Run Once for All Items'
SerpApi (Google Search)
Web Search Tool
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node

Nodes used (13)

From the author

Description An intelligent conversational AI system that provides contextual responses by combining chat history, vector database knowledge retrieval, and web search capabilities. How it Works (High-level steps) Message Detection: Google Sheets trigger…

Excerpt from Alex Huy'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.