Generative AI · Agentic Systems
UCONN GenAI Course · 2025
AgentLens
A GenAI agent built to surface pricing insights from raw marketplace data
Marketplace analysts at Potoo Solutions spend hours manually processing Excel files, identifying MAP violations, and building client-ready PowerPoint decks — for every client, every month. AgentLens was built to change that. A multi-step GenAI agent on the DIFY platform that takes raw pricing data as input and outputs a formatted, insight-driven presentation automatically — handling the first 70-80% of an analyst's work in minutes.
GenAI agent design DIFY platform RAG architecture Prompt engineering Agentic workflows Data analysis Go-to-market thinking

What problem were we solving?

Potoo Solutions helps brands protect pricing integrity across marketplaces like Amazon and eBay. Their analysts regularly need to answer questions like: which sellers are violating MAP pricing, which products are most impacted, and which retailers keep receiving alerts but never correct their behavior? Every one of those answers required manual data processing, analysis, and slide building. AgentLens was designed to automate that end-to-end workflow.

What made it difficult?

Getting a GenAI agent to reliably process tabular Excel data, apply analytical logic, and generate a formatted PowerPoint — all in one pipeline — required significant iteration. Four different architectures were tested before landing on one that worked consistently.

1
Few-shot prompting
Understood the problem but no reliable output format
Baseline
2
Agent with RAG
RAG does not work well with Excel tabular data
Failed
3
Single agent
PPT conversion unstable, data URL not passing correctly
Partial
4
Multi-agent pipeline
Doc Extractor feeding Agent, LLM refining, PPTX output
Final build
How did I approach it?

The final architecture was a 5-step pipeline built on DIFY — each node handling one specific responsibility in the workflow, passing structured output to the next step.

Final DIFY agent architecture
▶
Start
File upload + user query input
→
📄
Doc Extractor
Converts Excel to readable format for agent
→
🤖
Agent
FunctionCalling strategy, generates insights via toolbox
→
💬
LLM
GPT-4.1, refines output to structured format
→
📊
PPTX Converter
Markdown to PowerPoint, downloadable output
→
✅
End
Client-ready presentation available to download

The key design decision was separating the Doc Extractor from the Agent — rather than asking the LLM to process raw Excel directly, the extractor first converted tabular data into a readable format the agent could reason over reliably. This single change resolved the hallucination problem that had plagued earlier iterations.

When did it click?

When the agent correctly identified that Amazon Retail itself was the top MAP violator — with 1,961 violations — and surfaced that insight unprompted, formatted and ready to present. That was the moment the pipeline worked end to end.

The agent successfully answered both core business questions Potoo posed — identifying the scale and source of MAP violations for a prospective client, and pinpointing chronic non-compliant retailers for an existing one.

Business question 1
Around 2,000 MAP violations across Amazon and eBay in 3 months. Top violator: Amazon Retail itself with 1,961 violations. Most impacted SKU: Wusthof Classic Chef's Knife with 1,727 violations.
Business question 2
Several retailers receiving repeated MAP alerts with no corrective action. Recommended a Rolling 30-Day Alert Day threshold — flag any retailer exceeding 5 alert days in a 30-day window for immediate review.
What did it unlock?

The working pipeline demonstrated that a GenAI agent could reliably handle the exploratory and synthesis layer of a pricing analyst's workflow — data ingestion, violation identification, insight generation, and presentation creation — in one automated run. The long-term vision is a fully automated pricing integrity dashboard, a real-time MAP violation alerting tool, and a scalable insight generator that lets Potoo serve more clients without proportional analyst headcount growth.

📎

Full project presentation

Detailed findings, data insights, agent output examples, and business recommendations

Download PPT
This was a group project completed as part of the GenAI for Business course at UCONN (2025). My focus was the DIFY agent architecture design and insight generation pipeline.