Lead Enrichment and Scoring
Module 18 · business · intermediate
demo-sites.js
// Three fake company homepages so enrichment can be tested offline and deterministically.
// GET /webhook/course-18-demo-sites/demo-sites/<site>
const SITES = {
'acme-dental': `<!doctype html><html><head>
<title>Acme Family Dental | Dentist in Austin, TX</title>
<meta name="description" content="Gentle family and cosmetic dentistry in Austin. Same-week appointments, most insurance accepted.">
<link rel="stylesheet" href="/wp-content/themes/dental/style.css">
<script src="https://www.googletagmanager.com/gtag/js?id=G-TEST"></script>
</head><body>
<h1>Your Neighborhood Dentist Since 2009</h1>
<p>Acme Family Dental offers cleanings, implants, Invisalign and emergency dental care for the whole family. 3 locations across Austin.</p>
<a href="https://calendly.com/acme-dental/new-patient">Book an appointment</a>
<p>Call us: (512) 555-0142 · hello@acmedental.example</p>
<p>We're hiring! See our <a href="/careers">careers</a> page for hygienist and front desk roles.</p>
<a href="https://www.linkedin.com/company/acme-family-dental">LinkedIn</a> <a href="https://www.facebook.com/acmedental">Facebook</a>
<address>1200 Congress Ave, Austin, TX 78701</address>
</body></html>`,
'byte-saas': `<!doctype html><html><head>
<title>ByteLedger – Accounting software for e-commerce brands</title>
<meta name="description" content="Automated bookkeeping for Shopify and Amazon sellers.">
<script type="text/javascript" id="hs-script-loader" src="//js.hs-scripts.com/123456.js"></script>
</head><body>
<h1>Close your books in hours, not weeks</h1>
<p>ByteLedger syncs Shopify, Amazon and Stripe into clean accounting. Trusted by 1,200 online brands.</p>
<p>We're hiring engineers and customer success managers.</p>
<a href="https://www.linkedin.com/company/byteledger">LinkedIn</a> <a href="https://x.com/byteledger">X</a>
<p>Contact sales: sales@byteledger.example</p>
</body></html>`,
'blank-hobby': `<!doctype html><html><head><title>Jo's corner</title></head><body>
<h1>Hi, I'm Jo</h1><p>I write about sourdough and hiking. Thanks for stopping by!</p>
</body></html>`,
};
const site = $input.first().json.params.site;
const html = SITES[site];
return [{ json: { status: html ? 200 : 404, html: html ?? '<h1>404 Not Found</h1>' } }];