Skip to main content

Product

The product datatype allows to get the visitor's preference from the Input carousel card. You can store the visitor's response to the carousel card by clicking on Save in bot context - check box. That response can be recorded and sent as a plug input. 

Note: The Product datatype is available only on the Input parameter.

The value for this input datatype will be available in the session object in the following format:

Attribute NameDatatype Description
metamap Product Meta (A)
valueString 

The name and the button (follow-up) actions of the carousel card

Product Meta (A)

Attribute NameDatatype Description
typeStringThe value should be 'product'
valueString (name)

The name (individual card title) of the carousel card

String (action)

The name of the button and it's label name

 

Sample Code

Copied{
  "product": {
    "meta": {
      "type": "product",
      "value": {
        "name": "Card title",
        "action": {
          "name": "Button 2",
          "label": "Button 2"
        }
      }
    },
    "value": {
      "name": "Paris",
      "action": {
        "name": "Get package",
        "label": "getpackage"
      }
    }
  }
}