Tutorial

How to Build Auto-Generated Demo Sites for Leads

Auto-build demo websites for businesses without websites, deploy to GitHub Pages, and use as cold outreach material.

An r/Entrepreneurs thread suggested building demo sites for businesses without websites and using them as cold outreach. This tutorial automates the pipeline: find lead → get business info → generate site → deploy → outreach.

Prerequisites

  • Scavio API key
  • GitHub account with Pages enabled
  • Template site generator (Hugo, 11ty, or plain HTML)

Walkthrough

Step 1: Fetch business data

Use Scavio to get business info from Google.

Python
import requests, os
H = {'x-api-key': os.environ['SCAVIO_API_KEY']}

def get_business_info(business_name, location):
    return requests.post('https://api.scavio.dev/api/v1/search',
        headers=H,
        json={'platform': 'google', 'query': f'{business_name} {location}'}).json()

Step 2: Generate the demo site

Fill a template with business data.

Python
def generate_site(business):
    template = open('template.html').read()
    return template.replace('{{name}}', business['title'])\
        .replace('{{phone}}', business.get('phone', ''))\
        .replace('{{address}}', business.get('address', ''))\
        .replace('{{hours}}', business.get('hours', 'Call for hours'))

Step 3: Deploy to GitHub Pages

Push each demo site to a GitHub Pages subdirectory.

Python
import subprocess
def deploy(slug, html):
    path = f'demos/{slug}/index.html'
    os.makedirs(f'demos/{slug}', exist_ok=True)
    with open(path, 'w') as f:
        f.write(html)
    subprocess.run(['git', 'add', path])
    subprocess.run(['git', 'commit', '-m', f'add demo: {slug}'])
    subprocess.run(['git', 'push'])

Step 4: Send outreach with demo link

Email with the live demo site as the pitch.

Text
# The demo site IS the pitch
# Subject: I made a website for {business_name} (free preview)
# Body: Link to the live demo + offer to customize
# No PDF, no deck, just a working website

Python Example

Python
# Pipeline: Google Maps → filter no-website → generate demo → deploy → email
# Cost: $0.005 per business lookup + free GitHub Pages hosting
# 100 demos = $0.50 in API cost + 2 hours of pipeline time

JavaScript Example

JavaScript
// Same pattern with Node.js + Octokit for GitHub deployment.

Expected Output

JSON
Auto-generated demo websites for businesses without web presence, deployed to GitHub Pages, with cold outreach email templates.

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Scavio API key. GitHub account with Pages enabled. Template site generator (Hugo, 11ty, or plain HTML). A Scavio API key gives you 500 free credits per month.

Yes. The free tier includes 500 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

Auto-build demo websites for businesses without websites, deploy to GitHub Pages, and use as cold outreach material.