Enterprise AI for advertising sales
A prototype that turns scattered advertising product documentation into a structured, queryable database with a sales assistant on top.
- Problem
- Specifications for roughly 800 advertising products across more than 30 brands lived in inconsistently formatted PDFs and web pages. Nobody could list the whole portfolio, so sales conversations depended on a few specialists.
- Built
- A pipeline that discovers and extracts product documents into a validated PostgreSQL schema with source tracking, and an assistant that answers sales questions from that data through a FastAPI interface.
The problem
The advertising sales unit of a major European media company markets a large portfolio of media brands. Each brand team maintains its own product sheets, rate cards and format specifications, with its own terminology and layout. The information is public, but it is fragmented: there is no single place where the portfolio exists as data. The broader project consolidated more than 1,000 source documents into a knowledge base of about 800 products.
What I built
I worked on the engineering side of the problem: getting from documents to data that can be trusted, and from data to answers.
- Discovery and change detection. Controlled, shallow crawling from explicit seed pages finds the relevant PDFs. Every file is hashed (SHA-256), so a changed document is re-processed and an unchanged one is not.
- Extraction into a schema. A language model extracts formats, channels, audiences and price rules into JSON. Pydantic models validate every record before it reaches the database.
- Data with provenance. The PostgreSQL schema tracks which source document every record came from, and uncertain extractions go to a review queue instead of silently into the data.
- An assistant on top. A basic agent layer answers sales questions (which channels fit an audience, which formats exist for a campaign goal, which document supports a recommendation) and is exposed through FastAPI, so a web interface, a CRM or an email workflow could use the same backend.
What it is not
This was a prototype and an evaluation of feasibility. It was not rolled out to sales teams, it has no authentication, monitoring or production deployment, and it did not ingest the full document corpus. Any efficiency gains discussed during the project were projections, not measurements.
The results were presented at the end of the HPI industry challenge to executives from SAP and the partner company.