Send a list of sections and choices
Available on :
- Clustaar Webchat
Attribute | Type | Required | Description |
---|---|---|---|
type | string | ✓ | always send_choices_list_action |
message | string | ✓ | a string (length 1<=count<=500) |
placeholder | string | ✓ | a string (length 1<= count<=45) |
action | object | ✓ | a goto action ( with step or story target) |
sections | array | ✓ | a list of section objects (1<=count<=100) |
section.type | string | ✓ | always section |
section.title | string | card title (length<=80) | |
section.choices | array | ✓ | a list of choices (1<=count<=100 ) |
section.choice.type | string | ✓ | always choice |
section.choice.title | string | ✓ | the choice title (1<=count<=500) |
section.choice.imageUrl | string | an image url (count<=500) | |
section.choice.sessionValues | dict | ✓ | extra session values (dict[str: str]) |
{
"type": "send_choices_list_action",
"message": "Faites votre choix",
"placeholder": "Le meilleur des sections !",
"sections": [
{
"type": "section",
"title": "A",
"choices": [
{
"type": "choice",
"imageUrl": "https://image.com",
"title": "A.1",
"sessionValues": {
"product": "A.1"
},
}
],
}
],
"action": {
"type": "go_to_action",
"target": {
"type": "step",
"name": "a step",
"id": "a1a1a1a1a1a1a1a1a1a1a1a1"
},
"sessionValues": None,
},
}