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 Name | Datatype | Description |
meta | map | Product Meta (A) |
value | String | The name and the button (follow-up) actions of the carousel card |
Attribute Name | Datatype | Description |
type | String | The value should be 'product' |
value | String (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"
}
}
}
}