Latenode

Automate data analysis with an AI-powered chatbot assistant

This template answers data questions from a chat UI. A webhook receives the message. Google Sheets loads the table you analyze. JavaScript filters and totals the rows that match.

ChatGPT writes a short answer from that slice. Supabase stores the question and answer, then the webhook returns the reply. Connect Google Sheets and Supabase. ChatGPT is a Latenode AI step. You do not add an OpenAI key.

Updated Sep 16, 2026Est. run: 35sEst. cost: $0.0022
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Answers spreadsheet questions from a chat webhook
  • Reads live rows from Google Sheets
  • Writes the reply with ChatGPT
  • Stores each question and answer in Supabase

How it works

1
Trigger

Receive the chat message

The scenario starts when your chat UI posts a message to the Latenode webhook.

2
Action

Load the spreadsheet

Google Sheets returns the table you use for analysis.

3
Logic

Filter and total the rows

JavaScript keeps the rows that match the question and shapes totals ChatGPT can read.

4
AI

Write the answer

ChatGPT returns a short reply from that slice. ChatGPT is a Latenode AI step.

5
Action

Log and reply

Supabase stores question and answer. The webhook sends the reply back to the chat UI.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL into your chat UI. Return the answer with a webhook response at the end.

2

Connect Google Sheets

Add a Google Sheets connection. Point Get Values at the tab that holds the numbers people will ask about.

3

Write with ChatGPT

Send the question plus the filtered rows to ChatGPT and ask for a short answer. ChatGPT is a Latenode AI step.

4

Connect Supabase

Add a Supabase connection. Create a table for question, answer, and time, then insert a row after each reply.

Requirements

A chat UI or form that can POST to a Latenode webhook
A Google Sheet Latenode can read
A Supabase project Latenode can insert into

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.