Messages - Cards

A card can consist of an image, title, subtitle, and buttons. The title of a card is mandatory.

(function(payload) {
  // Create a button
  const button = new Button({
    type: 'url',
    label: ' website',
    value: ''

  // Create a card
  const card = new Card({
    title: "Corporate headquarters",
    subtitle: "WeWork, Toronto, Canada"

  // Create a message with fallback speech
  const message = new Message('Our corporate headquarters is at WeWork, Toronto, Canada')

  return message

results matching ""

    No results matching ""