Sorzio
PricingDocs
Sign inStart free
Start free

Enrich, verify, qualify, and write outbound inside Claude, ChatGPT, Cursor, and Google Sheets. Pay only for rows that succeed.

Start free · $20 credit

Product

  • Enrich
  • Verify
  • AI & Models
  • Flows
  • Prospect Pages
  • Tools
  • Pricing
  • Compare
  • Install

Connect

  • Documentation
  • MCP Developer Hub
  • Platform API
  • Claude
  • ChatGPT
  • Cursor

Resources

  • Use cases
  • Case studies
  • Guides & Blog
  • Glossary
  • Help Center
  • Contact Support

Company

  • About
  • Security
  • Sorzio vs Clay
  • Sorzio vs Apollo

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie list
  • Subprocessors

Empra Consultancy LTD
hello@sorzio.com

Sorzio (formerly ReplyLabs) is built and operated by Empra Consultancy LTD (https://www.sorzio.com) and is an independent product and company not affiliated with Reply.io (Reply, Inc.).

Sorzio|PrivacyTermsCookiesSubprocessors

© 2026 Empra Consultancy LTD. All rights reserved.

Home/Use cases/AI in Google Sheets: how to run a prompt on every row
WORKFLOW PLAYBOOK · AI in Google Sheets

AI in Google Sheets: how to run a prompt on every row

Run Generative AI, Live Web Search, and Decision Mode across every row in Google Sheets, Hosted Lists, or Claude and ChatGPT MCP. Pricing, models, and prompt rules.

By Hugo Dupont · 12 min read

Start freeSee pricing
Summarise {{Website}} in 12 words and extract pricing tierRun
Accounts · Sheet13,200 / 3,200 ROWS
COMPANYSUMMARYMODELSTATUS
2Vektor DataUsage-based ETL · $199 floorClaude Sonnetgrounded
3Sola PayAP automation · mid-marketClaude Sonnetgrounded
4Kite SecuritySOC2 compliance · 80 staffGPT-4o minigrounded
5Loomis ERPCustom enterprise quote onlyGPT-4o minigrounded
6Crest BioClinical trial ops softwareGemini Flashgrounded
Filled by Sorzio3,200 rows · 300+ models, server-side
PIPELINE BLUEPRINT
Website EnrichDecision GateSelf-Healing AI (300+ Models)
TYPICAL 1,000-LEAD COST~$3.90 / 1,000 rows ($0 AI fee with BYOK)

One prompt across thousands of rows.

01Connect or paste02Preview 10 rows03Run on the full list
01

Reference any column header

Open the sidebar or connect MCP and map merge fields like {{Company}} and {{About}} straight into your prompt.

  • Runs server-side with zero 6-minute script timeouts
  • Works across Google Sheets, Hosted Lists, and Claude
300+ MODELS
02

Check output and exact price first

Sample 10 rows, inspect tone and length, and review the pre-flight cost estimate before running.

  • Unified 1,000 in / 150 out baseline estimate
  • Optional self-healing check revises ungrounded claims
~$3.90 PER 1,000
03

Pay only for rows that return output

Cells stream back in parallel while failed or blank rows cost nothing on your Sorzio balance.

  • 1.65x token cost + $0.0035/row on managed credits
  • 0% markup and $0 base fee with BYOK on Pro ($39/mo)
0% MARKUP ON BYOK
$0.006 / URL6-page website enrichment
$7.50 / 1KCompany LinkedIn
$10.00 / 1KPersonal LinkedIn
$1.00 / 1KDecision Mode ICP
$0.01 / EMAILSMTP verification
$0.15 / OPENHosted Links first human open

What teams see after the first run.

3.6xHigher positive reply rate across 9,640 grounded openers at EmpraRead the story
$36.31Total 3-step Sheets Flow bill across 3,200 rows at Clarity SystemsRead the story
3,610Finance and Ops openers grounded in Live Web Search at PerkRead the story

How do you run AI across every row in Google Sheets?

Write one prompt referencing column headers like {{Company}} and execute it server-side with Sorzio so thousands of rows complete in parallel without Apps Script timeouts. Managed runs bill 1.65x tokens plus $0.0035 per succeeded row (0% BYOK on $39/mo Pro; $1.00/1k Decision Mode) across Sheets, Claude, ChatGPT, and Cursor.

What "AI in Google Sheets" actually means

There are three common shapes, and they are not equal.

  1. Custom functions. A script that exposes something like =AI(prompt). It works for a few cells but stalls on large ranges because Apps Script has a six-minute execution limit and tight quota on external calls.
  2. Copy-paste into a chatbot. Manual, slow, and impossible to keep in sync when the source data changes.
  3. A sidebar add-on that batches the work. You write the prompt once, point it at the columns, and the add-on dispatches the rows in parallel server-side. This is the only approach that holds up at thousands of rows.

Sorzio is the third shape. The model runs outside the spreadsheet, so the six-minute script limit never applies, and one prompt can fill an entire column whether it has fifty rows or fifty thousand.

Why people put AI in a spreadsheet at all

A spreadsheet is already where most go-to-market data lives. Your prospect list, your product catalog, your support tickets, your survey responses: they sit in rows and columns long before anyone thinks about a model. Pulling that data into a separate tool, running it through AI, and pushing the results back is friction that kills the workflow. Doing the AI step where the data already lives removes that round trip.

The jobs people reach for most often are:

  • Writing at scale. A first-line opener for every prospect, a product description for every SKU, a reply draft for every inbound message.
  • Classifying. Tagging each row as a fit or not, sorting feedback into themes, scoring intent from a free-text field.
  • Extracting. Pulling a job title, a city, or a funding stage out of a messy "notes" column into clean structured fields.
  • Summarizing. Condensing a long transcript or scraped page into one sentence you can scan in a list.

Each of these is the same underlying operation: take the values in a row, hand them to a model with an instruction, write the answer back. Once you can do that reliably across thousands of rows, the specific use case is just a different prompt.

How to run a prompt across a column

The flow is the same whether you are writing emails, classifying leads, or extracting fields:

  1. Open the sidebar with Extensions, Sorzio, Open sidebar.
  2. Select the range you want to process.
  3. Write your prompt and reference columns by header, for example "Write a one-line opener for {{Company}} based on {{Recent news}}."
  4. Review the cost preview for your exact row count.
  5. Click Run. Results stream back into a new column, row by row.

Because each row is its own model call, an error on one row never blocks the rest, and you only pay for the rows that return output. If row 412 has a malformed input and fails, rows 413 onward keep going, and your bill reflects only the rows that produced a result.

Choosing the right AI mode and model

Sorzio ships a managed catalog of 300+ models across 16+ providers (including OpenAI, Anthropic, Google, Mistral, Perplexity, xAI, and TypeSafe AI) across three purpose-built AI modes:

  • Decision Mode (typesafe-ai/jev-1.14.0, $1.00 per 1,000 rows base fee). Non-generative calibrated probability scoring for ICP qualification, yes/no gates, and multi-choice classification. Evaluates up to 12 criteria in one pass with calibrated confidence scores, so "is this a fit" jobs cost roughly 4x less than generative prompts.
  • Live Web Search (5 providers). Real-time web research per row using perplexity/sonar (~$8.78 per 1,000 rows) or native search tools on OpenAI, Anthropic Claude, Google Gemini, and xAI Grok.
  • Generative AI (300+ language models). Small, fast models for extraction, mid-tier models for personalized cold-email openers, and frontier models for complex synthesis, with optional self-healing output verification that checks drafts against source columns and revises once if any claim is ungrounded.

A practical pattern is to run Decision Mode to filter to fit accounts first, then draft openers on a sample of twenty rows before scaling to the full list.

Writing prompts that hold up at scale

A prompt that works on one row in a chat window often falls apart across a thousand rows in a sheet, because the data is messier than your test case. A few habits keep the output consistent:

  • Reference columns by header, not by hand. Use {{Company}} or {{First name}} so the right value is substituted for each row. Hard-coding a value means every row gets the same answer.
  • Tell the model what to do with missing inputs. Real lists have blank cells. A line like "If no recent news is provided, write a generic but warm opener" stops the model from inventing facts.
  • Constrain the format. If you want one sentence, say "one sentence, no greeting." If you want a label, say "Reply with exactly one of: Fit, Not a fit." Tight output is easier to filter and use downstream.
  • Show one example. A single worked example inside the prompt anchors tone and length far more reliably than adjectives like "concise" or "compelling."

These are not Sorzio-specific tricks; they are how language models behave. But they matter more in a spreadsheet because you cannot eyeball five thousand outputs, so the prompt has to be right before you run.

What it costs

Sorzio AI modeBest spreadsheet jobManaged pricing (succeeded rows)Pro ($39/mo) BYOK pricing
Decision Mode (jev-1.14.0)Calibrated ICP scoring and 3-way gates$1.00/1k base + 1.25x input tokens (~$1.01/1k)$1.00/1k base + 1.25x input tokens
Generative AI (300+ models)Extraction, classification, self-healing copy1.65x raw tokens + $0.0035/row (~$3.90/1k GPT-4o-mini)0% Sorzio markup and $0 base fee
Live Web Search (5 providers)Real-time trigger and news lookup per row~$8.78/1k on perplexity/sonar or 1.65x search fee0% Sorzio markup on BYOK search keys
Enrich & Verify steps6-page sites, LinkedIn, SMTP verification$0.006/URL site; $7.50/1k Co. LI; $10/1k Pers. LI; $0.01 VerifyScale ($99/mo) unlocks Jina, Firecrawl, No2Bounce BYOK

Pre-flight estimates start from a unified 1,000 input / 150 output token baseline and adapt to your workspace's real median token usage, with $20 free welcome credit ($5 instant + $15 on card verification) and $0 charged on failed rows. Every workflow runs in Google Sheets or conversationally on Hosted Lists in Claude, ChatGPT, and Cursor via the MCP server. Chain steps inside Flows, test live prompts in the showcase, compare GPT for Sheets alternatives and Sorzio vs SheetMagic, or model runs in the AI cost calculator and how to estimate AI API cost.

Keeping output tied to real data

Generic AI fills in a name and calls it personalized. The output is only as good as the columns you feed it. Two habits matter:

  • Feed scraped or verified facts, not just the company name. A prompt that reads a scraped "about" snippet or a funding stage writes a sentence that could only apply to one prospect.
  • Filter before you spend. Drop rows that will not pay you back (undeliverable emails, missing inputs) before the AI step runs. See running a prompt across thousands of rows for the batching mechanics.

The single biggest lever on output quality is the input. A model handed only "Acme Corp" can write something true of any company. A model handed "Acme Corp, a Series B logistics firm that just opened a Rotterdam hub" can write something true of exactly one. That extra context comes from enrichment and scraping, which is why AI rarely lives alone in a real workflow.

Where AI fits in a wider workflow

In practice the AI step is one stage in a chain that starts with raw data and ends with something you can act on. A typical outbound sequence looks like this:

  1. Enrich company pages or news to fill context columns with real facts.
  2. Verify the email addresses so you do not waste sends or AI spend on dead rows.
  3. Filter to the rows worth contacting.
  4. Run AI to write a personalized opener that references the scraped facts.

Each stage feeds the next, and because it all happens in one sheet, there is no exporting and re-importing between tools. The AI step is where the value becomes visible, but it leans on the Verify and Enrich steps that came before it. That is the difference between personalization that reads like a template and personalization that reads like a human did the research.

Common mistakes to avoid

  • Running the whole list before testing the prompt. Always sample twenty rows first. A small fix to the prompt saves you re-running thousands of rows.
  • Personalizing on the company name alone. Without a real fact in the prompt, the output is generic by construction. Add a scraped or enriched column.
  • Ignoring the cost preview. It is there to stop surprises. Glance at it before every run, especially when you change the model.
  • Forgetting failed rows are free. You do not need to manually exclude bad rows to avoid paying for them, but filtering still saves time and keeps outputs clean.

Keeping output accurate and on-brand

At small volumes you read every cell. At thousands of rows you cannot, so you need a way to trust the output without inspecting all of it. The reliable approach is to sample and constrain rather than to inspect everything.

  • Sample before you scale. Run twenty rows, read every one, and only then run the full list. Most prompt problems show up in the first twenty rows.
  • Spot-check after the full run. Sort the output column and skim the top, middle, and bottom. Outliers in length or tone surface fast when the column is sorted.
  • Pin the voice with an example. A single in-prompt example of the tone you want does more than a paragraph of instructions. The model copies the example far more faithfully than it follows adjectives.
  • Forbid the failure modes you have seen. If the model keeps opening with "I hope this email finds you well," add "do not open with a greeting" to the prompt. Negative instructions are blunt but effective.

Because outputs land in a normal column, anything you would normally do to a column still works: conditional formatting to flag empty results, a filter to isolate rows that need a re-run, or a quick formula to count outputs over a length limit. The AI step does not lock the data away; it just fills cells.

A worked example: personalized openers

Say you have a sheet of 2,000 prospects with columns Company, First name, and a scraped About snippet. You want a one-line opener for each that references something real.

  1. Confirm the inputs are real. Make sure the About column actually holds scraped text, not a placeholder. If it is empty for some rows, decide what the prompt should do with them.
  2. Write the prompt. "Write a one-line cold-email opener for {{First name}} at {{Company}}. Reference one specific detail from this about text: {{About}}. One sentence, no greeting, under 25 words. If the about text is empty, write a warm generic opener that mentions {{Company}}."
  3. Sample. Run the first twenty rows. Read them. Tighten the prompt if the openers are too long or too generic.
  4. Run the full list. Output streams into a new column. The cost preview already told you the total before you clicked Run.
  5. Spot-check and ship. Sort by opener length, skim the extremes, then use the column in your sequence.

The thing that makes this work is step one. The opener is only as specific as the About column, which is why scraping and enrichment feed the AI step rather than competing with it.

Common questions

Does this need an OpenAI account?

No. Sorzio includes a managed catalog of 300+ models across 16+ providers, including OpenAI, Anthropic, Google, Mistral, Perplexity, xAI, and TypeSafe AI. You can also bring your own key on Pro ($39/month) and Scale ($99/month).

Will it time out on large sheets?

No. The model runs server-side, outside Apps Script, so the six-minute custom-function limit does not apply. Runs of thousands of rows are normal.

Can I use my own data columns in the prompt?

Yes. Reference any column by its header in double braces, for example {{First name}} or {{Company}}, and the value for that row is substituted before the model runs.

Is my data sent anywhere I should know about?

Row inputs and outputs are passed to the AI provider you select to generate the result, then retained only briefly before purge. Metadata about the run persists so you can see your history. If you bring your own key, the AI call goes through your own provider account.

What is an AI prompt in this context?

It is the instruction template you write once and the add-on applies to every row, with column values substituted in. See the AI prompt definition.

Keep reading · AI in Google Sheets
  • Best AI tools for Google Sheets
  • How to write an AI formula in Google Sheets
  • Run a prompt across thousands of rows
  • GPT for Google Sheets without a script
  • AI personalization at scale from a spreadsheet
Key terms
AI promptToken (LLM)
Run this in Sorzio · Sheets, Claude, ChatGPT & Cursor
300+ AI Models Claude MCP Sorzio vs SheetMagic AI Cost Calculator

How teams run this with Sorzio.

Empra0% markup
B2B OUTBOUND & ADVISORY · CLAUDE MCP + BYOK

Empra enriched, qualified, and personalized 18,400 B2B accounts across 8 client mandates at 0% AI markup.

How London outbound and fundraising firm Empra runs 18,400-account research, Decision Mode ICP scoring, and 1-to-1 Hosted Links market maps inside Claude MCP and Google Sheets without Clay credit tiers.

Read the story
Shepherd Gate680 matched
PRIVATE MARKETS ADVISORY · LONDON, HONG KONG, ABU DHABI & NY

Shepherd Gate mapped 2,400 global institutional allocators and family offices in 14 minutes for $63.63.

How private markets advisory firm Shepherd Gate uses Sorzio inside Claude MCP to enrich global family offices and credit funds, match capital mandates with Decision Mode, and share 1-to-1 Hosted Links briefs.

Read the story
SocialOS3.1x demos
RELATIONSHIP INTELLIGENCE SAAS · CLAUDE & CURSOR MCP

SocialOS enriched 3,600 advisory partners and booked 3.1x more product demos from Claude and Cursor MCP.

How relationship and research workspace SocialOS maps boutique M&A, private capital, and executive advisory partnerships inside Claude and Cursor MCP, paying $0 on missed LinkedIn profiles and BYOK calls.

Read the story

Start with $20 of free credit.

Start freeSee pricing
  • Cost shown before every step
  • Pay only for rows that succeed
  • Google Sheets, Claude and ChatGPT

Explore other use cases

$0.01 PER EMAIL

Email verification in Google Sheets

SMTP Email VerifyDeliverable GateEnrich & AI
Open playbook
$0.006 PER URL · 6 PAGES

Enrich URLs in Google Sheets

6-Page Website EnrichDecision GateStructured AI Extract
Open playbook
0% MARKUP ON YOUR OWN KEY

Cold email from Google Sheets

Website EnrichEmail VerifyDecision GateSelf-Healing AI
Open playbook