Query Google Sheets/CSV data through an AI Agent using PostgreSQL
n8n template #3079Summary
Use templateWant to see it in action? Watch the full breakdown here: 📺 Video Link Template Description This n8n workflow empowers you to query structured financial data from Google Sheets or CSV files using AI-generated SQL. Unlike traditional vector database solutions that falter with numerical queries, this template leverages PostgreSQL for efficient data storage and an AI agent to dynamically create optimized SQL queries from natural language inputs. What It Does Retrieves data from Google Sheets or CSV files Infers the data schema and builds a PostgreSQL table Populates the table with your data Uses an AI agent to translate natural language questions into SQL queries Returns precise numerical resul
Hand off to your agent
Prompt
Help me set up the n8n workflow "Query Google Sheets/CSV data through an AI Agent using PostgreSQL" (https://n8n.io/workflows/3079). It uses: Google Sheets, Postgres, Code, AI Agent, Call n8n Workflow Tool, Google Gemini Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Explore n8n Nodes in a Visual Reference Library5,197
- Nutrition Tracker & Meal Logger with Telegram, Gemini AI and Google Sheets4,244
- AI-Powered MIS Agent437
- Chat with a Google Sheet using AI50K
- ✨ Vision-Based AI Agent Scraper - with Google Sheets, ScrapingBee, and Gemini35K
- Customer Support WhatsApp Bot with Google Docs Knowledge Base and Gemini AI15K
- Build an AI-Powered Tech Radar Advisor with SQL DB, RAG, and Routing Agents12K
- AI-Powered Restaurant Order Chatbot with GPT-4o for POS Integration11K