Best Practices for Shopping Agent

Prev Next

This guide outlines recommended practices for building high-quality Shopping Agents and configuring Knowledge Bases in retail and ecommerce environments. You can utilize the provided examples and technical settings to align your conversational experiences with brand objectives, increase purchase confidence, and enhance customer satisfaction.

Shopping Agent Roles and Customization by Industry

An effective Shopping Agent blends brand personality with sales enablement and customer experience goals. Tailor each agent’s tone, expertise, and engagement depth according to the customer journey stage from inspiration to purchase.

The Shopping Agent can be configured in any language supported by the language model, but it performs best in English.

Retail & Ecommerce

Use this setup as a reference for designing agents that drive online product discovery and conversion.

The configuration focuses on blending friendly, brand-aligned guidance with strong product expertise to help customers find the right items faster and shop with confidence.

  • Agent Name: ShopMate

  • Agent Identity: “You are a digital shopping assistant helping users explore, compare, and select products across categories. You provide helpful, brand-aligned recommendations that make online shopping simpler, faster, and more enjoyable. Whether users are looking for seasonal trends, bestsellers, or personalized suggestions, you guide them with accurate, relevant, and inspiring advice.”

  • Communication Style: Friendly and Informative

  • Message Length: Standard – Balanced level of detail

  • Custom Instructions:

    • You are a helpful, brand-aware Shopping Agent designed to assist users with product discovery and purchase decisions. Adhere to the following behavioral rules at all times:

    • Stay within the shopping context. Focus on product discovery, feature comparison, price clarity, and shopping assistance. Use customer context (e.g., style preferences, occasion, season, budget) to tailor recommendations while respecting data privacy. Reference the product catalog for product details and prices, and the knowledge base for policies and guides. If product information is missing, acknowledge it and suggest an alternative or the next best step. If users ask about checkout, delivery, or refunds, redirect them to the official support channels. Never reference unavailable items, third-party websites, or competitors.

Knowledge Base Configuration by Industry

A structured Knowledge Base gives the Shopping Agent accurate answers to questions the product catalog doesn't cover, such as shipping and return policies, warranty terms, size guides, care instructions, and brand FAQs. Product details, prices, and stock availability always come from the product catalog, so keep them out of the Knowledge Base. Below is an example configuration designed for retail and ecommerce use cases.

To set up a Knowledge Base for your Shopping Agent, refer to Create a Knowledge Base for AI Agents.

Retail & Ecommerce

This example illustrates how to structure a Knowledge Base for extensive product catalogs and frequently updated retail sites.

It emphasizes clean data collection, clear exclusion rules, and well-defined selectors to ensure your Shopping Agent delivers accurate, current, and brand-consistent information across all conversations.

  • KB Name: ShopBase

  • KB Description: Centralized Knowledge Base containing size guides, care instructions, category descriptions, shipping and return policies, and shopping FAQs. Product facts, prices and stock come from the product catalog. Supports conversational product discovery and comparison experiences.

  • Source Name: Product & Content Web Crawl

  • Crawling Options:

    • Main URL: https://www.example-shop.com

    • Proximity: 2

    • CSS Selectors to Wait to Load: .product-detail, .faq-section

    • CSS Selectors to Exclude: .cookie-banner, .popup, .footer, .advertisement

    • File Extensions to Exclude: .mp4, .pdf, .jpg, .gif

    • Headers – Key/Value:

      • Accept-Language: en-US

      • User-Agent: ShopAgentBot/1.0

    • Rule1: /faq/* And /careers/*Or /about-us/*

    • Rule2: /faq/*And /careers/*Or /about-us/*

Example Domain Applications

The following examples illustrate how Shopping Agents can be adapted for different retail domains.

Each domain highlights a distinct conversational focus, guiding you on how to balance product expertise, personalization depth, and knowledge coverage when designing your agent.

Domain

Example Use Case

Agent Focus

KB Coverage

Fashion Retail

Style discovery, outfit recommendations

Product fit, material, trends

Product catalog, size chart, care info

Electronics

Product comparison, feature explanation

Specs, compatibility, reviews

Product detail pages, FAQ

Home & Living

Room styling, gift ideas

Use case-based recommendations

Category descriptions, product usage

Beauty

Routine suggestions, product pairing

Skin/hair type, occasion-based

Ingredients, benefits, tutorials