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

Button Types

Send a text and buttons attachment to request input from users. Both response templates as well as the persistent menu support buttons that can perform different kinds of actions:

  • URL Button
  • Postback Button
  • Call Button
  • Share Button

URL Button

The URL Button can be used to open a web page in the in-app browser. This button can be used with the Buttons Template, Carousel and List. A web view can be rendered in three different ways: compact, tall or full.

{
  type: "web_url",
  title: "some title",
  url: "https://sanuker.com",
  webview_height_ratio: "tall",
  messenger_extensions: true,
  fallback_url: "https://sanuker.com",
  webview_share_button: "hide",
  urlTracking: false,
  style: "default",
  confirm: {
    title: "Are you sure?",
    text: "Wouldn't you prefer a good game of chess?",
    ok_text: "Yes",
    dismiss_text: "No"
  }
}
PropertyDescriptionRequired
typeweb_urlY
titleString; Limited to 20 charactersY
urlURL of the destination; Must be HTTPS if messenger_extensions is "true"Y
webview_height_ratioHeight of the webview window; Set "compact", "tall" or "full"; Defaults to "full"N
fallback_urlURL to use on clients that don't support Messenger Extensions; Set only if messenger_extensions is "true"; Defaults to url if not specifiedN
webview_share_buttonSet "hide" or unsetN
urlTrackingDefaults to "true"N
styleSlack-specific; Set "default", "primary" or "danger"N
confirmSlack-specificN

confirm Object

PropertyDescriptionRequired
titleStringN
textString; Limited to 30 charactersY
ok_textString; Defaults to "Okay"N
dismiss_textString; Defaults to "Cancel"N

Postback Button

The Postback Button helps invoke an action in your chatbot. You can set a payload to the button.

{
  type: "postback",
  title: "some title",
  payload: "some payload",
}
PropertyDescriptionRequired
typepostbackY
titleString; Limited to 20 charactersY
payloadCustom defined payload trigger; Limited to 1,000 charactersY

Call Button

The Call Button can be used to initiate a phone call directly.

{
  type: "phone_number",
  title: "Call us",
  payload: "+85281930208"
}
PropertyDescriptionRequired
typephone_numberY
titleString; Limited to 20 charactersY
payloadFormat must have "+" prefix followed by the country code, area code and local number without any spaceY

Share Button

The Share Button enables users to privately share your content in Messenger to their friends. Friends can tap the heading to learn more about your chatbot on the shared message.

You may allow the users to share the original content that the share button is attached to; or you may send a different message which must be in the format of a Carousel.

{
  type: "element_share",
  share_content: {
    attachment: {
      type: "template",
      payload: {
        template_type: "generic",
        elements: [{
          title: "some title",
          subtitle: "some subtitle",
          image_url: "http://image.url",
          default_action: {
            type: "web_url",
            url: "https://sanuker.com"
          },
          buttons: [{
            type: "web_url",
            url: "<BUTTON_URL>",
            title: "<BUTTON_TITLE>"
          }]
        }]
      }
    }
  }
}
PropertyDescriptionRequired
typeelement_shareY
share_contentThe message to be shared; Format must be in carousel; Defaults to original message; Maximum of 1 element; Maximum of 1 buttonY
← PreviousNext →
  • URL Button
  • Postback Button
  • Call Button
  • Share Button
Stella Platform Documentation
Docs
Get StartedBest PracticesAPI Reference
Community
User ShowcaseChat with Us
Copyright © 2018 Sanuker Inc. Limited