Preview Markdown export
# Workflow readiness check: Run a small-business CRM in Google Sheets with AI-written Apps Script
For a 1–5 person services business: a structured Google Sheet plus a short Apps Script (written and debugged with Claude or ChatGPT) gives you a pipeline, follow-up reminders and a daily email digest without a paid CRM seat. Try HubSpot's free CRM first if you don't want to maintain anything.
Workflow: /workflows/small-business-crm-in-google-sheets
Catalog data version: cca9a9017311
Workflow last reviewed: 2026-10-21
This is a local, deterministic check against curated catalog data. Ownership, plan access and test results are self-reported, not independently verified.
## Required tools
- Google Workspace — plan not specified
Tool not selected as owned. Purpose: Google Sheets holds the data; Apps Script adds the timestamps, follow-up view and digest; MailApp sends the email. A free Gmail account also works, with lower email quotas.
## Optional tools (do not block required-tool matching)
- Claude — plan not specified
Tool not selected as owned. Purpose: Writes, adapts and debugs the Apps Script and formulas for your exact columns.
- ChatGPT — plan not specified
Tool not selected as owned. Purpose: Alternative to Claude for writing and debugging the script.
## Technical skill
Selected: Not selected. Workflow requires: Comfortable with apps.
Choose a skill level before assessing the skill requirement.
## Good fit for
- Agencies, consultants, studios, trades and other services firms with 1–5 people selling
- Fewer than a few thousand open contacts and a few dozen open deals at a time
- Teams already living in Google Workspace who want follow-up discipline more than automation
- Founders who outgrew a to-do list but find a CRM's per-seat price hard to justify
## Not a fit for
- More than ~5 people selling at once — concurrent edits, ownership rules and permissions get messy in a shared sheet
- Teams that rely on automatic email/calendar sync, open/click tracking or sales sequences — a sheet has none of these
- Anyone who needs forecasting, weighted pipeline by rep, quotas or multi-currency reporting out of the box
- Regulated businesses that need a tamper-evident audit trail, field-level permissions or data-retention controls (a sheet's version history is not a compliance audit log)
- People who will not maintain a script — if nobody owns it, start with HubSpot's free CRM instead
## Curated steps
### 1. Decide whether you should build this at all
Before building, check two cheaper options:
- **HubSpot's free CRM** is free with no expiry and covers **up to 2 users and 1,000 contacts** (per HubSpot's product page), including deal pipelines and email tracking. If you're two people with under 1,000 contacts, it's the no-maintenance choice.
- **Your current CRM's export.** Export deals and contacts to CSV now (every major CRM supports it). You need this file either way.
Build the sheet if you're 3–5 people, you've hit the free tier's limits, or you want something you fully control.
### 2. Create the sheet structure
Create a new Google Sheet called **CRM** and add the tabs from the *Sheet schema* artifact: **Deals**, **Companies**, **Activities**, **Lists**.
1. Type the Deals headers **exactly** as listed (the script finds columns by header name, so order doesn't matter but spelling does). Before entering or pasting Deal IDs, select the Deal ID column (`Deals!A:A` in this schema) and choose **Format → Number → Plain text**.
2. Fill **Lists** with your stages, lead sources and team emails. Keep `Won` and `Lost` spelled exactly.
3. Add data validation (**Data → Data validation**):
- `Deals!F2:F` → *Dropdown (from a range)* `Lists!A2:A`, *Reject the input*
- `Deals!E2:E` → dropdown from `Lists!C2:C`
- `Deals!I2:I` → *Is valid date*
- `Deals!D2:D` → *Text is valid email*
4. **View → Freeze → 1 row** on every tab, and turn on a filter (**Data → Create a filter**) on Deals.
### 3. Import your existing data
Open your CRM export in a separate tab, then map it into Deals:
- Preserve each unique source CRM Deal ID as text. If no usable ID exists, have one designated owner assign a literal ID once using an append-only register. Check for blanks and duplicates before recording activities or changing stages. Do not use row numbers or formulas as permanent keys.
- Paste each column under the matching header. Use `=PROPER(TRIM(B2))` style helpers to clean names, then *Paste special → Values only*.
- Make sure **Stage** values match the Lists tab exactly. Find mismatches with `=FILTER(F2:F, ISNA(MATCH(F2:F, Lists!A2:A, 0)), F2:F<>"")`.
- Convert follow-up dates to real dates (they should right-align). If they're text, use `=DATEVALUE()` or ask your AI assistant for a formula that handles your export's format.
- Leave **Stage changed at** and **Created at** blank — the script fills them from now on. If you want history, paste the old CRM's stage-change dates there once.
Keep the raw export in a hidden tab called `_import` for 90 days in case you need to check something.
### 4. Install the Apps Script
1. **Extensions → Apps Script**, delete the placeholder, paste the *Apps Script* artifact, and **Save**.
2. **Project Settings** (gear icon) → set the **time zone** to yours. The digest runs at `DIGEST_HOUR` in that zone.
3. Reload the spreadsheet. A **CRM** menu appears.
4. Run **CRM → Set up (run once)** and approve the permissions Google asks for (Sheets, sending email as you, running triggers).
5. Test: change a deal's Stage. Within a second or two **Stage changed at** fills in and a row appears in **Stage log**.
6. Run **CRM → Send follow-up digest now** with one overdue test deal assigned to yourself.
Why two kinds of trigger: `onEdit` is a *simple trigger*, so it runs without authorisation but **cannot send email**, is limited to 30 seconds and **does not fire for edits made by scripts or the API**. The digest uses an *installable* time-driven trigger, which can send mail.
### 5. Adapt it with an AI assistant instead of hand-coding
When you want a change (an extra column, a weekly pipeline summary, a different stage list), paste the whole script plus your header row into Claude or ChatGPT with the **Modify the CRM script** prompt. Rules that keep this safe:
- Always give the assistant your **exact header row** — most bugs are mismatched column names.
- Ask for the **complete file** back, not a fragment, and keep the previous version — the simplest habit is pasting the old script into a dated Google Doc before replacing it.
- Test on a **copy** of the spreadsheet (**File → Make a copy** copies the script too) before changing the live one.
- If you get an error, paste the exact message from **Executions** (left sidebar in the Apps Script editor) using the **Debug an Apps Script error** prompt.
### 6. Run both systems in parallel for one week, then cancel
Keep the old CRM read-only for a week while the team works only in the sheet. Every day, check the digest against what the old CRM would have reminded you about. When the verification checklist passes, export a final full backup from the old CRM, store it in Drive, then downgrade or cancel. Put a monthly 10-minute calendar reminder to archive Won/Lost deals older than 12 months to an `Archive` tab so the sheet stays fast. Move the entire deal row with its original literal Deal ID; keep Activities and Stage log linked to that ID. Never renumber remaining deals or reuse IDs from Archive.
## Curated prompts
### Modify the CRM script
Safely change the Apps Script for a new column, rule or report.
````
You are an experienced Google Apps Script developer. Below is my CRM spreadsheet's current Apps Script and the exact header row of my {{sheet_name}} tab.
Header row (tab-separated, exact spelling):
{{header_row}}
Current script:
```javascript
{{current_script}}
```
Change request: {{change_request}}
Rules:
- Return the COMPLETE updated script in one code block, not a diff.
- Find columns by header name, never by hard-coded column number.
- Keep onEdit as a simple trigger: no MailApp, GmailApp or other services that need authorisation inside it.
- Stay within Apps Script quotas (6 minutes per execution; MailApp recipient limits) and read/write ranges in bulk where possible.
- After the code, list: (1) what changed, (2) any new permission Google will ask for, (3) a 3-step manual test I can run on a copy of the sheet.
````
### Debug an Apps Script error
Turn an error from the Executions log into a fix.
````
My Google Apps Script for a Sheets CRM fails. Explain the cause in plain English, then give the corrected function(s).
Function that failed: {{function_name}}
Trigger type: {{trigger_type}}
Exact error message and line from Executions:
{{error_message}}
Header row of the tab it reads:
{{header_row}}
Relevant code:
```javascript
{{code_snippet}}
```
If the cause is a permissions, quota or simple-trigger restriction rather than a code bug, say so and tell me what to change in the setup instead.
````
### Weekly pipeline review from a CSV export
Get a short pipeline review without a CRM reporting module.
```
Here is this week's export of my Deals tab as CSV (columns include Stage, Value, Owner, Next follow-up, Stage changed at, Created at):
{{deals_csv}}
Today is {{today}}. Our stages in order are: {{stage_order}}.
Produce:
1. Open pipeline value and deal count by stage (table).
2. Deals with no Next follow-up date, or a follow-up more than 7 days overdue (table: Company, Owner, days overdue).
3. Deals that have sat in the same stage for more than {{stale_days}} days, using Stage changed at.
4. Won and Lost this week, with lost reasons.
5. Three specific actions for the team, each naming a deal.
Use only the data provided. If a value is missing or ambiguous, say so instead of guessing.
```
## Verification checklist (0/9 checked by you)
- [ ] All open deals from the old CRM are in Deals: row count matches the old CRM's open-deal count, and total open Value matches within rounding.
- [ ] Every Deal ID is nonblank, unique and stored as a literal. In a copy, sorting, inserting/deleting an unrelated row and archiving a deal leave its Activities and Stage log associated with the same ID.
- [ ] Changing a Stage in the sheet fills 'Stage changed at' within a few seconds and appends a row to 'Stage log' showing the old and new stage.
- [ ] A test deal with yesterday's follow-up date turns red, one dated today turns amber, and both appear on the 'Follow-ups due' tab; a Won deal with an old date does not appear.
- [ ] 'CRM → Send follow-up digest now' delivers an email to each owner listing only their overdue/due-today deals, with a working link to the sheet.
- [ ] The time-driven trigger shows in Apps Script → Triggers, and the digest arrived unprompted on at least 3 consecutive mornings.
- [ ] Every teammate has logged at least one deal and one activity without help, and nobody needed the old CRM during a full week of parallel running.
- [ ] A complete CSV export of the old CRM (contacts, companies, deals, notes) is saved in a restricted Drive folder before cancelling.
- [ ] A named trigger owner and successor are documented. If ownership changes, the prior trigger is retired and the successor verifies scheduled delivery from their own account; ambiguous partial sends are investigated before reruns.
## Limitations
- No email or calendar sync: emails and meetings are not logged automatically; people must add a line to Activities or the Notes column.
- No sequences, open/click tracking or meeting-booking links — those need a CRM or a separate tool.
- Simple onEdit triggers do not fire for changes made by scripts, the Sheets API, Zapier-style integrations or form submissions, so those rows get no stage timestamp.
- Shared-sheet permissions are all-or-nothing per tab/range: anyone with edit access can see and change every deal.
- MailApp limits: 100 email recipients/day on a free Google account and 1,500/day on Google Workspace; triggers share a daily runtime quota (90 min consumer, 6 h Workspace).
- Reporting is whatever you build: pivot tables, charts or a Looker Studio dashboard — there's no forecasting engine.
- The digest's date logic uses the script's time zone; teammates in other time zones receive it at that zone's hour.
- Deal IDs are a manual integrity rule: this sample script neither creates immutable IDs nor rejects blanks/duplicates. Check them before activity logging or stage edits, and preserve the same literal when sorting, moving or archiving a row.
## Risks
- medium · functionality_loss: You lose automatic activity capture, mobile CRM apps, email tracking and built-in reports. Follow-up discipline depends on people updating the sheet.
- medium · reliability: Header changes can break the script. Installable triggers run as their creator, and another account cannot see that creator's triggers. Before an owner leaves, name a successor using their own account, retire the old owner's trigger, authorize the successor and verify scheduled delivery. Do not use shared admin credentials. This sample has no durable delivery ledger: investigate partial sends before rerunning a digest, since some owners may already have received it.
- medium · security: Customer contact details sit in a spreadsheet that can be shared or downloaded with a click. Restrict sharing to named people, disable 'Viewers and commenters can download, print and copy', and never share by link.
- low · compliance: Sheets version history is not a tamper-proof audit log, and deletion/retention requests (e.g. GDPR erasure) must be handled manually across tabs, the Stage log and version history.
- low · migration_complexity: Importing from a CRM is mostly copy-paste, but activity history and attachments rarely export cleanly. Keep the final CRM export archived.
## Before deciding to cancel
Test this workflow alongside your current tool on real work. Ticked boxes record your own checks, not proof that cancellation is safe. Review the limitations, exports, access and renewal terms before deciding.
## Evidence and sources
### Workflow evidence
Evidence status: editorial
No verification date listed.
Script written for this workflow and reviewed for Apps Script trigger/quotas rules as documented today; test on a copy before using on live data. The example scenario is illustrative; its Pipedrive price comes from the Pipedrive catalog record (verified 2026-10-14). Bounded 2026-10-21 Codex review: replaced the row-position ID formula with immutable literal IDs and clarified named trigger ownership/partial-send limits. The embedded Apps Script and old pricing/quotas are unchanged and were not newly verified. All rehearsal checks remain proposed, not executed.
- HubSpot free CRM product page: https://www.hubspot.com/products/crm (accessed 2026-10-13) — Free with no expiration; up to two users and 1,000 contacts; includes deal pipelines and email tracking.
- Apps Script simple triggers — restrictions: https://developers.google.com/apps-script/guides/triggers (accessed 2026-10-13) — Simple triggers can't use services requiring authorisation (e.g. sending email), 30-second limit, not fired by script/API edits.
- Apps Script quotas: https://developers.google.com/apps-script/guides/services/quotas (accessed 2026-10-13) — Email recipients/day: 100 consumer, 1,500 Workspace; trigger runtime 90 min/day consumer, 6 h/day Workspace; 6 min per execution.
- Pipedrive pricing: https://www.pipedrive.com/en/pricing (accessed 2026-10-13) — Returned HTTP 403 to this workflow's fetch on 2026-10-13. The Growth price quoted here comes from the Pipedrive catalog record, verified on pipedrive.com on 2026-10-14.
- HubSpot Sales Hub pricing: https://www.hubspot.com/pricing/sales (accessed 2026-10-13) — Page loaded without visible prices; paid-plan prices not verified.
- Google Sheets ROW function: https://support.google.com/docs/answer/3093316?hl=en (accessed 2026-10-21) — ROW returns the referenced/current row number, not an immutable business identifier. Literal IDs and the register procedure are editorial integrity measures.
- Google Apps Script installable triggers: https://developers.google.com/apps-script/guides/triggers/installable (accessed 2026-10-21) — Triggers run under the account that created them; another account cannot see that creator's triggers. Named-successor, retirement and delivery checks are editorial handover measures.
- Google Sheets cell number formatting: https://support.google.com/docs/answer/56470?hl=en (accessed 2026-10-21) — Select the cell range, then Format → Number to apply formatting. Preformatting the Deal ID column as text is an editorial integrity precaution; no sheet pilot executed.
- Google Sheets text and numeric format types: https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#NumberFormatType (accessed 2026-10-21) — TEXT is a distinct number-format type. The workflow keeps IDs literal; no custom validation or script change.
Catalog evidence describes the workflow and plan records; it does not verify your account, current vendor terms or your completed tests. Recheck the linked sources before acting.
Catalog version: cca9a9017311 · Workflow reviewed: 2026-10-21 · Evidence: editorial. The export includes the source links; confirm current vendor terms before acting.