# Building an AI Lead Pipeline on Data Foundations That Hold Up at Scale

> Elantis.AI needed AI lead enrichment across hundreds of thousands of records. I built the pipeline, then rebuilt the data layer so it stayed fast at peak load.

- Client: Elantis.AI
- Sector: AI engineering services
- Role: Founding AI Solutions Architect
- Period: August 2023 to December 2024

## The Data, Analytics and AI Practice It Ran On

- AI lead enrichment for Elantis.AI. With retrieval work for partner firms Aegis and CloudMatos.

## The Scale Made This a Data Problem First

Elantis.AI qualifies B2B leads for an AI engineering services business, with work for partner firms Aegis and CloudMatos.

The records ran into the hundreds of thousands. At that size, the data system decides how fast the pipeline runs.

## Peak Load Decided the Fix

During the build: The enrichment had to run across the full record base at peak load.

A better prompt does not change how fast a database answers. I treated the job as data engineering with an AI step inside it.

## Prompt Tuning Alone Would Have Left the Slow Queries in Place

- Tune the prompts and leave the data alone: A prompt shapes each answer. It does nothing for a query that waits on slow tables.

## An AI Step on Top of a Data Layer Built to Scale

### An enrichment pipeline that qualifies leads

Claude and Google AI Studio enrich and score each lead.

### A data pipeline on Databricks

Every record moves through tested jobs before the AI step sees it.

### A data layer built for peak load

Splitting the busiest data means each query at peak touches less of it.

### Retrieval work for the partner firms

For Aegis and CloudMatos, cloud activity now maps to the compliance fixes it calls for.

### Lead signals in Salesforce

Visitor data now flows into Salesforce, so the growth team sees the whole funnel.

Stack: Claude, Google AI Studio, Databricks, PostgreSQL, MongoDB, Next.js, FastAPI

## The Pipeline Got Faster When It Mattered Most

| Metric | Before | After |
|---|---|---|
| Query latency at peak | undefined | -45% |
| B2B records through tested jobs | untested | 500K+ |
| Firms served by one pipeline | 1 | 3 |

## No Record Connects the Pipeline to Closed Deals

- Revenue attribution: My records do not connect the pipeline to closed deals.

A production AI pipeline is a data engineering problem with a model inside it. Fix the tables before you tune the prompt.

## Related

- [elantis.ai](https://elantis.ai)

---

Canonical: https://atharvashah.com/case-studies/elantis-ai
Last updated: 2026-11-19
