Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Chat with a Google Sheet using AI

n8n template #2085
This workflow allows you to ask questions about the data in a Google Sheet over a chat interface. It uses n8n's built-in chat, but could be modified to work with Slack, Teams, WhatsApp, etc. Behind the scenes, the workflow uses GPT4, so you'll need to have an OpenAI API key that supports it. How it works The workflow uses an AI agent with custom tools that call a sub-workflow. That sub-workflow reads the Google Sheet and returns information from it. Because models have a context window (and therefore a maximum number of characters they can accept), we can't pass the whole Google Sheet to GPT - at least not for big sheets. So we provide three ways of querying less data, that can be used in co

How to set it up

  1. Open template #2085 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create 2 credentials under Credentials → Add credential: Google Sheets, OpenAI Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. Toggle the workflow to Active so its trigger runs on its own.

Hand off to your agent

Prompt

Help me set up the n8n workflow "Chat with a Google Sheet using AI" (https://n8n.io/workflows/2085). It uses: Google Sheets, Code, AI Agent, OpenAI Chat Model, Call n8n Workflow Tool. 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

Questions

Yes. David Roberts published it free on n8n.io as a verified creator, and it has 50K views. It runs on n8n Cloud or a self-hosted n8n instance.

Google Sheets, OpenAI Chat Model. The other 3 nodes are built into n8n.

Similar workflows

NameViews
  1. AI-Powered Restaurant Order Chatbot with GPT-4o for POS Integration11K
  2. Automate SEO blog content creation with GPT-4, Perplexity AI and WordPress6,949
  3. Automate SEO blog creation + social media with GPT-4, Perplexity and WordPress5,798
  4. Explore n8n Nodes in a Visual Reference Library5,197
  5. Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
  6. Build Your First AI Data Analyst Chatbot134K
  7. Create a Branded AI-Powered Website Chatbot88K
  8. AI web researcher for sales69K