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 hours0 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)
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
# Install Claude Code globally via npm
npm install -g @anthropic-ai/claude-code
# Verify installation
claude --version
Authenticate
# 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
# 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"
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
# ═══════════════════════════════════════════════════════════
# 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
.env file to Git. It's already in .gitignore but double-check.
Where to Get Each Key
- Anthropic API Key: console.anthropic.com/settings/keys — Create a new key, copy it
- OpenRouter API Key: openrouter.ai/settings/keys — Optional, used as fallback
- Supabase: Create a project → Settings → API → Copy the URL and anon key
- Google Sheets: See Step 4 below for the full walkthrough
- Telegram Bot: Message @BotFather on Telegram →
/newbot→ Copy the token - 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.
# 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
# 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
- Go to forms.google.com and create a new form
- Title it: "Free AI Business Audit"
- 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?
- Link responses to a Google Sheet (Responses tab → green Sheets icon)
Set Up Google Sheets API
- Go to Google Cloud Console
- Create a project → Enable Google Sheets API & Google Drive API
- Create a Service Account → Download the
credentials.jsonfile - Share your Google Sheet with the service account email (Editor access)
- Place
credentials.jsonin your project root - Copy the Sheet ID from the URL and paste it into
.env
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:
-- 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
- Go to Settings → API
- Copy Project URL → paste as
SUPABASE_URL - 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
# 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
- Reads new responses from the Google Sheet
- Sends responses to Claude for AI analysis
- Generates scores across 5 dimensions (Lead Capture, Response Speed, Follow-Up, After Hours, Automation)
- Calculates estimated monthly revenue leak
- Creates a branded PDF report
- Uploads report data to Supabase
- Sends the report to the client via email
- Updates the Google Sheet CRM with results
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
- Replace
peak_solutions_logo.pngwith your logo - Find & replace "Peak Solutions" with your agency name in all HTML files
- Update the email address in the footer
- Update the Google Form link to your actual form
- Update colors in
style.css→:rootvariables
Deploy to Netlify
# 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.
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
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy the bot token → paste into
.envasTELEGRAM_BOT_TOKEN - Get your user ID: message @userinfobot → copy the ID
- Paste your user ID into
.envasTELEGRAM_ALLOWED_USERS
Start the Bot
# 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"
/outreach.
10 Go Live Checklist
Run through this checklist before you start sending traffic:
- All API keys are working (
python setup/test_connections.pypasses) - 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
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