Stella Platform Documentation

Stella Platform Documentation

  • Docs
  • API
  • Help

›Content

Get Started

  • Introduction
  • Best Practices
  • Recent Updates

Playground

  • Workspace
  • Node Drawer
  • Node Inspector

Content

  • Message Types
  • Button Types
  • Message Template
  • Chatbot Menu

Advanced Setting

  • Data Source
  • Integrations
  • Deployment

Message Types

There are various types of raw (unstructured) content that can be sent to your users.

  • Text
  • Image
  • Audio
  • Video
  • File
  • Carousel
  • Button
  • Quick Reply
  • List
  • Media
  • Public Reply
  • Private Reply

Text

{
  type: "TEXT",
  text: "Hello World!",
  ephemeral: "ephemeral",
  replaceOriginal: true
}
PropertyDescriptionRequired
typeTEXTY
textString; Limited to 2000 charactersY
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

Image

{
  type: "IMAGE",
  text: "Hello World!",
  url: "http://image.png",
  attachment_id: "SomeStringID",
  mediaId: "SomeStringId",
  ephemeral: "ephemeral",
  replaceOriginal: true
}
PropertyDescriptionRequired
typeIMAGEY
textString; Slack-specificN
urlURL of the image fileY
attachment_idString; ID of your uploaded imageN
mediaIdString; WeChat-specificN
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

Tips:

  • Image must be a valid image file format, including .jpg, .jpeg, .png, .gif, .tiff and .bmp
  • Maximum file size is 25MB
  • You may send out Quick Reply buttons together with an image

Audio

{
  type: "AUDIO",
  url: "http://audio.mp3",
  attachment_id: "SomeStringID",
  mediaId: "SomeStringId",
  ephemeral: "ephemeral",
  replaceOriginal: true
}
PropertyDescriptionRequired
typeAUDIOY
urlURL of the audio fileY
attachment_idString; ID of your uploaded audioN
mediaIdString; WeChat-specificN
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

Tips:

  • Audio must be a valid audio file format, including .aac, .flac, .m4a, .m4p, .mp3, .wav, .wma
  • You may send out Quick Reply buttons together with an audio message

Video

{
  type: "VIDEO",
  url: "http://video.mp4",
  attachment_id: "SomeStringID",
  mediaId: "SomeMediaId",
  thumbMediaId: "SomeMediaId",
  title: "Some title",
  description: "Some description",
  ephemeral: "ephemeral",
  replaceOriginal: true
}
PropertyDescriptionRequired
typeVIDEOY
urlURL of the video fileY
attachment_idString; ID of your uploaded videoN
mediaIdString; WeChat-specificN
thumbMediaIdString; WeChat-specificN
titleString; WeChat-specificN
descriptionString; WeChat-specificN
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

Tips:

  • Video must be a valid video file format, including .mkv, .gif, .avi, .wmv, .rmvb, .mp4, .m4v, .mpg, .mpeg, .3gp
  • Maximum file size is 25MB
  • You may send out Quick Reply buttons together with a video

File

{
  type: "FILE",
  url: "http://file.pdf",
  attachment_id: "SomeStringID",
  ephemeral: "ephemeral",
  replaceOriginal: true
}
PropertyDescriptionRequired
typeFILEY
urlURL of the file attachmentY
attachment_idString; ID of your uploaded fileN
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

Tips:

  • File must be a valid file format, including .pdf
  • Maximum file size is 25MB
  • You may send out Quick Reply buttons together with a file

Carousel

Carousel is a horizontal scrollable row of items, each composed of an image attachment, short description and buttons to request input from users. Carousel Preview


{
  type: "CAROUSEL",
  carousel: [{
    title: "Classic T-Shirt",
    subtitle: "Medium Grey\n$29.99",
    image_url: "http://img.url",
    default_action: {
      type: "web_url",
      url: "https://zuckstees.com"
    },
    buttons: [{
      type: "web_url",
      url: "https://sanuker.com",
      title: "View Details"
    }, {
      type: "postback",
      title: "Shop Now",
      payload: "a long payload here"
    }, {
      type: "phone_number",
      title: "some title 3",
      payload: "phone_number"
    }]
  }],
  image_aspect_ratio: "square",
  sharable: true,
}

Response Object

PropertyDescriptionRequired
typeCAROUSELY
carouselArray of carousel items; Maximum of 10 elementsY
image_aspect_ratioSet "horizontal" or "square"; Defaults to "horizontal"N
sharableAllow share to other users; Defaults to "false"N

carousel Object

PropertyDescriptionRequired
titleString; Limited to 80 charactersY
subtitleString; Limited to 80 charactersN
image_urlURL of the image displayedN
default_actionDefault website URL when users click on the imageN
buttonsArray of buttons; Maximum of 3 buttons that appear as call-to-actionN

Tips:

  • You may send out Quick Reply buttons together with a file
  • You may not necessarily include buttons for a carousel if no call-to-action is intended

Buttons

Button Preview

{
  type: "BUTTON",
  text: "What can I do to help?",
  inlineTitle: "some title for Slack",
  callbackId: "random id for Slack",
  buttons: [{
    type: "web_url",
    url: "https://sanuker.com",
    title: "Get Order Status"
  }, {
    type: "phone_number",
    title: "Call Me",
    payload: "phone_number"
  }, {
    type: "postback",
    title: "some title 2",
    payload: "a long payload here"
  }]
  ephemeral: "ephemeral",
  replaceOriginal: true  
}
PropertyDescriptionRequired
typeBUTTONY
textString; Limited to 640 charactersY
inlineTitleSlack-specific; StringN
callbackIdSlack-specific; Defaults to channelidN
buttonsArray of buttons; Maximum of 3 buttons that appear as call-to-actionY
ephemeralSlack-specific; Set “in_channel” or “ephemeral”; Defaults to “in_channel”N
replaceOriginalSlack-specific; Defaults to "false"N

For different types of button objects, please see Button Types


Quick Reply

Quick Reply provide a different way to present buttons in a message. It contains text and an optional image.

The only difference between Quick Reply and Button is that Quick Reply only appears once and will be dismissed once it is clicked, while Button remains on the message even it is clicked. This prevents the scenario where users could tap on the old Quick Reply buttons attached to previous messages in the conversation.

Quick Reply Preview

{
  type: "QUICK_REPLIES",
  text: "some text",
  quickReplies: [{
    content_type: "text",
    title: "Red",
    payload: "payload string",
    image_url: "http://red.img.url"
  }, {
    content_type: "text",
    title: "Green",
    payload: "payload string",
    image_url: "http://green.img.url"
  }, {
    content_type: "location"
  }]
}

Response Object

PropertyDescriptionRequired
typeQUICK_REPLIESY
textString; Limited to 2000 charactersY
quickRepliesArray of quick reply buttons; Maximum of 11 buttonsY

quickReplies Object

PropertyDescriptionRequired
content_typeSet "text" or "location"Y
titleString; caption of button; Limited to 20 charactersOnly if content_type is text
image_urlURL of image for text quick replyN
payloadCustom defined payload trigger; Limited to 1,000 charactrsOnly if content_type is text

Tips:

  • If content_type is "location", title and payload are not used
  • Image for image_url should be at least 24x24 and will be cropped and resized

List

List is a vertical list view of items to your users. The list can be rendered in two different ways. List Preview

{
  type: "LIST",
  list: [{
    title: "Today's Top News",
    subtitle: "President signs new bill",
    image_url: "http://img.url",
    default_action: {
      type: "web_url",
      url: "https://peterssendreceiveapp.ngrok.io",
      messenger_extensions: true
    },
    buttons: [{
      type: "postback",
      title: "View",
      payload: "a long payload here"
    }]
  }],
  buttons: [{
    type: "postback",
    title: "Read More",
    payload: "a long payload here"
  }]
  top_element_style: "compact",
}

Response Object

PropertyDescriptionRequired
typeLISTY
listArray of 2-4 list view elementsY
buttonsA button associated on the list template message at the very end; Maximum of 1 buttonN
top_element_styleSet "compact" or "large"; Defaults to "large"N

list Object

PropertyDescriptionRequired
titleString; Limited to 80 charactersY
subtitleString; Limited to 80 charactersEither subtitle or image_url must be set
image_urlURL of image displayed for each item; Required for the first element if top_element_style is largeEither subtitle or image_url must be set
default_actionDefault website URL when users click on the element rowN
buttonsA button on the element appears as call-to-action; Maximum of 1 buttonN

Tips:

  • You must set up at least 2 elements and at most 4 elements
  • You can only set up at most 1 button for each element
  • top_element_style is always rendered as compact style on web right now
  • You may send out Quick Reply buttons together with a list

Media

Media is similar to a carousel without title and subtitle but it can also display video.

{
  type: "MEDIA",
  media_type: "image",
  attachment_id: "attachmentId",
  buttons: [{
    type: "postback",
    title: "Show Me More!",
    payload: "a long payload here"
  }]
}
PropertyDescriptionRequired
typeMEDIAY
media_typeSet "image" or "video"Y
attachment_idString; ID of your uploaded media fileY
buttonsArray of buttons; Maximum of 3 buttons that appear as call-to-actionN

Tips:

  • You may send out Quick Reply buttons together with a media template

Public Reply

Public Reply refers to the comment reply to users' comments on Facebook post.

{
  type: "PUBLIC_REPLY",
  text: "some text",
  attachment_id: "attachmentId",
  attachment_url: "https://img.url"
}
PropertyDescriptionRequired
typePUBLIC_REPLYY
textString; Limited to 5,000 charactersEither text, attachment_id or attachment_url must be set
attachment_idString; ID of your uploaded media fileEither text, attachment_id or attachment_url must be set
attachment_urlURL of the media file you want to postEither text, attachment_id or attachment_url must be set

Private Reply

Private Reply refers to the private message inbox reply to users on Facebook Messenger.

{
  type: "PRIVATE_REPLY",
  text: "some text"
}
PropertyDescriptionRequired
typePRIVATE_REPLYY
textString; Limited to 2,000 charactersY

← PreviousNext →
  • Text
  • Image
  • Audio
  • Video
  • File
  • Carousel
  • Buttons
  • Quick Reply
  • List
  • Media
  • Public Reply
  • Private Reply
Stella Platform Documentation
Docs
Get StartedBest PracticesAPI Reference
Community
User ShowcaseChat with Us
Copyright © 2018 Sanuker Inc. Limited