Builder

class Builder(    val itemId: String,     val questions: List<ProductInsightsAgentQuestion>,     val viewTimespans: List<ProductInsightsAgentViewTimespan>)

Builder for ProductInsightsAgentViewsTrackingData

Constructors

Link copied to clipboard
fun Builder(    itemId: String,     questions: List<ProductInsightsAgentQuestion>,     viewTimespans: List<ProductInsightsAgentViewTimespan>)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setItemName(itemName: String): ProductInsightsAgentViewsTrackingData.Builder
Link copied to clipboard
fun setSectionName(sectionName: String): ProductInsightsAgentViewsTrackingData.Builder
Link copied to clipboard
fun setThreadId(threadId: String): ProductInsightsAgentViewsTrackingData.Builder
Link copied to clipboard
fun setVariationId(variationId: String): ProductInsightsAgentViewsTrackingData.Builder

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 item (product) the Product Insights Agent is displayed for, i.e. "Waterproof Jacket"

Link copied to clipboard
val questions: List<ProductInsightsAgentQuestion>
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
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 item (product) the Product Insights Agent is displayed for

Link copied to clipboard
val viewTimespans: List<ProductInsightsAgentViewTimespan>