Templates / Answer questions about documentation with BigQuery RAG and OpenAI

Answer questions about documentation with BigQuery RAG and OpenAI

Ready for 3.0

by Dataki ✓ · 468 views · created 2025-09-03 · 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 11 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects OpenAI Chat Model. It also calls api.openai.com and bigquery.googleapis.com over HTTP.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (BigQuery RAG OpenAI); memory: Simple Memory
  2. Set field - question (Edit Fields (Set)): sets 1 field: question
  3. OpenAI - Create Embedding (HTTP Request): calls api.openai.com (POST)
  4. Set Field - Embedding (Edit Fields (Set)): sets 1 field: embedding
  5. BigQuery - Vector Retriever - n8n docs (HTTP Request): calls bigquery.googleapis.com (POST)
  6. Documents retrieved (Edit Fields (Set)): sets 1 field: documents

Services it uses

OpenAI Chat Model

HTTP calls to: api.openai.com, bigquery.googleapis.com

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

BigQuery RAG with OpenAI Embeddings This workflow demonstrates how to use Retrieval-Augmented Generation (RAG) with BigQuery and OpenAI. By default, you cannot directly use OpenAI Cloud Models within BigQuery. Try it This template comes with access to a…

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