WorkflowGoogle CloudOpen

n8n tech radar RAG chatbot with Google Sheets

This n8n workflow turns a company tech radar kept in Google Sheets into a searchable knowledge base for an AI assistant. It is for engineering teams who want to ask which technologies are adopted, on trial or on hold, and get answers from their own radar data.

What it does

On a schedule it reads the Tech Radar sheet, a code step turns table rows into plain paragraphs, and the result updates a Google Doc that is loaded into a vector store. The same rows are reloaded into MySQL, deleting old data first, so an agent can also query them with a MySQL tool.

How to use it

Create a Google Cloud project with the Vertex AI API enabled, get a Google AI API key from Google AI Studio, add a Groq key, and connect Google Sheets, Docs, Drive and MySQL.

Requirements and limits

Apps Script can do the sheet to doc conversion instead, as the notes suggest.

More in Google Cloud and the n8n workflow library.

Full text

Front matter
name: Tech Radar
description: Triggered on a schedule. Connects Code, Condition, Execute Workflow, Google Docs, Google Drive, Google Sheets, My Sql Tool, MySQL. #1.Rag-friendly Document Convert Tech Radar Gsheet into GDoc. Read each rows and cols data then transformed it into simple paragraph rows so that it will be easy to convert into vector database. You may use appscript optionally to do this transformation. ## Set up steps 1. **Google Cloud Project and Vertex AI API**: - Create a Google Cloud project. - Enable the Vertex AI API for your project. 2. **Google AI API Key**: - Obtain a Google AI API key from Google AI Studio. 3. **Groq
category: Automation
kind: Workflow
software: Code|Condition|Execute Workflow|Google Docs|Google Drive|Google Sheets|My Sql Tool|MySQL|Respond To Webhook|Schedule|Webhook

Tech Radar

Triggered on a schedule. Connects Code, Condition, Execute Workflow, Google Docs, Google Drive, Google Sheets, My Sql Tool, MySQL. #1.Rag-friendly Document

Convert Tech Radar Gsheet into GDoc. Read each rows and cols data then transformed it into simple paragraph rows so that it will be easy to convert into vector database.

You may use appscript optionally to do this transformation.

Set up steps

  1. Google Cloud Project and Vertex AI API:
  • Create a Google Cloud project.
  • Enable the Vertex AI API for your project.
  1. Google AI API Key:
  • Obtain a Google AI API key from Google AI Studio.
  1. **Groq

Steps

  • Download Doc File From Google Drive (googleDrive)
  • Doc File Data Loader (noOp)
  • Sticky Note (stickyNote)
  • Cron (cron)
  • MySQL -delete all data (mySql)
  • MySQL - insert all from sheets (mySql)
  • Sticky Note1 (stickyNote)
  • Google Sheets - Tech Radar (googleSheets)
  • Code - Transform table into rows (code)
  • Google Docs - Update GDoc (googleDocs)
  • Sticky Note2 (stickyNote)
  • Google Drive - Doc File Updated (googleDriveTrigger)
  • Content - Recursive Character Text Splitter (noOp)
  • Google Sheets - Read TechRadar (googleSheets)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note11 (stickyNote)
  • Code - Simplify Mapping to Original Query (code)
  • Codes - Simplify Mapping to Original Query (code)
  • Execute Workflow - Sql Agent (executeWorkflow)
  • Execute Workflow - RAG Agent (executeWorkflow)
  • AI Agent - Output Guardrail (noOp)
  • LLM - Determine - Agent Input Router (noOp)
  • Sticky Note6 (stickyNote)
  • Sticky Note7 (stickyNote)
  • Sticky Note12 (stickyNote)
  • Sticky Note8 (stickyNote)
  • Sticky Note9 (stickyNote)
  • When Executed by Another Workflow (executeWorkflowTrigger)
  • 1_Get DB Schema and Tables List (mySqlTool)
  • 2_Get Table Definition (mySqlTool)
  • 3_Execute actual query (mySqlTool)
  • AI Agent -DB Sql Agent (noOp)
  • Sticky Note10 (stickyNote)
  • Sticky Note13 (stickyNote)
  • Pinecone Vector Store (Retrieval) (noOp)
  • 4_RagTool (noOp)
  • Sticky Note14 (stickyNote)
  • AI Agent - RAG (noOp)
  • Sticky Note15 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1836_Code_Googledocs_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.