ProductInsightsAgentAnswerViewTrackingData

class ProductInsightsAgentAnswerViewTrackingData(    val itemId: String,     val question: String,     val answerText: String,     val questionTopic: String? = null,     val qnaResultId: String? = null,     val items: List<TrackingItem>? = null,     val followUpQuestions: List<String>? = null,     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 answer view tracking request object utilizing a builder. Sent when an answer is shown to the user.

Constructors

fun ProductInsightsAgentAnswerViewTrackingData(    itemId: String,     question: String,     answerText: String,     questionTopic: String? = null,     qnaResultId: String? = null,     items: List<TrackingItem>? = null,     followUpQuestions: List<String>? = null,     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 question: String,     val answerText: String)
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
val answerText: String

the answer text shown to the user. May be empty. Text over 2000 Unicode code points is truncated to fit

Link copied to clipboard
val followUpQuestions: List<String>? = null

the follow-up questions shown with the answer. Only the first 100 are sent

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 items: List<TrackingItem>? = null

the items (products) shown in the answer. Only the first 100 are sent

Link copied to clipboard
val qnaResultId: String? = null

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

Link copied to clipboard
val question: String

the question text, i.e. "Is it waterproof?"

Link copied to clipboard
val questionTopic: String? = null

the topic the question belongs to, i.e. "Durability"

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