Send cards

Send cards to interlocutor.

Available on :

  • Facebook
  • Clustaar Webchat

Attribute

Type

Required

Description

type

string

always send_cards_action

cards

array

a list of card objects (1<=count<=10)

cards.type

string

always card

cards.title

string

card title (length<=80)

cards.subtitle

string

(length<=80)

cards.alt

string

The alt attribute provides an alternate text for the user, if he/she for some reason cannot view the image

cards.imageURL

string

URL of an image to display in the card (length<=500)

cards.url

string

URL opened when card is clicked (length<=500)

cards.buttons

array

list of buttons to show in the card (count<=3)

cards.buttons.type

string

always button

cards.buttons.title

string

button label (length<=20)

cards.buttons.action

object<button_action>

action executed when button is clicked

{
    "type":"send_cards_action",
    "cards":[
        {
            "type": "card",
            "title": "title",
            "subtitle": "subtitle",
            "imageURL": "http://example.com/logo.png",
            "alt": "Company Logo",
            "url": "http://example.com",
            "buttons":[
                {
                    "type": "button",
                    "title": "open",
                    "action":{
                        "type": "open_url_action",
                        "url": "http://example.com"
                    }
                }
            ]
        }
    ]
}