Generative Q&A

Setup Generative Q&A on your e-commerce website.

Prerequisites

Before proceeding with the installation, make sure you have the Alby embed already installed on your website. Without the embed installed, the Generative Q&A will not appear.

Adding Generative Q&A

To add Generative Q&A to your website, follow these instructions:

  1. Open your website's source code or tag manager.
  2. Locate the specific section of the page where the Generative Q&A should be placed.
  3. Use the following applicable code:
    1. // Use on standard parent level product detail pages.
      <alby-generative-qa
      product-id="INSERT_PRODUCT_ID_HERE" // Replace with parent-level product id
      ></alby-generative-qa>
    2. // Use ONLY on child level product detail pages.
      <alby-generative-qa
      product-id="INSERT_PRODUCT_ID_HERE" // Replace with parent-level product id
      variant-id="INSERT_VARIANT_ID_HERE" // (Optional) Replace with child-level product id
      ></alby-generative-qa>

Save and Publish

Save the changes you made to your source code and publish your website. If you encounter any issues or have further questions, don't hesitate to reach out to our support team for assistance.