1. Data Collection & PreparationAutomation starts with high‑quality data.
The system aggregates each client’s purchase history — SKUs, volumes, order dates, sales channels, average spend, and lifetime value.
It then calculates
price sensitivity — how responsive the client is to discounts in specific categories. This enables segmentation into:
- Price‑sensitive — respond strongly to promotions.
- Loyal — purchase consistently without heavy discounting.
From here, a concise client profile is generated and passed to the LLM.
2. The RAG + LLM ArchitectureRAG enriches the LLM’s generative capabilities with up‑to‑date, context‑specific data.
Retrieval- Client profiles are stored as vector embeddings in a knowledge base.
- On request, the system retrieves the top‑K most relevant facts: purchase history, segment, recent interactions, price sensitivity.
Prompt Creation- A structured template guides the LLM, for example:
“You are a sales manager preparing a CP for client {Name}. Their history: {list of SKUs, volumes, dates}. They often order {categories}, prefer a budget of {min}–{max}. Recommended margin: {value}.”
- frequent SKUs;
- recommended new products;
- target margin;
- payment and delivery terms.
- Examples of successful past proposals are added to align tone and structure.
Generation- The LLM produces a headline, offer details, and terms.
- Automated checks ensure compliance with business rules — minimum margins, maximum discounts.
Post‑Processing- Real product links, SKUs, images, and BI‑generated visuals are inserted.
- The final, client‑ready document is produced.
Example of Personalization in Action: If a client frequently purchases professional shampoos and responds to discounts in the “hair care” category, the model might suggest:
“Alongside your favorite shampoos, we’ve prepared a special offer on hair masks and serums — 20% off for orders placed by the end of the month.”
3. Automation & IntegrationA “Generate CP” button in the CRM triggers the LLM via API, returning a ready‑to‑send proposal with metadata such as generation time and confidence score.
Automated triggers can then send proposals based on events — for example, when a forecast changes or a discount threshold is reached.
4. Measuring & Improving PerformanceKey metrics track the system’s impact:
- Email open and click‑through rates.
- Conversion to orders and average order value.
- Performance uplift versus control groups.
Feedback loops from managers and clients refine prompts and continuously improve the model.