Product page suggestions
Show suggested questions beside a product on its detail page. A shopper can select a question or type their own. The Shop Agent receives the question with the product as context.
The container
Section titled “The container”Embed one div in your product detail page template and fill the SKU dynamically:
<div data-neocom-type="pdp-suggestions" data-neocom-assistant-id="YOUR_ASSISTANT_ID" data-neocom-product-sku="{{ product.sku }}"></div>| Attribute | Value | Description |
|---|---|---|
data-neocom-type |
pdp-suggestions |
Marks the container for product page suggestions. |
data-neocom-assistant-id |
your Assistant ID | The agent that generates and answers the questions. See Which ID do I need? |
data-neocom-product-sku |
the product’s SKU | Must match your product data feed exactly: same case, leading zeros, no variant suffix unless the feed has it. |
Use a separate container near the buying controls. If the page adds the container after the Global script loads, call Neocom.mountAdvisor() once it is visible.
How the questions are generated
Section titled “How the questions are generated”Neocom generates up to ten questions about a product’s use from the fields available to the agent. It checks their language, format and whether they can be answered, and filters out price questions. The placement shows a sample of up to three by default.
Open a test product page. Questions can take time to appear on the first visit while Neocom generates them. Revisit the page, select a question and check which product the agent answers about. If questions are still missing, check the Assistant ID, the selected variant’s SKU and the agent’s published product scopes.
The PDP suggestions tone in the Briefing says which aspects the questions pick up, for example “Focus on fit, material and care. No questions about sizes in stock.” The answer is a normal conversation, so Chat tone, documents and Category Knowledge apply.
What a click does
Section titled “What a click does”Selecting a question sends it as the shopper’s message with a reference to the product. A typed question carries the same product context. In Events › Conversations, look for PDP suggestion or PDP input field. Either action can open the conversation on a page without a visible launcher.
For a button with a fixed question, use the AskAgent with type: "ask_agent_product".
Styling
Section titled “Styling”Chips and input are styled under PDP Suggestions in the Theme Builder, in the Backend JSON. By default the chips inherit the text style of the bubble suggestions and the icon takes your primary color (Theme reference). Click a suggestion on desktop and mobile and verify that the conversation refers to the product on that page.