ProductInsightsAgentViewTrackingData

class ProductInsightsAgentViewTrackingData(    val itemId: String,     val questions: List<ProductInsightsAgentQuestion>,     val itemName: String? = null,     val variationId: String? = null,     val threadId: String? = null,     val sectionName: String? = null,     val analyticsTags: Map<String, String>? = null) : ProductInsightsAgentTrackingData

Create a Product Insights Agent view tracking request object utilizing a builder. Sent when the Product Insights Agent comes into view.

Constructors

Link copied to clipboard
fun ProductInsightsAgentViewTrackingData(    itemId: String,     questions: List<ProductInsightsAgentQuestion>,     itemName: String? = null,     variationId: String? = null,     threadId: String? = null,     sectionName: String? = null,     analyticsTags: Map<String, String>? = null)

Types

Link copied to clipboard
class Builder(val itemId: String, val questions: List<ProductInsightsAgentQuestion>)
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val analyticsTags: Map<String, String>? = null

additional analytics tags to pass. Merged with io.constructor.core.ConstructorIoConfig.defaultAnalyticsTags, with request-level values overriding defaults on key collision

Link copied to clipboard
open override val itemId: String

the ID of the item (product) the Product Insights Agent is displayed for, i.e. "1234567-AB"

Link copied to clipboard
open override val itemName: String? = null

the name of the item (product) the Product Insights Agent is displayed for, i.e. "Waterproof Jacket"

Link copied to clipboard
val questions: List<ProductInsightsAgentQuestion>

the questions shown to the user

Link copied to clipboard
open override val sectionName: String? = null

the index section, i.e. "Products". Defaults to io.constructor.core.ConstructorIoConfig.defaultItemSection

Link copied to clipboard
open override val threadId: String? = null

the ID of the Product Insights Agent conversation thread

Link copied to clipboard
open override val variationId: String? = null

the variation ID of the item (product) the Product Insights Agent is displayed for