How to Use the AI Function in Google Sheets to Tag Enquiries

Coding Liquids tutorial cover featuring Sagnik Bhattacharya for How to Use the AI Function in Google Sheets to Tag Enquiries.
Coding Liquids tutorial cover featuring Sagnik Bhattacharya for How to Use the AI Function in Google Sheets to Tag Enquiries.

Google Sheets' AI function tags customer enquiries if you keep each enquiry's text in one column and add two =AI() columns, one for service type and one for urgency, each prompt listing the only labels allowed. Select up to 350 cells, click Generate and Insert, then hand-check a sample before trusting the tags.

The Complete Excel Course with AI Integration

From formulas and pivot tables to Power Query, DAX, VBA and AI with Copilot, ChatGPT and Claude — hands-on from the first lesson.

By Sagnik Bhattacharya and Virginia Thorn, Primetime Emmy Award winner

Buy now

Three limits shape everything below. The function needs an eligible plan: Google Workspace Business Standard and Plus include 5,000 AI-function cells a month, while Business Starter has no access. It only returns text, and it can't sit inside another formula, so =IF(AI(...)) won't work and every check has to live in its own column. And results don't update by themselves: a new enquiry stays blank until you select it and generate. None of that stops the job, but it decides how the sheet is laid out.

Which Google plans include the AI function in Sheets?

The AI function in Google Sheets needs an eligible Google Workspace or Google AI plan, or a place in Google's Workspace Experiments testing programme. On business plans, Workspace Business Standard and Plus (and Enterprise Standard and Plus) get 5,000 AI-function cells a month; Business Starter gets none.

PlanAI functionMonthly allowanceListed price
Workspace Business StarterNo accessNone$7 per user a month on an annual commitment
Workspace Business StandardYes5,000 cells$14 per user a month on an annual commitment
Workspace Business PlusYes5,000 cells$22 per user a month on an annual commitment
AI Expanded Access add-onYes25,000 cellsBought by your Workspace admin
Google AI Pro (personal account)Gemini in Sheets is listed; confirm the AI function on a test sheetGemini in Gmail, Docs, Sheets and other apps is capped at 500 uses a month$19.99 a month

The Workspace limits are per cell: each AI-function cell that generates counts once, and regenerating it counts again. Monthly limits reset on the first day of the month, don't roll over, and can't be shared with colleagues. Google's own AI usage limits page has the current table. For personal accounts, Google's plans page lists Gemini help in Docs and Sheets from Google AI Pro upwards, and the AI function help page says only "an eligible Google AI plan", so test it on a copy of your sheet before committing a month's enquiries to it.

A tagging job uses two cells per enquiry (service and urgency). At 5,000 cells a month, a Business Standard user can tag about 2,500 enquiries a month with one generation each, or around 2,000 with room to re-run the ones that fail checks. That is plenty for most small firms, but it's per user, so whoever runs the tagging should be on an eligible plan.

How should you lay out the enquiry sheet?

Lay out the enquiry sheet with one row per enquiry, the raw text in a single column, the two AI columns next to it, and separate columns for checks and hand tags. Keep the label lists on their own tab so the checks have one list to compare against, and copy exactly the same wording into the prompts.

Here's the layout an illustrative car repair garage uses for its monthly enquiry log (web form, email and transcribed voicemail):

ColumnContentsFilled by
ADate receivedPaste or form
BChannel (web form, email, voicemail)Paste or form
CEnquiry text, exactly as the customer wrote or said itPaste or form
DService type=AI() formula
EUrgency=AI() formula
FLabel check (is D and E on the allowed lists?)Normal formula
GRed-flag check (urgent words tagged as not urgent)Normal formula
H, IHand tags for the sample rows (service, urgency)A person

A second tab called Labels holds the allowed values: Brakes, Servicing, Tyres, Diagnostics, Bodywork, Air con and Unclear in column A; Urgent, This week and Routine in column B. "Unclear" matters more than it looks. Without it, the AI has to force a vague enquiry ("can you have a look at my car?") into a real category, and those guesses are where most misclassifications come from.

Eight sample rows (illustrative enquiries) show what the tags should look like when it works:

C: Enquiry textD: ServiceE: Urgency
Grinding noise from the front left when I brake, getting worseBrakesThis week
Need a full service before a long drive next month, any slots?ServicingRoutine
Car won't start this morning, I'm stuck on the driveDiagnosticsUrgent
Slow puncture, keep having to pump the rear tyreTyresThis week
Someone reversed into my bumper in a car park, need a quoteBodyworkRoutine
Air con only blowing warm air since the summerAir conRoutine
Brake pedal went almost to the floor on the way homeBrakesUrgent
Can you have a look at my car?UnclearRoutine

How do enquiries get into the sheet cleanly?

Enquiries get into the sheet cleanly when each source lands as plain text in column C, without email signatures, quoted reply chains or contact details the tags don't need. The AI function tags whatever text it's given, so a signature line mentioning "brake and clutch parts" (because the customer works for a parts supplier) can tip a vague enquiry into Brakes.

  • Web forms. If your website form is a Google Form, open it, click Responses, then Link to Sheets at the top right, and every new response lands in a linked spreadsheet. Copy each month's responses into the tagging tab rather than adding formula columns to the live responses sheet, so the form's own sheet stays untouched. Google notes that collaborators on a form may also have access to its linked spreadsheet.
  • Email. Paste the body of the customer's message only. If a thread has several messages, paste the newest one from the customer, because that's the one that says what they need now.
  • Voicemail. Paste the transcript text from your phone system. Transcripts drop punctuation, so the AI copes better with "brake pedal went to the floor on the way home" than a human skim-reader does.

Here's one email before and after cleaning (illustrative):

BEFORE (pasted as received)
Hi, following up on my message below. Can someone ring me? Thanks, [first name]
Sent from my phone
-----Original message-----
Hi there, the car's making a clunking noise over speed bumps, front right I think.
Not urgent but would like it looked at before the winter. [first name], [mobile]

AFTER (column C)
Clunking noise over speed bumps, front right. Not urgent, would like it looked at
before the winter. Customer has asked for a call back.

The cleaned version tags as Diagnostics and This week, which is what the service manager would have chosen. The raw version, tested the same way, came back as Unclear, because the first lines say nothing about the car. Cleaning took about 20 seconds per email; for 420 enquiries, most come from the form and need no cleaning at all. Keeping names and mobile numbers out of column C also means less customer data passes through the AI step, which is the habit to build from the start.

How do you write an =AI() prompt that returns only your labels?

An =AI() prompt returns only your labels when it lists every allowed label with a short definition, says "reply with the label only", offers an Unclear fallback and points at the enquiry cell. It also helps to name the job in the first line. Google's own examples follow the same shape: a categorising instruction plus the cell to read.

Here's the garage's first attempt and what it produced (illustrative):

Attempt 1, in D2:
=AI("What type of car repair is this enquiry about?", C2)

Sample outputs:
"This enquiry is about brake repair, specifically a grinding noise."
"Tyres"
"It sounds like a diagnostic issue with the starter motor or battery."

All three answers are reasonable and none is usable: two are sentences, and "starter motor or battery" isn't one of the garage's categories. A filter or a count can't work with free text like that. The second version fixes it:

Attempt 2, in D2:
=AI("You tag enquiries for a car repair garage. Reply with exactly one of these
labels and nothing else, no full stop: Brakes, Servicing, Tyres, Diagnostics,
Bodywork, Air con, Unclear.
Brakes = squealing, grinding, soft or sinking pedal, brake warning light.
Servicing = routine service, oil change, inspection booking.
Tyres = punctures, new tyres, wheel alignment, tyre pressure warning.
Diagnostics = engine warning light, car won't start, noises not from the brakes.
Bodywork = dents, scratches, bumpers, glass.
Air con = no cold air, recharge, smells from the vents.
Unclear = the enquiry doesn't say what is wrong.", C2)

On the same three enquiries, attempt 2 returned Brakes, Tyres and Diagnostics. Three things made the difference: the full label list, a definition per label written in customers' words (they say "grinding", not "worn pads"), and the explicit "nothing else, no full stop". Fill the formula down column D, and the C2 reference becomes C3, C4 and so on.

Use the range argument rather than joining text into the prompt. Google's help page notes that if you build a prompt by concatenating cells with an ampersand, Sheets won't prompt you to refresh when those cells change. With the range argument, an edited enquiry gets a Refresh and Insert option.

How do you tag urgency without missing the urgent ones?

Tag urgency with a separate =AI() column that uses three labels with strict definitions, then back it with a keyword rule that flags any enquiry containing danger words but not tagged Urgent. Urgency is where a wrong tag costs most, so it gets the AI pass and a mechanical safety net.

In E2:
=AI("Rate the urgency of this car repair enquiry. Reply with exactly one label and
nothing else: Urgent, This week, Routine.
Urgent = the customer says the car is unsafe or won't drive or start, they are
stranded, the brakes are failing, there is smoke, or a warning light is flashing.
This week = a fault the car can still be driven with, such as a noise, a steady
warning light or a slow puncture.
Routine = servicing, quotes, bookings with no fault, or general questions.", C2)

Two choices in that prompt are deliberate. The definitions describe what the customer says, not what the garage diagnoses, because the AI can only read the enquiry. And "This week" sits between the extremes so the model isn't forced to call a squeaky belt either an emergency or routine. The garage's own rules decide what counts as urgent; the wording above is an illustration to adapt, not a safety standard.

The keyword rule goes in column G (shown in the next sections). Its job is narrow: any enquiry mentioning "won't start", "smoke", "stranded" or a failing brake pedal that the AI tagged as anything but Urgent gets flagged for a person to read before the end of the day.

Step by step: tagging a month of enquiries

Google's help page gives the core steps (enter the function, select the cells, click Generate and Insert); the rest is batching around the 350-cell limit. For an illustrative month of 420 enquiries:

  1. Paste the month's enquiries into columns A to C, one per row, from row 2. Remove signatures and quoted email chains from column C first; the AI tags whatever text it's given.
  2. Enter the two prompts in D2 and E2, then fill both down to row 421.
  3. Select the first batch: D2:E176 is 175 rows across two columns, which is exactly 350 cells. Only the first 350 selected AI-function cells generate in one go.
  4. Click Generate and Insert and wait for the batch to finish.
  5. Select the next batch (D177:E351, another 350 cells), generate, then the last 140 cells (D352:E421).
  6. Run the checks in columns F and G (next section) and filter for anything flagged.
  7. Hand-tag the sample in columns H and I and work out the agreement rate.
  8. Fix and re-run only the problem rows. Regenerating counts against the monthly allowance again, so don't re-run the whole sheet for a prompt tweak that affects ten rows.

Generated values are entered as your edit in version history, and you can't undo or redo the function itself; to change a result you regenerate it. If you prefer working in a Sheets table, the help page also describes an Insert AI column right option at the top right of the table's last column, which puts the AI function in the first row of a new column for you to autofill down.

How do you find misclassified rows?

Find misclassified rows with four ordinary-formula checks: a label check, keyword cross-checks for service and urgency, a systematic hand-checked sample, and counts of which labels get confused. The first two run on every row; the last two tell you whether the prompt needs work.

1. Label check (column F). Catches "Brakes." with a full stop, "Brakes - grinding noise", or a label that isn't yours:

=IF(OR(COUNTIF(Labels!$A$2:$A$8, TRIM(D2))=0, COUNTIF(Labels!$B$2:$B$4, TRIM(E2))=0),
    "NOT A LABEL", "")

2. Keyword cross-checks (column G). The service check flags brake words not tagged Brakes; the urgency check flags danger words not tagged Urgent. Put the urgency check first, because it's the one that matters on the day:

=IF(AND(REGEXMATCH(LOWER(C2), "won't start|wont start|smoke|stranded|pedal (went|goes) to the floor|no brakes"),
        E2<>"Urgent"), "CHECK URGENCY",
 IF(AND(REGEXMATCH(LOWER(C2), "brake|grind|squeal"), D2<>"Brakes"), "CHECK SERVICE", ""))

The keyword list will produce some false alarms ("smoke" in "no smoke, just a smell"), which is fine: the column exists to make a person read the row, not to change the tag.

3. A systematic sample. Pull every 14th enquiry onto a separate tab, which gives 30 rows from 420 without anyone choosing which ones to check:

=FILTER(A2:E421, MOD(ROW(A2:A421), 14)=0)

Tag those 30 by hand in columns H and I without looking at the AI's answer first, then measure agreement:

Service agreement:  =SUMPRODUCT(--(D2:D31=H2:H31))/30
Urgency agreement:  =SUMPRODUCT(--(E2:E31=I2:I31))/30

4. Confusion counts. When the two disagree, count which way. For example, how often the AI said Tyres when the person said Brakes:

=COUNTIFS(D2:D31, "Tyres", H2:H31, "Brakes")

If building these check formulas is the slow part, try The Complete Excel Course with AI Integration on Coding Liquids.

Here's the garage's filled-in sample result for the first run (illustrative):

MeasureFirst runAfter prompt fix
Service tags agreeing with the hand tags (of 30)26 (87%)29 (97%)
Urgency tags agreeing (of 30)25 (83%)28 (93%)
Rows flagged NOT A LABEL (of 420)110
Rows flagged CHECK URGENCY (of 420)94
Most common confusion"Car pulls to one side" tagged Tyres, hand tag BrakesResolved by a definition line

The pulling-to-one-side enquiries were a genuine grey area: it can be tyres, alignment or a sticking brake. The garage's fix was a rule, not a smarter prompt: "Pulling to one side = Diagnostics", so a technician decides. The four urgency flags left after the fix were all real, and two of them were customers who had written "it's fine, no rush" before describing a sinking brake pedal.

Worked example: a car repair garage's October enquiries

An illustrative six-bay car repair garage gets about 420 written and transcribed enquiries a month. Before tagging, the service manager read every one each morning and sorted them in her head; the backlog after a weekend could run to 40 enquiries and two hours. The goal was simple: urgent ones surfaced first, and a monthly count by service to plan which technicians to roster.

Set-up (one-off). Writing and testing the two prompts on 20 old enquiries took about 45 minutes. Building the Labels tab and the check columns took another 30. The garage is on Business Standard, so the AI function was already included.

Monthly run. 420 enquiries × 2 columns = 840 cells, in three batches (350, 350 and 140). Generation took about 10 minutes of selecting and waiting. The checks flagged 20 rows (11 label errors, 9 urgency flags) on the first run, and the sample check took 25 minutes. After the prompt fix, re-running only the 11 label-error rows and 30 sample rows used another 82 cells. Total for the month: 922 of the 5,000-cell allowance and about 80 minutes of staff time, and the morning sort, which had taken up to two hours after a weekend, now starts from a list with the urgent enquiries at the top.

What the counts showed. A COUNTIFS summary by service and urgency gave the roster its answer: brakes and diagnostics made up just over half of all enquiries and nearly all the urgent ones, so the garage moved its most experienced diagnostic technician to the early shift. The summary formula is one line per label:

=COUNTIFS($D$2:$D$421, "Brakes", $E$2:$E$421, "Urgent")

What changed in daily work. Once the monthly process worked, the garage started tagging new enquiries twice a day (select the new rows, generate) so urgent ones reached the service desk by mid-morning. The urgency flag column became the first thing the service manager opened each day.

What do the labels look like for other trades?

Labels for other trades follow the garage's pattern: about six services in customers' words, an Unclear fallback, three urgency levels defined by what customers say, and a short danger-word list. Two filled-in sets show how the sheet adapts.

Cleaning companyPest-control firm
Service labelsRegular clean, Deep clean, End of tenancy, Office, Carpet and upholstery, UnclearWasps and bees, Rodents, Insects indoors, Birds, Commercial contract, Unclear
Urgent meansMove-out or handover within 48 hours, flood or sewage clean-upWasps or bees inside the home, rodents in a food area, someone stung or bitten
This week meansA date fixed within the next 7 daysActivity seen outside or in a loft, droppings found
Routine meansQuotes, regular bookings, general questionsPrevention visits, contract renewals, general questions
Danger words for column G"handover", "tomorrow", "flood", "sewage""inside", "stung", "bitten", "kitchen", "nest in the wall"
Common confusion to defineDeep clean versus End of tenancyInsects indoors versus Wasps and bees (a wasp in the bedroom)

The "common confusion" row is the one to settle before the first run. In the cleaning company's first test, "clean before we hand back the keys" came back as Deep clean half the time; one definition line ("End of tenancy = any clean tied to moving out or handing back keys") fixed it. In the pest-control firm's test, "wasps keep getting inside the kids' bedroom" was tagged Insects indoors and This week; the keyword check caught it because it contains "inside". The fix was adding "wasps or bees indoors = Wasps and bees, Urgent" to both prompts.

What limits of the AI function trip people up?

The Google Sheets AI function's main limits are the 350-cell batch, text-only answers, no nesting, no automatic refresh, no undo, short and long-term usage caps, and no access to anything outside the prompt and range. Each one has a straightforward workaround.

LimitWhat you'll seeWorkaround
Only the first 350 selected cells generateCells beyond 350 stay empty after a runSelect 175 rows across two AI columns per batch
Text onlyNumbers come back as text, so sums ignore themUse word labels; if you ask for a 1-3 score, convert with VALUE() in another column
Can't be embedded in another formula=IF(AI(...)) doesn't workPut the AI result in its own column and point normal formulas at that column
No automatic refreshNew enquiries show nothingSelect new rows and Generate and Insert on a set schedule
No undo or redo for the functionCtrl+Z won't bring back the previous tagRegenerate, or copy the old tags to a spare column before re-running
Short and long-term generation limitsGenerate is unavailable; after a long-term limit, try again in 24 hoursSpread big runs over days; don't regenerate whole columns for small fixes
Sees only the prompt and rangeTags ignore notes in other columns or filesInclude the needed cells in the range, or put the context in the prompt
Not with Box, Dropbox or EgnyteGeneration fails on sheets opened through those servicesWork in a sheet stored in Google Drive

One more practical point: Google says not to rely on Gemini features for professional advice and that they may suggest inaccurate information. For a tagging job that's a reminder to keep the person-in-the-loop checks, not a reason to avoid the tool. For a wider tour of what else Gemini can do in a sheet, see Gemini in Google Sheets for small businesses, and for more prompt patterns, Google Sheets AI prompts.

Should urgency come from the AI function at all?

Urgency can come from the AI function as a first pass, provided a keyword rule catches danger words and a person reads every enquiry flagged Urgent or CHECK URGENCY the same day. The AI is good at reading messy wording; it isn't accountable for a car that shouldn't be driven.

A sensible split for most small firms:

  • AI decides: service type, and Routine versus This week. A wrong tag here costs minutes, not safety.
  • Rules decide: anything containing your danger words is flagged, whatever the AI said.
  • A person decides: every Urgent and every flag, before the end of the day it arrived.

The same structure carries over to other trades. A roofing company's danger words might be "water coming in" and "ceiling"; a pest-control firm's might be "wasps inside" or "bitten". The labels change; the three layers don't. The checking habit is the same one used for categorising transactions with AI and checking its work, and the label-design thinking is the same as in AI ticket triage for support requests.

If you want help fitting enquiry tagging into how your garage or service business runs, I offer one-to-one AI consultations for small businesses.

When the monthly sheet stops being enough (enquiries need tagging the moment they arrive, not twice a day), the next step is classifying them on arrival with an automation, and keeping the sheet as the log and the audit trail. Before any enquiry text goes into an AI tool, it's also worth deciding what customer data belongs there at all; classifying business data before using AI tools covers that decision. Google's AI function help page lists the current limits, which change as the feature develops.

AI function questions for enquiry tagging

Why does my sheet say "AI function not available"?

Usually because the account isn't on a plan with the AI function, or an administrator has switched it off. Google's help page lists three causes: you're not in the Workspace Experiments programme or not on a Workspace plan with AI functions, your admin settings block it, or your language setting isn't supported. Business Starter, for example, has no access at all.

Can the AI function read my whole spreadsheet?

No. Google's help page says the AI function doesn't have access to your entire spreadsheet or to other files in your Drive. It only sees the prompt and the optional range you give it, which is why each formula should point at the enquiry text cell. Put any extra context, such as your list of services, into the prompt itself.

Does the AI function tag new enquiries automatically?

No. Results appear only when you select the cells and click Generate and Insert, so new rows stay empty until you run them. If the enquiry text in a referenced range changes, Sheets offers Refresh and Insert; if you built the prompt by joining cells with an ampersand, it won't prompt you, and you decide when to refresh.

Can I use =GEMINI() instead of =AI()?

Yes. Google's help page says you can enter either =AI() or =Gemini() in a cell; both are the same function and take the same prompt and optional range. One catch: if you've built your own custom function called AI or Gemini with Apps Script, Sheets remaps it to the built-in AI function, so rename any old custom function first.

Further reads

Sources: Google Docs Editors Help pages on the AI function and the Google Sheets function list; Google Workspace Admin Help on AI usage limits; Google Workspace Help on Gemini usage limits; Google Workspace pricing page; Google AI plans comparison (all read 23 November 2026).

Ready to put AI on the jobs that eat your week?

No data team or big budget needed. In a 1:1 consultation I show small and medium-sized businesses and self-employed people which AI tools they can use, one workflow at a time.

Book a 1:1 call with me