AI Business OS

Complete Setup Guide

Follow this guide step-by-step to get your entire AI audit agency running — from installation to your first client report.

⏱ Estimated setup time: 3–5 hours

0 Prerequisites

Before you begin, make sure you have these accounts and tools ready:

  • A computer (Windows, Mac, or Linux)
  • Python 3.10+ installed (python.org)
  • Node.js 18+ installed (nodejs.org) — for website tools
  • A code editor (VS Code recommended — download)
  • An Anthropic API key for Claude (console.anthropic.com)
  • A Google account (for Forms & Sheets)
  • A Supabase account — free tier is fine (supabase.com)
  • A Telegram account (for the control bot)
  • A Netlify account — free tier (netlify.com)
💡 Don't have all of these yet? No problem. Each step below tells you exactly when and where to create each account.

1 Install & Configure Claude Code

Claude Code is the AI coding assistant that powers the entire system. It can help you modify, debug, and extend every part of this codebase.

Install Claude Code

Terminal # Install Claude Code globally via npm npm install -g @anthropic-ai/claude-code # Verify installation claude --version

Authenticate

Terminal # Log in with your Anthropic API key claude auth login # Or set the key directly export ANTHROPIC_API_KEY="sk-ant-your-key-here"

First Commands to Try

Terminal # Navigate to the project directory cd walkin-ai # Start Claude Code claude # Ask it to explain the project "Explain the project structure and what each folder does" # Ask it to help configure your .env "Help me set up my .env file with all the required keys"
✅ Pro Tip: Claude Code is your co-pilot for this entire setup. If you get stuck on any step, just ask it: "Help me with step X of the setup guide"

2 Configure API Keys & Environment

All configuration is stored in a single .env file. Copy the template and fill in your keys.

Create Your .env File

.env # ═══════════════════════════════════════════════════════════ # Peak Solutions AI Business OS — Environment Configuration # ═══════════════════════════════════════════════════════════ # ── Claude AI (Required) ── ANTHROPIC_API_KEY=sk-ant-your-key-here # ── OpenRouter (Alternative AI provider) ── OPENROUTER_API_KEY=sk-or-your-key-here # ── Supabase (Database & Storage) ── SUPABASE_URL=https://your-project.supabase.co SUPABASE_KEY=your-anon-key-here # ── Google Sheets (CRM sync) ── GOOGLE_CREDENTIALS_FILE=credentials.json GOOGLE_SHEET_ID=your-sheet-id-here # ── Telegram Bot (Control panel) ── TELEGRAM_BOT_TOKEN=your-bot-token-here TELEGRAM_ALLOWED_USERS=your-user-id # ── Email (Outreach & notifications) ── EMAIL_ADDRESS=your-email@gmail.com EMAIL_PASSWORD=your-app-password SMTP_HOST=smtp.gmail.com SMTP_PORT=587 # ── Agency Branding ── AGENCY_NAME=Your Agency Name AGENCY_EMAIL=hello@youragency.com AGENCY_WEBSITE=https://youragency.com
⚠️ Important: Never commit your .env file to Git. It's already in .gitignore but double-check.

Where to Get Each Key

  1. Anthropic API Key: console.anthropic.com/settings/keys — Create a new key, copy it
  2. OpenRouter API Key: openrouter.ai/settings/keys — Optional, used as fallback
  3. Supabase: Create a project → Settings → API → Copy the URL and anon key
  4. Google Sheets: See Step 4 below for the full walkthrough
  5. Telegram Bot: Message @BotFather on Telegram → /newbot → Copy the token
  6. Email: For Gmail, enable 2FA and create an App Password at myaccount.google.com/apppasswords

3 Install Dependencies

Install all Python packages needed to run the pipeline, bot, and outreach system.

Terminal # Navigate to the project cd walkin-ai # Create a virtual environment (recommended) python -m venv venv # Activate it # Windows: venv\Scripts\activate # Mac/Linux: source venv/bin/activate # Install all dependencies pip install -r requirements.txt

Verify Installation

Terminal # Run the connection test python setup/test_connections.py

You should see green checkmarks for each service. Any red X means that API key needs to be fixed in your .env.

4 Set Up Google Form & Sheets CRM

The Google Form collects audit responses from clients. Responses flow into a Google Sheet that acts as your CRM.

Create the 14-Question Audit Form

  1. Go to forms.google.com and create a new form
  2. Title it: "Free AI Business Audit"
  3. Add these 14 questions (all required):
    • Business name, Owner name, Email, Phone
    • Industry / business type
    • Monthly revenue range
    • How do you currently capture leads?
    • Average response time to new inquiries
    • Do you have a follow-up system?
    • What happens when someone contacts you after hours?
    • Do you use any automation tools?
    • How do you currently get reviews?
    • What's your biggest operational challenge?
    • What would saving 10+ hours per week mean for your business?
  4. Link responses to a Google Sheet (Responses tab → green Sheets icon)

Set Up Google Sheets API

  1. Go to Google Cloud Console
  2. Create a project → Enable Google Sheets API & Google Drive API
  3. Create a Service Account → Download the credentials.json file
  4. Share your Google Sheet with the service account email (Editor access)
  5. Place credentials.json in your project root
  6. Copy the Sheet ID from the URL and paste it into .env
💡 The Sheet ID is the long string in the URL: docs.google.com/spreadsheets/d/THIS_IS_THE_ID/edit

5 Set Up Supabase Database

Supabase stores all your audit reports, client data, and powers the live report dashboard.

Create Tables

Go to your Supabase project → SQL Editor → Run this:

SQL -- Audit reports table CREATE TABLE audit_reports ( id UUID DEFAULT gen_random_uuid() PRIMARY KEY, client_id TEXT UNIQUE NOT NULL, business_name TEXT, owner_name TEXT, email TEXT, industry TEXT, overall_score INTEGER, report_data JSONB, created_at TIMESTAMPTZ DEFAULT now() ); -- Enable Row Level Security ALTER TABLE audit_reports ENABLE ROW LEVEL SECURITY; -- Allow public read access (for report dashboard) CREATE POLICY "Public read access" ON audit_reports FOR SELECT USING (true); -- Allow service role full access CREATE POLICY "Service role full access" ON audit_reports FOR ALL USING (auth.role() = 'service_role');

Get Your Keys

  1. Go to Settings → API
  2. Copy Project URL → paste as SUPABASE_URL
  3. Copy anon/public key → paste as SUPABASE_KEY

6 Run Your First Audit

The audit pipeline takes form responses, sends them through Claude AI for analysis, generates a scored report, and delivers it to the client.

Test with a Sample Audit

Terminal # Run a test audit with sample data python setup/e2e_test.py # Or process a real form submission python pipeline/pipeline.py

What the Pipeline Does

  1. Reads new responses from the Google Sheet
  2. Sends responses to Claude for AI analysis
  3. Generates scores across 5 dimensions (Lead Capture, Response Speed, Follow-Up, After Hours, Automation)
  4. Calculates estimated monthly revenue leak
  5. Creates a branded PDF report
  6. Uploads report data to Supabase
  7. Sends the report to the client via email
  8. Updates the Google Sheet CRM with results
✅ Checkpoint: If the test audit runs successfully and you see a report generated in the reports/ folder, your pipeline is working.

7 Deploy Your Website

Your website is a static site that can be deployed for free on Netlify, Vercel, or any static host.

Customize Branding

  1. Replace peak_solutions_logo.png with your logo
  2. Find & replace "Peak Solutions" with your agency name in all HTML files
  3. Update the email address in the footer
  4. Update the Google Form link to your actual form
  5. Update colors in style.css → :root variables

Deploy to Netlify

Terminal # Install Netlify CLI npm install -g netlify-cli # Log in netlify login # Deploy the website folder cd website netlify deploy --prod --dir=.

Or simply drag and drop the website/ folder at app.netlify.com/drop.

💡 Set up a custom domain in Netlify → Domain settings. Point your DNS A record or use Netlify DNS for free HTTPS.

8 Set Up the Telegram Control Bot

The Telegram bot is your command center — trigger audits, check client status, view reports, and manage outreach from your phone.

Create the Bot

  1. Open Telegram and message @BotFather
  2. Send /newbot and follow the prompts
  3. Copy the bot token → paste into .env as TELEGRAM_BOT_TOKEN
  4. Get your user ID: message @userinfobot → copy the ID
  5. Paste your user ID into .env as TELEGRAM_ALLOWED_USERS

Start the Bot

Terminal # Start the Telegram bot python bot/main.py # Or use the startup script that runs everything # Windows: start.bat

Key Bot Commands

  • /start — Show the main menu
  • /audit — Trigger an audit run
  • /clients — View all clients
  • /report [client_id] — Get a specific report
  • /outreach — Send follow-up emails
  • /stats — View pipeline statistics

9 Configure Outreach & Follow-Up

The outreach system automatically follows up with audit recipients to convert them into paying clients.

Email Templates

Pre-built email sequences are in website/emails.md. Customize them with your agency name, services, and pricing.

Follow-Up Schedule

  • Day 0: Audit report delivered (automatic)
  • Day 1: "Did you get a chance to review your report?"
  • Day 3: "Here's what businesses like yours typically do next"
  • Day 7: "Your audit expires soon — book a call"
💡 The follow-up scheduler runs automatically when the bot is active. You can also trigger it manually with /outreach.

10 Go Live Checklist

Run through this checklist before you start sending traffic:

  • All API keys are working (python setup/test_connections.py passes)
  • Google Form is live and linked to your Google Sheet
  • Test audit runs end-to-end with a real email
  • PDF report is generated and looks correct
  • Supabase stores the report data
  • Live report dashboard loads at your URL
  • Website is deployed and accessible
  • Google Form link on the website goes to the correct form
  • All branding is customized (logo, name, colors, email)
  • Telegram bot is running and responding to commands
  • Email delivery is working (check spam folder)
  • Follow-up emails are customized with your content
🎉 You're live! Start driving traffic to your audit form — post it on social media, send it to your network, or run ads to the landing page. Every form submission becomes a qualified lead in your pipeline.

Next Steps

  • Check your Prompt Pack for AI prompts you can use daily
  • Join the community (Pro & Done-With-You tiers)
  • Set up lead scraping tools to find potential clients proactively
  • Run your first outreach campaign