TABFinders — System Schematic

A full-stack marketplace platform connecting property owners and contractors with certified HVAC Testing, Adjusting & Balancing (TAB) professionals across the US.

Platform Overview — What It Does

Discovery & Directory

Public-facing company directory with map view, search, filters by state/cert/service. SEO-optimized company profiles and city landing pages.

Lead Generation & Matching

Customers submit project requests (PostJob). AI matches them to the nearest qualified TAB company. Leads are captured and tracked.

Company Management

TAB companies claim their profiles, manage leads, view analytics, message customers, and upgrade to PRO subscription plans.

Subscriptions & Payments

Stripe-powered subscriptions: Free, Basic, Premium for companies. Customer premium plans. Advertiser billing via Ad campaigns.

AI Assistant

Floating chat widget + dedicated AI assistant page powered by an in-app agent. Helps users find TAB pros, answer questions, capture leads.

Advertising Platform

Full ad campaign system: creatives, placements, impressions, clicks, conversions. Targeted by state/city/service/property type.

User Roles & Access Levels

Guest / Public
  • Browse directory
  • View company profiles
  • Search by location/service
  • Submit job request (creates lead)
  • Use AI assistant
Customer (user)
  • All guest permissions
  • Dashboard with projects
  • Message companies
  • Track bids & responses
  • Upgrade to Premium
  • Write reviews
Company (company)
  • Company dashboard
  • View & manage leads
  • Respond to messages
  • Edit company profile
  • View analytics
  • Upgrade to PRO
  • Claim listing
Admin
  • Full admin dashboard
  • Manage all users/companies
  • Import companies (bulk)
  • Run AI enrichment
  • Approve/reject companies
  • Manage ads & content
  • Platform settings
  • Access all tools

Database Entities (Click to expand fields)

Company Import System

1Upload File / Paste Data
2Auto Field Mapping
3Manual Field Override
4Confirm Mapping
5Chunked API Calls (200/batch)
6Duplicate Detection
7Company Creation
8Logo Fetch (bg)

Input Formats

.csvHeaders auto-matched to system fields. Supports quoted values, semicolons for multi-value columns, Yes/No/Implied service flags.
.mdEach company starts with # Company Name heading. Key: Value pairs on subsequent lines.
JSONRaw JSON array of company objects. Keys auto-matched.
CSV textPaste directly from Excel or Google Sheets.

Field Mapper (Step 2)

Auto-match rules check column names against patterns. User can override any mapping.

company name / name / business→ Company Name
address / street→ Address
city / town→ City
state / province / region→ State
zip / zipcode / postal→ ZIP Code
phone / telephone / mobile→ Phone
email / e-mail→ Email
website / url / web→ Website
contacts / personnel→ Contact People
services / offerings→ Services
certifications / cert→ Certifications

Backend (importCompanies)

  1. 1Bulk fetch — Loads all existing company names into a Set in one query (not one per row)
  2. 2Filter dupes — Filters out duplicates before any DB writes. Also dedupes within the same batch.
  3. 3Parallel batches — Creates companies 10 at a time with Promise.allSettled — fast but safe
  4. 4No AI per row — Skips per-row LLM calls. Uses template description. Run Enrichment Tool after.
  5. 5Chunked frontend — Frontend sends 200 companies per request. 2,000 companies = 10 API calls.
  6. 6Logo fetch — Fire-and-forget logo fetch after import succeeds, per company with website.

AI Enrichment Pipeline

Purpose: After import, companies have basic data (name, city, state). Enrichment fills in the gaps: real contact info, coordinates, ratings, logos, descriptions, SEO meta, hero images, and AI content blocks.
1Trigger (manual or orchestrator)
2Google Places API
3AbstractAPI Enrichment
4SerpAPI Search
5AI Web Search (LLM)
6Logo Fetch (Logo.Dev)
7Image Extraction
8Geocoding
9SEO Generation
10DB Update

enrichCompanyProfile — 9-Step Pipeline

  1. 1Google Places API — Text search → Place Details. Fills: website, phone, address, rating, review_count, coordinates, city, state, ZIP.
  2. 2AbstractAPI — Domain enrichment. Fills missing: website, logo, description, phone, email, city, state, address, years_experience.
  3. 3SerpAPI — Google search with knowledge graph + local pack. Fills: phone, address, website, rating, hero image.
  4. 4AI Web Search (LLM) — Only runs if still missing critical data. Searches for website, phone, email, address, certifications, service_areas, coordinates. Uses add_context_from_internet=true.
  5. 5Logo Fetch (Logo.Dev → fallback) — Tries Logo.Dev API by domain. Falls back to fetchCompanyLogo function if Logo.Dev fails.
  6. 6Website Image Extraction (LLM) — AI scrapes the company website for hero images and gallery images. Stores in microsite_config.
  7. 7Geocoding — If still no coordinates, calls geocodeLocation function on the address.
  8. 8Slug Generation — Generates SEO-friendly URL slug if missing.
  9. 9DB Update — All collected enrichments written to Company entity in a single update call.

autoEnrichCompanies — Batch Runner

Iterates all active companies. Skips ones that already have: description, ai_summary, logo, coordinates, meta_title, screenshot.

enrichCompanyWithGoogle— If missing lat/lng or rating
enrichCompanyProfile— If missing ai_summary, meta_title, content blocks
fetchCompanyLogo— If no logo and has website
captureWebsiteScreenshot— If no screenshot and has website

2 second delay between companies for API rate limiting.

orchestrateCompanyEnrichment — Master Orchestrator

Runs all pipeline steps in sequence. Returns immediately, processes in background. Logs everything to AdminActivityLog.

1discoverTABCompanies
2autoEnrichCompanies
3Logos + Screenshots (up to daily limit)

Daily limit configurable via AutomationSettings entity (key: daily_company_discovery_limit). Default: 20.

External APIs Used

Google Places API

Primary data source. Phone, address, rating, coordinates.

AbstractAPI

Company enrichment by domain.

SerpAPI

Google search results scraping.

Gemini / GPT (LLM)

AI web search for missing fields.

Logo.Dev

Company logo by domain.

Browserless

Website screenshot capture.

Customer Journey — Getting a TAB Quote

1Lands on TABFinders.com
2Searches by location or service
3Browses company directory / map
4Views company profile
5Clicks 'Get Quote' (PostJob)
6Multi-step form (service, property, location, contact)
7Lead created in DB
8AI matches to nearest TAB company
9Company notified of new lead
10Company submits bid
11Customer reviews bids
12Awards project
13Messages via platform
14Leaves review after completion

Company Journey — Getting Listed & Getting Leads

Admin Import Path

1Admin imports CSV/MD/JSON
2Field mapping
3Bulk company creation
4AI Enrichment (background)
5Logo + screenshot fetch
6Profile live on directory

Self-Service Path

1Company finds listing
2Clicks 'Claim Listing'
3Submits verification info
4Email verification code sent
5Admin verifies
6Access to company dashboard
7Upgrade to PRO

Backend Functions Map

Import & Discovery
importCompaniesBulk import with dedup + parallel creation
discoverTABCompaniesFinds new TAB companies via web search
scrapeAABCMembersScrapes AABC member directory
validateTABCompanyValidates company is legitimate TAB firm
Enrichment
enrichCompanyProfile9-step enrichment pipeline (Google → AI)
enrichCompanyWithGoogleGoogle Places data fetch
autoEnrichCompaniesBatch enrichment for all companies
orchestrateCompanyEnrichmentMaster pipeline orchestrator
SEO & Content
generateAISummaryWrites AI company summary
batchGenerateSEOBatch SEO meta for all companies
generateEntityMetaPer-entity SEO meta generation
generateRichContentAI content blocks for profiles
optimizeCompanySEOFull SEO optimization per company
generateSlugSEO-friendly URL slug
autoGenerateSlugBatch slug generation
updateCompanySlugsRegenerates all slugs
generateOGImageOpen Graph share image
generateSitemapXML sitemap for all pages
notifyGoogleIndexingPings Google Search Console
Assets
fetchCompanyLogoFetches logo via Logo.Dev or web
bulkFetchLogosBatch logo fetch for all companies
captureWebsiteScreenshotBrowserless screenshot of website
geocodeLocationAddress → lat/lng coordinates
geocodeCompaniesBatch geocoding for all companies
Leads & Jobs
findOrCreateLeadDeduplicates + upserts lead record
matchJobWithCompaniesAI-matches job to nearest company
searchCompaniesByRadiusZIP-radius company search
convertLeadToUserPromotes lead → registered user
Payments & Ads
createCheckoutSessionStripe checkout for subscriptions
stripeWebhookHandles Stripe payment events
serveAdSelects and serves targeted ad
trackImpressionRecords ad impression
trackClickRecords ad click
trackConversionRecords ad conversion
getAdAnalyticsAd performance metrics
generateAdCreativeAI-generated ad copy
generateAdPlacementCreates ad placement slots
Auth & Communication
sendClaimVerificationCodeSends email verification for claims
verifyClaimCodeValidates claim verification code
approveCompanyAdmin approves pending company
searchCompanyFull-text company search
Public APIs & Integrations
api/searchCompaniesPublic REST API: search companies
api/getCompanyPublic REST API: get company by ID/slug
openapiOpenAPI spec for public API
ai-pluginChatGPT plugin manifest
mcp-serverMCP server for AI agent access
sitemapServes XML sitemap
robotsServes robots.txt

AI Agents

tab_finder_assistant

Main AI assistant embedded in the site. Answers questions about TAB, helps users find companies, explains services. Accessible via floating chat widget and /AIAssistantChat page.

tab_company_finder

Specialized agent for finding and recommending TAB companies. Has read access to Company entity. Used in CompanyFinder admin tool.

lead_capture_bot

Chatbot variant focused on capturing lead information. Routes users toward submitting a project request.

Key Data Flows

New Lead Submitted

1Customer fills PostJob form
2findOrCreateLead creates/updates Lead record
3JobRequest created in DB
4matchJobWithCompanies finds closest TAB company
5Company notified (Notification record)
6notifyJobRequestIndexing pings Google
7Customer gets confirmation

Company Import → Live Profile

1Admin uploads CSV/MD/JSON
2Field mapper normalizes columns
3importCompanies creates records (batched, parallel)
4fetchCompanyLogo runs in background
5Admin triggers enrichCompanyProfile
6Google Places fills contact data + coordinates
7AI fills description + content blocks
8batchGenerateSEO writes meta tags
9Company profile live in directory

Ad Impression → Conversion

1Page loads → serveAd selects active campaign
2trackImpression records ad view
3User clicks ad → trackClick records it
4User fills quote form → trackConversion records it
5getAdAnalytics aggregates for dashboard
6Budget depleted → campaign paused automatically

Company Claim Flow

1Company finds unclaimed profile
2Submits claim with contact details
3sendClaimVerificationCode sends email
4Company enters code
5verifyClaimCode confirms ownership
6Admin reviews + approveCompany grants access
7Company can now edit profile and receive leads
TABFinders System Schematic — All backend functions are Deno-based edge functions. Frontend is React + Tailwind. Database via Base44 entity SDK.

© 2026 TABFinders. All rights reserved.

Disclaimer: TABFinders operates strictly as an independent referral directory to help users find and connect with Testing, Adjusting, and Balancing (TAB) companies near them. TABFinders is not affiliated with, endorsed by, or sponsored by any listed company or any industry certifying organization, including NEBB, TABB, or AABC, and all trademarks and certification marks belong to their respective owners. Use of this website and reliance on any directory information is strictly at your own risk. Any views, representations, services, or business conducted with or by the independent Testing, Adjusting, and Balancing companies listed on this platform are solely their own and do not reflect the views, policies, or practices of TABFinders, which assumes no responsibility or liability for their actions, work, or services.