AI for Growth

I Built a CRM with AI for $0 — Here's Exactly How

I was paying for CRM software I barely used. So I described my business to an AI agent. Nine minutes later, it had architected an 8-table relational database, implemented row-level security, created automated triggers that enroll leads into email sequences and update deal stages — and deployed the whole thing to production. No monthly fee. Ever.

February 22, 2026 · Espen · 14 min read
Small businesses spend $300-500/month on CRM software — and most use less than 20% of the features.

I described my business problem to an AI agent. It designed the schema, wrote the security policies, built the automation triggers, deployed to Supabase, and connected my email system. It cost $0. Here's exactly what happened, and how you can do the same.

Why I Ditched HubSpot

Let me be honest about something: I was paying for a CRM I didn't need.

Not in the "oh I could probably downgrade" sense. In the "I'm using 15% of this software and paying full price" sense. I had a contact list. I tracked some deals. I sent some emails. That was it.

I didn't need the marketing automation suite. I didn't need the custom reporting dashboards. I didn't need the app marketplace with 1,400 integrations. I needed a place to store leads, track conversations, follow up on deals, and send emails when someone signed up for something.

That's not a $300/month problem. That's a spreadsheet problem. Except spreadsheets don't have automated triggers, they don't enforce data consistency, and they fall apart the moment two people try to use them at the same time.

So I was stuck in the gap between "too simple for a spreadsheet" and "too expensive for what I actually use." Which is exactly where most small business owners live. You need some structure around your leads and deals, but you don't need an enterprise platform built for 500-person sales teams.

Then I realized something: I have an AI agent. Not a chatbot — an agent that can understand business requirements, design systems, write code, deploy infrastructure, and connect services. What if I just... described what my business needed and let it build the whole thing?

What I Asked AI to Build

I didn't write a technical specification. I didn't draw wireframes. I didn't create user stories. I opened my AI agent and described what my business needed — the same way you'd brief a new hire on their first day.

Here's roughly what I said:

The Business Problem (Plain English)

I need a CRM for my business. People come through my website — 
they download guides, register for workshops, fill out forms. 

When someone downloads a lead magnet, they should automatically
enter a welcome email sequence. When someone registers for a 
workshop, the sales emails should pause. When a deal closes, 
the lead's stage should update automatically.

I need to track every interaction, manage a deal pipeline, 
segment contacts with tags, and see which content drove each 
lead. Deploy it on Supabase. Make it production-ready.

That was it. No SQL. No schema diagrams. No technical jargon. I described a business problem — not a database specification.

And here's what makes this genuinely different from "asking AI to write code": the agent understood my business logic. It knew that when someone downloads a lead magnet, they should enter a welcome sequence. It knew that when someone registers for a workshop, the sales emails should pause so you don't pitch someone who just bought. It knew that when a deal closes, the lead's stage should update automatically. These aren't prompts I engineered. These are business rules the agent understood and implemented as database triggers, foreign key relationships, and automated workflows.

I described a business problem. The agent delivered infrastructure. That's the agentic difference.

Two years ago, this would have required hiring a developer, writing a spec document, going through multiple iterations, and spending weeks (and thousands of dollars) getting to something usable. And you'd spend most of that time explaining your business context — why leads should be auto-enrolled, why sequences should pause, how deal stages relate to contact stages. The agent already understood all of that.

What It Built: 8 Tables, Explained Simply

If you've ever used a spreadsheet, you understand tables. A database table is just a spreadsheet with rules — it enforces that certain columns always have data, that relationships between sheets stay consistent, and that nobody can accidentally delete something important.

Here's what AI built for me, in business terms:

1. Contacts

The master list. Every person who's ever interacted with your business lives here. Name, email, phone, company, where they came from (Google? Facebook ad? Referral?), and when they first showed up. Think of it as your address book with superpowers.

2. Interactions

Every touchpoint with every contact. Sent them an email? Logged. Had a call? Logged. They attended a webinar? Logged. This is the table that answers "what's the last thing that happened with this person?" — the question every salesperson asks ten times a day.

3. Deals

Your pipeline. Each deal has a contact, a value, a stage (new → contacted → proposal → negotiation → won/lost), and an expected close date. This is where you answer "how much revenue is in the pipeline?" and "which deals need attention this week?"

4. Email Sequences

Automated email series. When someone downloads your lead magnet, they enter a sequence — email 1 on day 0, email 2 on day 3, email 3 on day 7, and so on. The table stores the sequence name, the individual emails, their order, and the delay between them.

5. Sequence Enrollments

Tracks who's in which sequence and where they are. "Sarah downloaded the guide on Tuesday. She received email 1 immediately and email 2 yesterday. Email 3 goes out tomorrow." This is the table that makes drip campaigns work without you manually hitting send.

6. Tags

Labels you can attach to any contact. "Workshop attendee." "High value." "Referred by James." "Interested in SEO." Tags let you segment your contacts and send targeted messages. Simple concept, powerful in practice.

7. Contact Tags

The link between contacts and tags. One contact can have many tags. One tag can belong to many contacts. This junction table (the only slightly technical concept here) makes that many-to-many relationship work cleanly.

8. Page Views

Which pages on your website each contact visited before they became a lead. "This person read three blog posts about email marketing before signing up." Gold for understanding what content drives conversions and tailoring your follow-up to what they actually care about.

Every table came with automatic timestamps (created and updated), proper indexes for fast lookups, and row-level security so data is protected at the database level.

But the tables were just the foundation. What made this agentic — not just "AI-generated SQL" — was what the agent built between the tables:

The agent didn't just write code. It architected a production system — one that understands when to send emails, when to pause them, and how deals and leads and sequences all connect.

This CRM is one piece of a larger AI growth system. I've documented the full approach — ads, SEO, email, analytics — in a free step-by-step breakdown. It's how we went from 0 to 100+ daily visitors in 14 days.

The 9-Minute Build

I timed it. From the moment I described my business problem to the moment I had a fully deployed, production-ready CRM: 9 minutes.

Let me break down what the agent actually did in those 9 minutes:

Not "generated SQL I had to copy-paste." The agent deployed the infrastructure, connected the services, and verified it worked. I watched tables appear in my Supabase dashboard — populated with the right triggers, secured with the right policies, connected to my email system.

I want to put this in context. I've worked with developers. Getting a database schema from brief to deployed usually takes:

Approach Time Cost
Freelance developer 1-2 weeks $1,000-3,000
Agency 3-6 weeks $5,000-15,000
In-house dev team 1-2 sprints Salary overhead
AI + Supabase 9 minutes $0

Nine minutes. And it wasn't a hacky prototype I needed to clean up. The agent delivered production-grade infrastructure — security policies, performance indexes, automated business logic, connected services. The things developers usually add in version two or three? The agent shipped them in version one, because it understood they were part of the business requirement, not a technical afterthought.

What It Does Daily

A CRM is only useful if it actually works in your daily workflow. Here's what mine handles:

Lead Tracking

Every time someone signs up through my website — downloads a guide, registers for a workshop, fills out a contact form — they automatically appear in the contacts table with their source tracked. I know exactly where every lead comes from, which matters when you're running ads and SEO simultaneously and need to know what's actually working.

Automated Email Sequences

New leads enter an email sequence automatically — because the agent built database triggers that handle enrollment. Download a lead magnet? Welcome sequence starts. Register for a workshop? Sales sequence pauses (because you don't pitch someone who just bought). I wrote the emails once. The system — the system the agent built — sends them forever. No manual work per lead.

The sequence enrollment table tracks where each person is, what they've received, and what's coming next. A Supabase Edge Function (also built by the agent) checks the table on a schedule and fires off emails through Resend. Total infrastructure cost: $0 (Supabase free tier + Resend's free tier of 100 emails/day).

Pipeline Management

Deals move through stages: new → contacted → proposal → negotiation → won/lost. At any moment I can query "show me all deals in the proposal stage worth more than $1,000" and get an instant answer. No clicking through a UI, no scrolling through dashboards. One query, one answer.

Interaction History

Every email sent, every call made, every meeting held gets logged against the contact. When I'm about to follow up with someone, I can see the complete history: when we first connected, every touchpoint since, and the current deal status. Context makes follow-ups personal, and personal follow-ups close deals.

Segmentation via Tags

Tags let me slice my contact list any way I want. "Show me everyone who attended the February workshop AND hasn't started a deal." "Show me all contacts tagged 'high-value' who haven't been contacted in 30 days." These segments drive targeted outreach that converts better than mass emails.

Content Attribution

The page views table connects the dots between content and revenue. I can see that a lead read three blog posts about SEO before signing up, which tells me that SEO content is driving conversions — not just traffic. This is the kind of insight that HubSpot charges enterprise prices for.

The Honest Downsides

I could write a post that makes this sound perfect. It isn't. If you're considering building a CRM with AI instead of paying for one, here's what you should know.

No fancy UI. HubSpot has a beautiful interface. Salesforce has drag-and-drop pipelines. My CRM has the Supabase dashboard — which is functional but looks like a database admin tool, because that's what it is. You're looking at rows and columns, not pretty cards and kanban boards. If you need visual polish, this isn't for you.
You need some comfort with databases. You don't need to be a developer. But you need to understand what a table is, what a row is, and how to navigate a database dashboard. If the word "SQL" makes you break out in hives, you'll want someone to help you set this up. The build is easy — AI handles that. The ongoing use requires spreadsheet-level database comfort.
No mobile app. HubSpot has an app. Salesforce has an app. My CRM has a responsive web interface through Supabase. It works on mobile, but it's not a polished app experience. If you live on your phone and need push notifications when a deal moves stages, stick with commercial CRM software.
Integrations require work. Want to connect your CRM to Calendly? Stripe? Your website forms? Each integration needs to be built — either through Supabase Edge Functions, webhooks, or a tool like Zapier. Commercial CRMs have native integrations. Yours won't, unless you build them.
You're the support team. Something breaks at 2am? That's your problem. There's no support ticket to file, no chat widget to click. You need to be comfortable troubleshooting (or asking AI to troubleshoot for you — which, honestly, works surprisingly well).

So who is this for? Business owners who:

If that's you, keep reading. Here's exactly how to build yours.

How You Can Build Yours

This is the step-by-step. Follow it and you'll have a working CRM in under an hour.

Step 1: Create a Supabase Account

Go to supabase.com and sign up. It's free. Create a new project — give it a name like "my-crm" and choose a strong database password. Save that password somewhere safe.

Supabase's free tier gives you 500MB of storage, 50,000 monthly active users, and unlimited API requests. For a small business CRM, you'll use maybe 1% of that capacity.

Step 2: Open the SQL Editor

In your Supabase dashboard, click "SQL Editor" in the left sidebar. This is where you'll paste the code AI generates. Think of it as the command center — you type instructions, and the database executes them.

Step 3: Give AI Your Requirements

Open your AI agent — Claude Code, Claude chat, ChatGPT, whatever you use. Describe your business and what you need. Don’t write a technical spec — describe the business problem. Here’s a template:

Describe Your Business Problem — Copy & Customize

I run a [YOUR BUSINESS TYPE]. Build me a complete CRM on Supabase.

Here's how my business works:
- People find me through [HOW YOU GET LEADS]
- When someone [TRIGGER], they should automatically [ACTION]
- When someone [TRIGGER], the [SEQUENCE] should pause
- When a deal closes, [WHAT SHOULD HAPPEN]
- I need to track every interaction and see which content
  drove each lead

I need: contacts, interactions, deals with pipeline stages,
automated email sequences, tags for segmentation, and
content attribution.

Make it production-ready. Deploy to Supabase with row-level
security, proper relationships, and automated triggers that
handle the business logic I described above.

Step 4: Review the Output

AI will generate several hundred lines of SQL. You don't need to understand every line, but scan for the basics:

If something's off, just tell AI: "Change the deal stages to: inquiry, demo, proposal, contract, closed-won, closed-lost." It'll regenerate.

Step 5: Paste and Run

Copy the SQL, paste it into the Supabase SQL editor, and click "Run." You'll see your tables appear in the Table Editor within seconds. Click through them — you should see empty tables with all your columns, ready for data.

Step 6: Add Your First Contact

Go to the Table Editor, click on your contacts table, and click "Insert row." Add yourself as a test contact. Then go to the interactions table and log a test interaction linked to your contact. Check that the relationships work — the interaction should reference your contact's ID.

Step 7: Connect It to Your Business

This is the part that takes the most time (and is the most valuable). You need to connect your CRM to your actual workflow:

Each of these integrations can also be built with AI. Just describe what you want connected and how.

Pro tip: Start simple. Use the Supabase dashboard manually for the first week. Add contacts by hand. Log interactions yourself. Get familiar with the data model before you automate anything. Automation built on a workflow you don't understand is automation that breaks.

Customizing for Your Business

The prompt above builds a general-purpose CRM. But the real power is customization. Here are some variations you can ask AI for:

Just add a line to the prompt: "Also include a [table name] table that tracks [what you need]." AI will integrate it with the rest of the schema, including proper relationships and security.

Frequently Asked Questions

Q: Can you really build a CRM with AI for free?

Yes. Supabase's free tier gives you a full PostgreSQL database with 500MB storage, authentication, and API access. An AI agent can design your schema, implement security policies, build automation triggers, deploy everything, and connect your email system. The only cost is the AI tool — and many have free tiers too.

Q: Is a custom CRM as good as HubSpot or Salesforce?

It depends on what you need. For small businesses tracking leads, deals, interactions, and email sequences, a custom CRM handles the core workflow perfectly. You won't get the polished UI, mobile app, or marketplace integrations — but you also won't pay $300-500/month for features you never use.

Q: Do I need to know how to code?

No coding required. You do need basic comfort with databases — understanding what tables and rows are, and being able to navigate the Supabase dashboard. Think spreadsheet-level familiarity, not developer-level expertise. If you can use Google Sheets, you can use Supabase's Table Editor.

Q: What happens when I outgrow the free tier?

Supabase's paid tier starts at $25/month for 8GB storage and more compute. That's still a fraction of HubSpot or Salesforce. And because your data lives in a standard PostgreSQL database, you can migrate anywhere if you ever want to — you're never locked in.

Q: How long does it really take?

The database generation takes under 10 minutes. Expect to spend another 30-60 minutes testing, adjusting fields to your business, and learning the Supabase interface. Connecting it to your website and email will take a few more hours. Total from start to daily use: one afternoon.

Q: What if something breaks?

Tell the agent. Seriously. Describe the problem and let it investigate — it can read the database logs, identify the issue, and fix it. Infrastructure the agent built is infrastructure the agent can debug. I've had issues come up three or four times since building mine, and every time the agent diagnosed and fixed it within minutes.

Free: The AI Growth Breakdown

See how one business went from 0 to 100+ daily visitors in 14 days using AI agents. The exact tools and results.

Get the Free Breakdown →