AI Sommelier for Online Wine Shops
Guided Conversational Wine Selection
My Role
- LLM never picks the wine; SQL does
- Plain PostgreSQL filters, no vector database
- Per-shop iframe on top of existing site
Approach at a Glance
Details- 1Catalog Enrichment from a Global Wine Reference
- 2Automatic Shop Sync
- 3Guided Conversational Interview (LLM)
- 4Answers → Structured SQL Filters
- 5Rule-Based Pairing & Review-Score Re-ranking
- 6Embeddable Per-Shop Deployment
Executive Summary
An AI sommelier that online wine shops embed on their website. It turns a bare product list into a guided buying experience. A visitor who knows nothing about appellations, grape varieties or food pairing just chats with the assistant. It asks simple questions it is easy to answer, works out what the person actually wants, and recommends wines that are in stock in that particular shop.
The key architectural decision was that the LLM never selects a wine. It runs the conversation and turns each answer into a structured filter. The selection itself happens in SQL over the shop's catalog, with explicit pairing rules and re-ranking by professional review scores. This makes hallucinated or out-of-stock recommendations impossible by construction.
We built it as an internal product for wine retailers, e-shops and distributors. Each shop gets its own personalised deployment, and the assistant is now live in several shops, where it raised visitor-to-buyer conversion by 15% on average. I led the architecture in a team of 2–3 engineers.
Client Profile
The product targets wine retailers and distributors selling online. The market has two problems that compound each other.
Buyers are lost. Most people don't understand how wine is chosen: what an appellation means, how color and style differ, what goes with what food. Faced with a list of labels, they guess, hesitate or leave without buying.
Sellers' data doesn't help. Most online wine sellers run their catalog from a simple Excel sheet: wine name, vintage, bottle volume and stock left. There is nothing a buyer could use to choose. Visitors got lost even in small catalogs and on shops with modest traffic. Without a sommelier on staff, the shop has no way to guide them.
The solution therefore had to do two things at once: enrich each shop's thin catalog into expert-level data, and put a sommelier-style conversation in front of every visitor, without asking the shop to change its existing systems.
Technical Approach
-
Catalog Enrichment from a Global Wine Reference – Each wine in a shop's sheet is matched to a global wine reference database holding millions of wine records. That database has the full attribute set: appellation, region, grape varieties, color, style and professional review scores. Wine names almost always matched exactly. For the rare inconsistent entries, an LLM normalized the name before matching. The result is a standardized, fully attributed catalog for every shop, built from nothing more than its Excel file.
-
Automatic Shop Sync – Shops keep working the way they always have. Their Excel or CSV catalog is synced automatically from the customer's side, so stock and assortment changes flow into the assistant's PostgreSQL database without manual work.
-
Guided Conversational Interview (LLM) – The LLM, orchestrated with LangChain / LangGraph, conducts the dialogue. It asks the questions a sommelier would ask, phrased for a non-expert, across 15+ preference dimensions such as color, style, occasion, food pairing, region and price. Designing these questions so that anyone can answer them was the hardest part of the project. The bot's questions and the user's answers also make each recommendation self-explanatory: the user can see how their own choices led to the pick.
-
Answers → Structured SQL Filters – Every answer becomes a filter. Some map to predefined values, such as color. Others need standardization first: a free-text appellation name, for example, is resolved to the canonical value in the database. There are no vector databases or embeddings. Plain PostgreSQL queries over the enriched catalog keep the system simple, fast and fully predictable.
-
Rule-Based Pairing & Review-Score Re-ranking – Explicit pairing and sommelier rules are applied on top of the filters, and the matching wines are retrieved from the shop's stock. When too many wines qualify, they are re-ranked by professional review scores taken from the same reference source, so the shortlist leads with the best-rated bottles.
-
Embeddable Per-Shop Deployment – The assistant is a FastAPI service exposed to shoppers as an iframe placed on top of the shop's existing website. Each shop gets its own personalised bot instance, connected to its own catalog. That made integration take minutes, with no changes to the shop's e-commerce platform.
Business Outcome
The AI sommelier is live in several online wine shops, where it raised visitor-to-buyer conversion by 15% on average. Visitors who would have left a confusing product list now get guided to a confident purchase. Shops get expert-level catalog data and a digital sommelier without hiring staff or changing their systems: they keep maintaining their Excel sheet, and the assistant does the rest.
Keeping the LLM out of the selection step proved to be the decisive design choice. The conversation is flexible and human, while the recommendations stay deterministic, limited to the shop's stock and grounded in real review scores. That is exactly what a shop owner needs before putting an AI in front of their customers.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks