Vu Minh Nguyen
Back to projects

Final project · Mar 2026

CellSense — AI Assistant for Google Sheets

CellSense

AI-powered Google Sheets add-on that turns plain English into spreadsheet formulas.

The hosted instance is currently down due to GCP billing. Screenshots below show what it looks like.

Features

  • Generate formulas from natural language
  • Multi-turn chat with conversation history
  • Attach cell ranges as context for the model
  • Edit multiple ranges in a single request
  • Pick from Gemini, GPT, or Claude models
  • 10 free requests/day, or bring your own API key
  • Revert the last set of applied formulas

Supported Models

Provider Models
Google Gemini gemini-2.5-pro, gemini-2.5-flash
OpenAI GPT gpt-5, gpt-5-mini
Anthropic Claude claude-opus-4-5, claude-haiku-4-5

Architecture

The frontend is a Google Apps Script sidebar in Google Sheets (TypeScript). It talks to a FastAPI backend that handles chat logic and LLM calls, with PostgreSQL for storage. Everything runs on GCP — Cloud Run for the backend, Cloud SQL for the database.

Tech Stack

  • Backend: Python, FastAPI, SQLAlchemy, Alembic, Jinja2
  • Frontend: TypeScript, Google Apps Script
  • Database: PostgreSQL
  • LLM SDKs: google-genai, openai, anthropic
  • Infra: GCP Cloud Run, Cloud SQL, Artifact Registry
  • Testing: pytest, pytest-asyncio
  • Code quality: Ruff, Pyright, Black, isort, Bandit, detect-secrets

Evaluation

Nine models were tested on 9 sheets across 3 difficulty levels (Easy, Medium, Hard), 3 attempts each. Scored on consistency (do repeated attempts give the same correct answer?) and style (is the formula clean?).

Three models got dropped for bad results: Gemini 2.5 Flash Lite, GPT-5 Nano, and Claude Sonnet 4.5.

Consistency results

Style results

Test sheets used for evaluation

Easy

E1 E2
E1: Sales revenue totals E2: Student grade averages and pass/fail

E3

E3: Inventory stock value and reorder alerts

Medium

M1 M2
M1: Employee bonus with VLOOKUP M2: Order analysis with SUMIFS/COUNTIFS

M3

M3: Project duration and budget status

Hard

H1 H2
H1: Financial metrics with running totals H2: Tiered commission with lookup

H3

H3: Weighted scoring with ranking

Database Schema

Schema

Screenshots

Chat UI Loading state
Chat interface with error handling Loading while the model thinks
Model picker Profile page
Model picker Profile and API key management
Revert feature
One-click revert