Builder

class Builder(    val itemId: String,     val question: String,     val seedItemId: String)

Builder for ProductInsightsAgentResultClickTrackingData

Constructors

Link copied to clipboard
fun Builder(    itemId: String,     question: String,     seedItemId: String)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setPosition(position: Int): ProductInsightsAgentResultClickTrackingData.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
var 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
val itemId: String
Link copied to clipboard
var itemName: String? = null

The name of the clicked item (product) recommended in the answer

Link copied to clipboard
var position: Int? = null

The zero-based position of the clicked item within the answer

Link copied to clipboard
var qnaResultId: String? = null

The result ID of the answer, as returned by the Product Insights Agent

Link copied to clipboard
val question: String
Link copied to clipboard
var sectionName: String? = null

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

Link copied to clipboard
val seedItemId: String
Link copied to clipboard
var seedItemName: String? = null

The name of the item (product) the Product Insights Agent is displayed for

Link copied to clipboard
var seedVariationId: String? = null

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

Link copied to clipboard
var threadId: String? = null

The ID of the Product Insights Agent conversation thread

Link copied to clipboard
var variationId: String? = null

The variation ID of the clicked item (product) recommended in the answer