Multi-Agent Customer Support System for E-commerce

minimal · E-commerce · 2025 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: E-commerce customer support

Minimal needed to automate both simple and complex e-commerce support tickets while still executing real business actions such as cancellations, refunds, and address updates.

Constraints:

Architecture

Minimal built a LangGraph and LangSmith multi-agent support system with a Planner Agent, Research Agents, and a Tool-Calling Agent. The planner decomposes customer queries into sub-problems, research agents retrieve and re-rank relevant policy knowledge from a training center, and the tool-calling agent executes business operations such as Shopify refunds or shipping-address updates before the system drafts a customer reply.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  planner-agent["Planner Agent"] --> research-agents["Research Agents"]
  research-agents --> training-center-knowledge-base["Training Center Knowledge Base"]
  planner-agent --> tool-calling-agent["Tool Calling Agent"]
  tool-calling-agent --> ecommerce-integrations["Ecommerce Integrations"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Planner Agent Breaks incoming tickets into sub-problems and coordinates the workflow. Research Agents, Tool Calling Agent
Research Agents Retrieve and re-rank policy, shipping, return, and support documentation. Training Center Knowledge Base, Planner Agent
Training Center Knowledge Base Stores company documentation, return rules, shipping policies, and protocols. Research Agents
Tool Calling Agent Executes business operations and consolidates logs for post-processing. Planner Agent, Ecommerce Integrations
Ecommerce Integrations Helpdesk and commerce systems such as Zendesk, Front, Gorgias, and Shopify. —

Data flow

A customer ticket enters the Planner Agent, which splits it into support sub-problems. Research Agents retrieve policy and documentation context for each sub-problem, the Planner consolidates a tool plan, the Tool-Calling Agent executes approved business actions, and the final response references the right protocols and data.

“The Planner Agent coordinates with specialized research agents and determines the overall flow of information through the system.”summary, stated
“The final step in the pipeline produces a reasoned draft reply to the customer that references correct protocols, checks relevant data”summary, stated

Why this architecture

Minimal used multiple agents because support tickets combine planning, retrieval, and tool execution. Splitting those responsibilities reduced prompt complexity, made each agent easier to extend, and avoided a single prompt trying to answer, retrieve, and act at once.

“They found that combining all tasks in a single prompt led to conflation of responsibilities and increased error rates.”summary, stated
“Enhanced extensibility, allowing new specialized agents to be added without disrupting existing workflows”summary, stated

Models used: unspecified LLMs through LangGraph

Scale

Alternatives considered (roads not taken)

Use one monolithic LLM prompt for customer support

Rejected because: It conflated responsibilities, increased error rates, and was hard to maintain.

“Traditional approaches using monolithic LLM prompts were found to conflate multiple tasks, leading to errors and inefficient token usage.”summary, stated

Answer questions without executing business actions

Rejected because: Complex support tickets need real operations such as refunds and address updates.

“aiming to handle customer queries autonomously while maintaining the ability to execute real actions such as order cancellations, refunds, and address updates”summary, stated

Patterns

multi-agent-orchestration (architecture)

Planner, research, and tool-calling agents divide ticket analysis, retrieval, and action execution.

“The architecture consists of three main agent types working in coordination:”summary, stated

rag-retrieval (knowledge)

Research agents retrieve and re-rank policy knowledge from Minimal's training center.

“They perform retrieval and re-ranking operations against the company's knowledge base, which includes documentation like returns guidelines”summary, stated

tool-use-orchestration (execution)

The tool-calling agent executes refunds, cancellations, and address updates through commerce integrations.

“This includes decisive actions like processing refunds via Shopify or updating shipping addresses.”summary, stated

Tradeoffs

Decompose customer support into specialized agents

Chose Planner, research, and tool-calling agents over A monolithic LLM prompt.

Rationale: Separation reduced prompt complexity and improved reliability.

“Reduced prompt complexity for each individual agent”summary, stated

Allow autonomous tool execution

Chose Tool-calling agent connected to commerce systems over Draft-only customer support responses.

Rationale: Resolving T2/T3 tickets often requires actual operations, not just replies.

“more complex issues (T2 and T3) require deeper integration with business systems and nuanced understanding of company policies.”summary, stated

Gotchas (what bit them)

Monolithic support prompts mixed too many responsibilities.

Root cause: One prompt had to plan, retrieve policy, reason, and execute actions.

Resolution: Minimal split the workflow across planner, research, and tool-calling agents.

“They found that combining all tasks in a single prompt led to conflation of responsibilities and increased error rates.”summary, stated

Promotional metrics require caution.

Root cause: The published source is a LangChain customer story without independent verification.

Resolution: Treat claimed efficiency and autonomous-resolution numbers as reported claims, not proven benchmarks.

“the claimed metrics (80%+ efficiency gains, 90% autonomous ticket resolution) should be considered with appropriate caution, as independent verification is not provided.”summary, stated

Evaluation

The case reports efficiency and target automation metrics but does not provide an independent evaluation design.

Metrics: 80%+ efficiency gains · 90% autonomous ticket resolution target · 10% human escalation target

“The company reports 80%+ efficiency gains and expects 90% of tickets to be handled autonomously with only 10% escalated to humans”summary, stated

Outcomes

Reported targets are 80%+ efficiency gains and 90% autonomous ticket handling.

“built a multi-agent customer support system using LangGraph and LangSmith to handle customer service tickets autonomously.”summary, stated