2027 planning guide · Evidence checked 20 November 2026

AI for retail: the contact workload, the card-data constraint and the deployment pattern

AI for retail for developers succeeds when the model is kept away from card data, prices are resolved by a service rather than recalled by a model, and every answer can cite the policy or product record behind it. This page is the build plan. For the Arabic search, support and content overview, see the live e-commerce page.

Short answer. Put the model behind a gateway, redact payment and personal data before the call, and resolve price, stock and delivery in your own services. Use retrieval for policy and product evidence, require a citation, and hand off to a human when the evidence is missing or the customer asks for an exception. Cloud regions handle catalogue and content work; private VPC or on-premises deployment handles order and customer data. Measure containment, citation accuracy and escalation, not just deflection.

What the retail workload actually is

Retail AI is rarely one assistant. It is a set of jobs with different evidence and different risk.

Customer support answers “where is my order”, “can I return this” and “which size fits” from order state, policy and product data. Catalogue enrichment turns supplier documents and images into attributes, titles and translations. Search re-ranking decides which products appear for a query. Review analysis summarises complaints and detects safety or compliance signals. Dispute and fraud triage routes a case to a human with a short evidence pack.

The support job is a common starting point, and it is easy to damage trust if it is built as a generic chatbot. A support answer is only as good as the order lookup, the returns policy version and the product record behind it. If those are stale, a fluent answer is a liability.

Retail AI workloads, their evidence source and the control each one needs
WorkloadEvidence sourceModel capabilityPrimary controlHuman gate
Order and returns supportOrder service, returns policy, carrier eventsRetrieval, citation, JSON outputNo card data; policy version pinAgent takes over on exceptions
Product Q&APIM attributes, size guide, review snippetsRetrieval, multilingual answerAttribute allow-list; no invented specsMerchandiser reviews low-confidence answers
Catalogue enrichmentSupplier PDFs, images, existing taxonomyDocument and image input, JSON outputSchema validation against taxonomyMerchandiser approves new attributes
Search re-rankingQuery, product index, stock and margin rulesClassification or embedding similarityDeterministic business rules after the modelMerchandising owns the rule set
Review analysisReviews, returns reasons, support notesSummarisation, topic extractionAggregate only; no customer identifiersQuality or safety team reviews signals

The constraint is card-data scope, then peak load

The first constraint is not model quality. It is the cardholder data environment.

PCI DSS scopes the systems that store, process or transmit cardholder data or sensitive authentication data, and connecting an AI service to order or payment systems can pull that service into scope. The safe design is boring: the assistant never receives a primary account number, never asks for one, and never writes one to a prompt log. Payment fields are tokenised or removed upstream. If the use case genuinely needs payment data, stop and involve the payment and compliance owners before writing code.

The PCI Security Standards Council publishes the current PCI DSS document set at v4.x. Use the Council's document library as the authority for your assessment; do not rely on a summary in a vendor page, including this one. The same discipline applies to personal data: names, addresses, phone numbers and order identifiers should be minimised, and the log-retention rule should be set before the first prompt is stored.

The second constraint is peak load. Retail traffic is spiky by design: a promotion, a payday, a holiday window or a price error can multiply concurrency in minutes. A pilot that works at 10 requests per minute can queue when traffic reaches 600. Model the peak from last season's traffic, reserve concurrency for the support path, and put a queue and a fallback in front of the model. A plan's fair-use concurrency limit is a design input, not a footnote.

Base URL. Examples use https://api.plugsky.com/v1. Plugsky docs also show https://plugsky.com/v1; both resolve, and the alias is not a second backend. Keep one host in client configuration so logs and egress rules stay consistent.

Deployment pattern: three tiers, one redaction boundary

Retail teams usually need two tiers, and sometimes three. The classification rule decides: public catalogue content can use a shared region; order and customer data need a private boundary; store or payment-adjacent data may need on-premises. Do not let a feature team pick a tier by convenience.

Retail deployment tiers, permitted data and the workload each one fits
TierWhat runs thereData allowedTypical workloadTrade-off
Cloud regionPlugsky API in EU Frankfurt, GCC UAE, APAC Singapore or US VirginiaPublic catalogue, marketing copy, published policyCatalogue enrichment, content drafting, general Q&AFast to ship; not for order or customer data
Private VPC or endpointDedicated inference inside a contracted boundaryRedacted order history, customer records, unpublished pricingSupport copilot, dispute triage, search re-rankingContract-led; needs identity and network work
On-premises or air-gappedModel runtime in a retailer-controlled environmentPayment-adjacent or store data that cannot leaveStore operations, restricted fraud reviewHighest control; highest operating burden

The redaction boundary sits in front of every tier, including the cloud one. A gateway should classify the request, strip blocked fields, attach the customer's consent and region, and route to an approved endpoint. It should also record which model served the request; the AI gateway page covers routing and policy, and private AI covers the deployment boundary.

Reference architecture for a support copilot

The pipeline below answers order and policy questions without giving the model authority to change an order. It is deliberately narrow. Start with one intent family, such as returns, and expand only after the evaluation set is stable.

  1. Receive. A support event carries the customer ID, order ID, locale and channel. Authenticate the session before any lookup.
  2. Redact. Replace names, addresses, phone numbers and payment fields with stable tokens. Keep the mapping in a service the model cannot query.
  3. Resolve facts. Call the order, inventory and pricing services. Price, stock and delivery promise are resolved here, not generated by the model.
  4. Retrieve policy. Fetch the current returns, warranty and shipping policy for the customer's market and locale. Pin the policy version to the response.
  5. Generate. Call https://api.plugsky.com/v1/chat/completions with the resolved facts, policy passages and a strict output schema.
  6. Check. Reject an answer that cites a policy not in the retrieved set, quotes a price that differs from the resolved value, or promises an exception the policy does not allow.
  7. Hand off or answer. Low-risk answers go to the customer with a citation link. Exceptions, complaints and high-value orders go to an agent with the evidence pack.
curl https://api.plugsky.com/v1/chat/completions \
  -H "Authorization: Bearer $PLUGSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "plugsky-lite",
    "messages": [{"role": "user", "content": "Answer only from the resolved facts and policy passages. Return JSON: answer, policy_id, order_id, confidence, handoff_reason."}],
    "response_format": {"type": "json_object"}
  }'

Two details make the pipeline auditable. First, the resolved facts are passed as structured fields, not as prose the model can reinterpret. Second, the model's output is checked against those fields before it reaches the customer. A mismatch is a failed request, not a clever answer.

What to measure

Deflection is a business outcome, not a quality metric. A bot that deflects contacts by refusing to help looks efficient and loses customers. Measure quality first, then containment, then cost.

Retail AI metrics, the failure each one detects and where the data comes from
MetricWhat it detectsData sourceGuardrail
Grounded-answer rateClaims with no supporting policy or order factCitation check against retrieved passagesFail closed when unsupported
Policy-citation accuracyRight answer, wrong policy version or marketPolicy ID and version in the responsePin the version per request
Price and stock mismatch rateModel contradicts the pricing serviceCompare output with resolved valuesBlock the response on mismatch
Containment with CSAT guardrailDeflection that harms satisfactionContact outcome joined to surveyPause rollout if CSAT drops
Escalation and repeat-contact rateAnswers that do not resolve the taskTicket events within 72 hoursReview a weekly sample
p95 latency at promotion peakQueueing under burst trafficHistogram by endpoint and intentQueue plus human fallback
Prompt-injection block rateHostile text in reviews, uploads or chatGateway policy eventsTreat retrieved text as untrusted

Prompt injection belongs on the list because retail ingests untrusted text: reviews, supplier documents, customer uploads and chat messages. The OWASP Top 10 for LLM Applications lists prompt injection as LLM01 in its 2025 edition. The practical control is architectural: retrieved text never carries authority, tool calls are allow-listed, and an instruction found inside a document cannot change the output schema or the refund policy.

Where retail AI goes wrong

A common failure is a stale price. A model answers from a cached product page while the pricing service has moved on, and the customer screenshots the difference. The fix is to remove price generation from the model entirely.

The second is an unauthorised discount: a support assistant invents a goodwill credit because the prompt says “be helpful”. The third is a policy mismatch across markets, where an EU returns window is applied to a GCC order. The fourth is personal data in a log: a redaction step that misses a free-text address field.

Each failure has a non-model fix. Resolve money in a service. Put discount authority in a rules engine with a human approval step.

Key policy retrieval by market and locale. Test redaction against real free-text patterns, not just structured fields. If the fix requires the model to “be careful”, it is not a control.

A governance structure such as the NIST AI Risk Management Framework can assign owners for these controls, but it does not replace the measurement.

Plan fit and procurement

Self-serve plans cover API work in a live region. Starter at $20/month includes 2,000 requests/day, 5M tokens/day, 6 concurrent requests and 240 RPM. Builder at $60/month and Scale at $120/month remove the monthly token cap and per-token overage; fair-use concurrency (10 or 16 requests) and RPM limits (600 or 1,200) still apply. For seasonal peaks, the concurrency number matters more than the monthly total. The model catalogue lists 39 public IDs and their context limits; /pricing is the canonical plan source.

For customer or order data, ask for a private VPC or dedicated endpoint and confirm the scope in writing. For a market without a local region, choose the nearest live region, private VPC, on-premises or air-gapped deployment and say which one applies. The data residency guide lists the evidence to request. Request the current SOC 2 report under NDA and confirm the audit period, scope and exceptions. /facts holds the canonical product facts used on this page.

What this page does not verify. No retailer deployment, conversion lift, cost saving or customer result is reported here, and no PCI assessment was reviewed for this page. Treat the architecture as a starting point for your own pilot and evidence review.

Frequently asked questions

Can a retail AI assistant take a card number?

It should not. Card data belongs in the payment flow, not in a prompt, a retrieval index or a support transcript. Tokenise or redact payment fields before any model call and keep the assistant unable to request a full card number. If a system that touches card data is connected to the AI path, PCI DSS scope can expand, so involve the payment and compliance owners before the pilot.

Which deployment fits an online store?

Use a live cloud region for product content, catalogue enrichment and general policy answers. Use a private VPC or dedicated endpoint when order history, customer records or unpublished pricing are in the prompt. On-premises or air-gapped deployment is for retailers that cannot send store or customer data to a multi-tenant region at all. Private deployment is contract-led, so confirm scope in writing.

How do we stop the assistant quoting a stale price?

Do not let the model supply the price from memory. Resolve price, stock and delivery promise in a deterministic service at request time, pass the resolved values into the prompt as read-only facts, and require the answer to cite that record. Cache the product copy, not the price. Re-run the evaluation set after every pricing or promotion change.

Does Plugsky offer a local region in every retail market?

No. Live regions are EU Frankfurt, GCC UAE, APAC Singapore and US Virginia; Riyadh is Enterprise only. For other markets the options are the nearest live region, a private VPC, on-premises or air-gapped deployment. State which one a workload uses and do not describe a region as local when it is not.

What should a retail AI pilot measure?

Measure grounded-answer rate, policy-citation accuracy, price and stock mismatch rate, containment with a customer-satisfaction guardrail, escalation and repeat-contact rate, p95 latency during promotions, prompt-injection block rate and cost per resolved contact. Report the evaluation set and its size so the numbers can be checked.

Is a 262,144-token context enough for a product catalogue?

No. A catalogue is larger than any context window and changes constantly. Retrieve the handful of products and policies a request needs, keep the index refreshed from the catalogue service, and use long context for a bounded set such as a single order's history. Context length is not a substitute for retrieval or for a current source of truth.

Related pages

Build the redaction boundary first

Prototype on the free plan with public catalogue data, then move customer and order workloads to a private endpoint.

Start Free → See pricing

Sources

Official sources below were checked on 20 November 2026. Standards and guidance change; confirm the current version for your assessment.

Official sources used for this page
SourceWhat it supportsChecked
PCI Security Standards Council: PCI DSSCardholder data scope and the current v4.x document set20 Nov 2026
OWASP Top 10 for LLM ApplicationsPrompt injection as LLM01 in the 2025 edition20 Nov 2026
NIST AI Risk Management FrameworkVoluntary governance structure for AI risk20 Nov 2026

Last checked 20 November 2026. Plugsky's canonical plan numbers live at /pricing; this page describes an architecture and does not replace the contract.