Meet the AI Shopping Agent That Can Recommend, Compare, and Place Orders
The target audience is developers who want a resume-ready AI+e-commerce project. The design—two-layer semantic routing, RAG grounding, MCP-based data access, and human-in-the-loop transaction flows—shows a realistic pattern for going from chat to order execution, but the code and tutorial are sold through the Java Assault Team course.
Built on Spring Boot 3.5 and Spring AI Alibaba, this conversational shopping agent uses a two-layer embedding semantic router to classify user intents into process, tool, recommendation, or small talk before entering a Graph workflow. RAG over Milvus or PgVector grounds answers with private product knowledge, while Function Calling and MCP connect to live inventory, pricing, and order services. The agent completes a full transaction loop: placing orders, cancelling, returning, and reviewing, each guarded by human-in-the-loop confirmation and rendered as UI snapshot cards via SSE streaming.
The design splits static knowledge from dynamic operations: RAG handles product specs and policies, tool calls fetch real-time stock and prices and trigger backend actions. An MCP client standardizes connections to product and order centers, so adding a new data source does not require rewriting the agent. The project is positioned as a resume builder; full source code, a from-zero tutorial, 1-on-1 Q&A, and interview coaching are delivered through the Java Assault Team site (susan.net.cn/project).
The two-layer semantic routing is a pragmatic control: pre-classifying intents before the LLM reduces the risk that natural language ambiguity derails a transaction workflow, something many agent frameworks leave entirely to the model.
Dividing static knowledge (RAG for specs and policies) from dynamic state (Function Calling for stock and prices) avoids the common mistake of putting real-time data into embeddings that go stale.
The heavy reliance on HITL for transaction actions—order previews, cancellation confirmations—shows a realistic safety pattern for deploying agents in commerce where financial operations need human authorization.