Send cards

Send cards to interlocutor.

Available on :

  • Facebook
  • Clustaar Webchat
AttributeTypeRequiredDescription
typestringalways send_cards_action
cardsarraya list of card objects (1<=count<=10)
cards.typestringalways card
cards.titlestringcard title (length<=80)
cards.subtitlestring(length<=80)
cards.altstringThe alt attribute provides an alternate text for the user, if he/she for some reason cannot view the image
cards.imageURLstringURL of an image to display in the card (length<=500)
cards.urlstringURL opened when card is clicked (length<=500)
cards.buttonsarraylist of buttons to show in the card (count<=3)
cards.buttons.typestringalways button
cards.buttons.titlestringbutton label (length<=20)
cards.buttons.actionobject<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"
                    }
                }
            ]
        }
    ]
}