Stella Platform Documentation

Stella Platform Documentation

  • Docs
  • Procedures
  • Reference
  • FAQ
  • Bot API
  • API
  • Languages iconEnglish
    • 中文

›Web Chat

Overview

  • Documentation Guide

Get Started

  • Introduction
  • Recent Updates
  • Best Practices
  • Chatbot Template

Bot Builder

  • Workspace
  • Node
  • Attachment ID

Node Inspector

  • Tree ID & Composite ID
  • Basic Information
  • Triggers
  • Responses
  • Actions
  • Redirect
  • Member Tagging
  • Analytics
  • NLP
  • Advance

Facebook

  • Message Types
  • Button Types
  • Persistent Menu
  • Access Token
  • One-Time Notification
  • N-Time Notification (Beta)

Instagram

  • Message Types

WhatsApp

  • Overview
  • Setup Procedure
  • Message Types

Web Chat

  • Overview
  • Message Types
  • Button Types

WeChat

  • Message Types

Slack

  • Message Types

Telegram

  • Message Types

Integrations

  • Dialogflow
  • Stripe
  • LUIS
  • Custom Inbox Integration

Data Source

  • Data Source

Media Library

  • Media Library

Channels

  • Overview
  • Webhooks
  • Channel-wide Metadata
  • Business Availability
  • Facebook
  • Instagram
  • Web Chat
  • WhatsApp
  • WeChat
  • Slack (Public App)
  • Slack (Custom App)
  • Teamwork
  • Zendesk
  • Custom Platform

Analytics

  • Members
  • Dashboard
  • PSID

Settings

  • Overview
  • Locale
  • Pairing Channels
  • Role-based Access Control
  • Access Token
  • Audit Trail

Push Panel

  • Push Content
  • Audience
  • Analytics

Log

  • Log

Web Chat Message Types

There are various types of message content that can be sent to your users:

  • Text
  • Image
  • Audio
  • Video
  • File
  • Carousel
  • Button
  • Quick Reply
  • List
  • Media
  • Web Action

Text

{
  type: "TEXT",
  text: "Hello World!",
}
PropertyDescriptionRequired
typeTEXTY
textStringY

Image

{
  type: "IMAGE",
  url: "http://image.png",
}
PropertyDescriptionRequired
typeIMAGEY
urlURL of the image fileY

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",
}
PropertyDescriptionRequired
typeAUDIOY
urlURL of the audio fileY

Tips:

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

Video

{
  type: "VIDEO",
  url: "http://video.mp4",
}
PropertyDescriptionRequired
typeVIDEOY
urlURL of the video fileY

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",
}
PropertyDescriptionRequired
typeFILEY
urlURL of the file attachmentY

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.


{
  type: "CAROUSEL",
  carousel: [{
    title: "Some title",
    subtitle: "Some subtitle",
    image_url: "http://img.url",
    default_action: {
      type: "web_url",
      url: "https://sanuker.com"
    },
    buttons: [{
      type: "web_url",
      url: "https://sanuker.com",
      title: "Button 1"
    }, {
      type: "postback",
      title: "Button 2",
      payload: "a long payload here"
    }, {
      type: "phone_number",
      title: "Button 3",
      payload: "phone_number"
    }]
  }],
  image_aspect_ratio: "square",
}

Response Object

PropertyDescriptionRequired
typeCAROUSELY
carouselArray of carousel items; No maximum no. of elementsY
carouselArray of carousel itemsY
image_aspect_ratioSet "horizontal" or "square"; Defaults to "horizontal"N

carousel Object

PropertyDescriptionRequired
titleStringY
subtitleStringN
image_urlURL of the image displayedN
default_actionDefault website URL when users click on the imageN
buttonsArray of buttonsN

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

Button

{
  type: "BUTTON",
  text: "What can I do to help?",
  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"
  }]
}
PropertyDescriptionRequired
typeBUTTONY
textString; Limited to 640 charactersY
buttonsArray of buttons; Maximum of 3 buttons that appear as call-to-actionY
textStringY
buttonsArray of buttonsY

For different types of button objects, please see Button Types.

Tips:

  • You may send out Quick Reply buttons together with a button

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.

{
  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"
  }]
}

Response Object

PropertyDescriptionRequired
typeQUICK_REPLIESY
textStringY
quickRepliesArray of quick reply buttonsY

quickReplies Object

PropertyDescriptionRequired
content_typeCan be set to "text" onlyY
titleString; caption of buttonY
image_urlURL of image for text quick replyN
payloadCustom defined payload triggerY

Tips:

  • 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.

{
  type: "LIST",
  list: [{
    title: "Sanuker FAQ",
    subtitle: "Some subtitle",
    image_url: "http://img.url",
    default_action: {
      type: "web_url",
      url: "https://sanuker.com",
    },
    buttons: [{
      type: "postback",
      title: "View",
      payload: "a long payload here"
    }]
  }],
  top_element_style: "compact",
}

Response Object

PropertyDescriptionRequired
typeLISTY
listArray of 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
titleStringY
subtitleStringN
image_urlURL of image displayed for each item; Required for the first element if top_element_style is largeN
default_actionDefault website URL when users click on the element rowN

Tips:

  • You must set up at least 1 elements but there is no maximum no. of 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",
  buttons: [{
    type: "postback",
    title: "Show Me More!",
    payload: "a long payload here"
  }]
}
PropertyDescriptionRequired
typeMEDIAY
media_typeSet "image" or "video"Y
buttonsArray of buttonsN

Tips:

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

Web Action

Web Action is sent custom data to your website through the web chat plugin.

{
  type: "WEB_ACTION",
  data: {
    action: "NAV",
    url: "https://sanuker.com/#use-case"
  }
}
PropertyDescriptionRequired
typeWEB_ACTIONY
dataString or ObjectY

Tips:

  • To receive the response on your website, please see Web Action of Radiate.js.
← OverviewButton Types →
  • Text
  • Image
  • Audio
  • Video
  • File
  • Carousel
  • Button
  • Quick Reply
  • List
  • Media
  • Web Action
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited