LLM-Powered Customer Service Agent Copilot for E-commerce Support

wayfair · E-commerce · 2025 · source Agentic: yes · promotional bias: low · 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 service agent assistance

Wayfair needed to help customer service agents respond quickly, empathetically, and policy-compliantly while navigating hundreds of product-issue policies and complex resolution negotiations.

Constraints:

Architecture

Wayfair's Wilma copilot sits inside the customer-service workflow. An agent chooses a task button, business logic and a routing LLM select one of 40-plus Jinja prompt templates, real-time customer/order/product data fills the prompt, Gemini/GPT generates a response, appropriateness checks and added information prepare the output, and the human agent decides whether to use or edit the draft. For difficult resolution negotiation, the system chains multiple LLM calls to analyze the conversation before generating the response.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Agent_buttons["Agent task buttons"] --> Template_selector["Prompt template selector"]
  Routing_LLM["Routing LLM"] --> Template_selector
  Template_selector --> Prompt_templates["Jinja prompt templates"]
  Wayfair_data["Wayfair data retrieval"] --> Prompt_templates
  Prompt_templates --> LLM_generator["LLM response generator"]
  Routing_LLM --> Resolution_analyzer["Multi-call resolution analyzer"]
  Resolution_analyzer --> LLM_generator
  LLM_generator --> Appropriateness_checker["Appropriateness checker"]
  Appropriateness_checker --> Service_agent["Customer service agent"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Agent task buttons UI controls that let agents choose Discovery, Resolution, Empathy, or Give Me a Minute assistance. Prompt template selector
Prompt template selector Selects a task-specific prompt from button choice, business logic, and routing LLM analysis. Agent task buttons, Routing LLM, Jinja prompt templates
Routing LLM Analyzes the conversation to help select the right prompt and route complex response generation. Prompt template selector, Multi-call resolution analyzer
Jinja prompt templates Over 40 tailored templates rendered with task descriptions, tone, examples, instructions, and live Wayfair data. Prompt template selector, Wayfair data retrieval, LLM response generator
Wayfair data retrieval Pulls real-time customer, order, and product information from Wayfair systems into prompts. Jinja prompt templates
LLM response generator Gemini/GPT model call that drafts the response from the filled prompt template. Jinja prompt templates, Appropriateness checker
Appropriateness checker Checks generated responses, adds information, and prepares the output for the agent. LLM response generator, Customer service agent
Multi-call resolution analyzer Series of LLM calls used to analyze long resolution negotiations before generating a response. Routing LLM, LLM response generator
Customer service agent Human reviewer who can use, edit, or discard Wilma's drafted message. Appropriateness checker

Data flow

The agent clicks a Wilma button for Discovery, Resolution, Empathy, or Give Me a Minute. Wilma chooses a prompt template using button choice, business logic, and routing-LLM analysis, fills it with real-time Wayfair data, asks an LLM to draft a response, checks/augments that draft, and returns it to the agent for review and optional editing.

3 supporting quotes
“The agent clicks a button to select what they want Wilma’s help with (Discovery, Resolution, Empathy, or Give Me a Minute).”article, stated
“A prompt template is selected based on which button the agent clicked, some business logic, and the analysis of a routing LLM.”article, stated
“The response is checked for appropriateness, information is added, and the final output is delivered back to the agent.”article, stated

Why this architecture

Wayfair moved away from one monolithic prompt because agents needed control over conversation direction and different customer-service tasks needed different context. The architecture keeps humans in charge while splitting prompt selection, data filling, LLM drafting, and appropriateness checks into separate stages.

3 supporting quotes
“We found two things wrong with this approach:”article, stated
“Now we have four buttons in the user interface, allowing the agents to have finer-grained control over the conversation flow”article, stated
“Resolution negotiation with a customer is especially tricky for an LLM.”article, stated

Models used: Gemini · GPT · routing LLM · multiple LLM calls

Scale

Alternatives considered (roads not taken)

One long prompt behind a single Help Me Write It button

Rejected because: It failed to give agents enough control over conversation direction and packed too many instructions into one prompt.

“In the first version of Wilma, we put all the instructions in one long prompt triggered by a single “Help Me Write It” button”article, stated
“The agents felt they lacked control over the direction of the conversation.”article, stated

Single LLM call for resolution negotiation

Rejected because: Long conversations confused the model about previously discussed options and sometimes produced inappropriate resolutions.

“Over a long conversation, an LLM could get confused about which options had already been discussed and sometimes offer inappropriate resolutions”article, stated

Fully autonomous customer-service conversations

Rejected because: Current Wilma deliberately leaves timing, use, and editing decisions with the customer service agent.

“Right now the burden is still on the customer service agent to decide when and how to use Wilma.”article, stated

Patterns

human-in-the-loop-gate (safety)

Wilma drafts messages for agents to review, edit, or reject rather than sending customer responses autonomously.

“Wilma uses large language models (LLMs) like Gemini and GPT to draft messages for agents to review and edit before sending to the customer.”article, stated
“The agent is now free to use, edit, or not use the message, as they see fit.”article, stated

prompt-versioning (orchestration)

A routing LLM and business logic choose among task-specific templates so the prompt contains only the relevant information for that conversation stage.

“A prompt template is selected based on which button the agent clicked, some business logic, and the analysis of a routing LLM.”article, stated

prompt-versioning (prompting)

Wayfair moved from one prompt to over 40 structured Jinja templates with task descriptions, tone, examples, and additional instructions.

“Wilma currently has over 40 different prompt templates. We use Jinja to render the prompt templates”article, stated
“Prompts are structured to have sections for the task description, tone, few-shot examples, and additional instructions.”article, stated

prompt-chaining (orchestration)

For tricky resolution negotiations, Wilma uses multiple LLM calls to analyze conversation state before composing a response.

“To address these issues, we now use a series of LLM calls to analyze the conversation before generating a response.”article, stated

Tradeoffs

Keep Wilma as a copilot rather than a fully autonomous support bot

Chose agent-reviewed drafts over automatic customer replies.

Rationale: Wayfair could improve speed and policy adherence while leaving final judgment and editing to the service agent.

“Wilma uses large language models (LLMs) like Gemini and GPT to draft messages for agents to review and edit before sending to the customer.”article, stated

Split one prompt into many tailored prompts

Chose four task buttons and over 40 templates over one long prompt behind one button.

Rationale: Specialized prompts gave agents more control and gave the model only the information needed at that point in the conversation.

“over forty tailored prompts, each providing the LLM with only the information it needs at that point in the conversation.”article, stated

Use multiple LLM calls for resolution negotiation

Chose conversation analysis before response generation over single-call generation for long negotiations.

Rationale: The extra calls manage conversation state and reduce inappropriate resolution suggestions.

“To address these issues, we now use a series of LLM calls to analyze the conversation before generating a response.”article, stated

Use dynamic prompt rendering

Chose Jinja templates filled with live Wayfair data over static prompts disconnected from customer/order context.

Rationale: Support responses require real-time customer, order, and product information to be specific and policy-aware.

“We use Jinja to render the prompt templates, allowing us to dynamically generate the prompt’s text based on data retrieved from Wayfair’s systems.”article, stated

Gotchas (what bit them)

A monolithic prompt reduced agent control and mixed too much task context.

Root cause: The first Wilma version relied on one long prompt triggered by a single button.

Resolution: Split the UI into four task buttons and over 40 tailored prompt templates.

“In the first version of Wilma, we put all the instructions in one long prompt triggered by a single “Help Me Write It” button”article, stated
“Now we have four buttons in the user interface, allowing the agents to have finer-grained control over the conversation flow”article, stated

Long resolution negotiations confused the model about prior offers.

Root cause: A single generation pass could lose track of which options had already been discussed.

Resolution: Use a series of LLM calls to analyze the conversation before generating the response.

“Over a long conversation, an LLM could get confused about which options had already been discussed and sometimes offer inappropriate resolutions such as replacement parts for a pillow.”article, stated

Agents had to navigate hundreds of policies while remaining empathetic.

Root cause: Customer interactions require policy application, business constraints, and tone management at the same time.

Resolution: Use task-specific prompt templates filled with real-time order/product data and keep agents in the review loop.

“Navigating an interaction with a customer while adeptly applying one of hundreds of Wayfair policies is challenging!”article, stated

Evaluation

The source reports production outcome metrics and describes iterative improvement from agent/customer feedback, but does not detail the experimental design.

Metrics: 12% faster customer issue handling · 2-5% better policy adherence · agent and customer feedback · peak-season usage appreciation

“Agents using Wilma are able to address customers’ needs 12% faster and adhere to Wayfair’s customer policies between 2% and 5% more”article, stated
“Collecting data and receiving feedback from agents and customers has shown us many ways to improve.”article, stated

Outcomes

The system operates in Wayfair's customer-service workflow for product issues, with over 40 templates and multiple LLM calls for difficult negotiations.

“Agents especially appreciate Wilma during peak shopping season as it allows them to keep up with the high volume of customer contacts.”article, stated
“Wilma currently has over 40 different prompt templates.”article, stated