WorkflowGoogle SheetsOpen

Chat with Google Sheet

Triggered manually or by an app event. Connects Code, Filter, Google Sheets, Stop And Error, Switch. Sub-workflow: Custom tool This can be called by the agent above. It returns three different types of data from the Google Sheet, which can be used together for more complex queries without returning the whole sheet (which might be too big for GPT to handle) Main workflow: AI agent using custom tool

Front matter
name: Chat with Google Sheet
description: Triggered manually or by an app event. Connects Code, Filter, Google Sheets, Stop And Error, Switch. ### Sub-workflow: Custom tool This can be called by the agent above. It returns three different types of data from the Google Sheet, which can be used together for more complex queries without returning the whole sheet (which might be too big for GPT to handle) ### Main workflow: AI agent using custom tool ## Try me out Click the 'Chat' button at the bottom and enter: _Which is our biggest customer?_ These tools all call the sub-workflow below Change the URL of the Google Sheet here
category: Automation
kind: Workflow
software: Code|Filter|Google Sheets|Stop And Error|Switch

Chat with Google Sheet

Triggered manually or by an app event. Connects Code, Filter, Google Sheets, Stop And Error, Switch. ### Sub-workflow: Custom tool This can be called by the agent above. It returns three different types of data from the Google Sheet, which can be used together for more complex queries without returning the whole sheet (which might be too big for GPT to handle) ### Main workflow: AI agent using custom tool ## Try me out

Click the 'Chat' button at the bottom and enter:

_Which is our biggest customer?_ These tools all call the sub-workflow below Change the URL of the Google Sheet here

Steps

  • Execute Workflow Trigger (executeWorkflowTrigger)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Get Google sheet contents (googleSheets)
  • Set Google Sheet URL (set)
  • Get column names (set)
  • Prepare output (code)
  • List columns tool (noOp)
  • Get customer tool (noOp)
  • Get column values tool (noOp)
  • Sticky Note (stickyNote)
  • Sticky Note4 (stickyNote)
  • Prepare column data (set)
  • Filter (filter)
  • Check operation (switch)
  • OpenAI Chat Model (noOp)
  • Chat Trigger (noOp)
  • AI Agent (noOp)
  • Error Handler (stopAndError)

Import

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

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1378_Code_Filter_Automation_Triggered.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.