Stella Platform Documentation

Stella Platform Documentation

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

›Channels

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

Channel-wide Metadata

Channel-wide Metadata is a JSON object which can be applied to all the trees in a Channel. This metadata can be a data source ID, API path for an advanced function or even a basic greeting response. You can edit the metadata in the "Tree Settings" of a "Channel".

You can make use of channel-wide metadata to improve the re-usability and reduce the channel deployment time of a tree build. For example, in the scenario where you are deploying a FAQ tree build to a new channel, you can keep the exact same tree build and simply change the data source ID in the new channel's metadata setting.

Expected Outcome

In the following example, the user applied different data source IDs in the Channel-wide Metadata for Facebook Messenger & WhatsApp. You can clearly spot out that the content are slightly different but the conversation flow is the same.

The same FAQ chatbot build deploys on Facebook & WhatsApp
The Data Sources are different for Facebook & WhatsApp

Getting Hands-On

  1. You should decide which part of your chatbot build will be changed in different channels.

  2. Locate that part of the chatbot build and apply this.channel.metadata accordingly. For example, if you want to use a different data source for a different channel, you can locate and replace all the original data source ID with this.channel.metadata.faqDataSourceId in the collectionName.

Example Pre-action

return new Promise(async (resolve, reject) => {
  try {
    console.log("in Save Category 1 answers")
    let result = await this.fetchDataFromDataSource({
      collectionName: this.channel.metadata.faqDataSourceId,
      filter: {}
    })
    console.log("result", result)
    result = this.lodash.uniqBy(result, "Category 1")
    console.log("result", result)
    result = this.lodash.reject(result, { "Category 1": "" })
    console.log("result", result)

    result = this.lodash.sortBy(result, "Category 1 Priority")

    this.member.botMeta.tempData.currentAnswers = result.map(obj => obj["Category 1"])
    this.member.botMeta.tempData.listLength = result.length

    resolve({
      member: this.member,
    })
  } catch (e) {
    reject(e)
  }
})
  1. Head to the specific channel and add the metadata JSON object to "Channel-wide Metadata" under "Tree Settings".

Channel-wide Metadata

Below is a sample metadata object for FAQ data source:

{
    "this.channel.metadata.faqDataSourceId": "5ea26a9d54dasd3dasd2_faq_level_5",
}
  • For the text after metadata. you may designate any names to fit your use case.
  • For the string after "this.channel.metadata.faqDataSourceId", you may input the actual data (e.g. data source ID or API path) to be applied in a specific channel.
← WebhooksBusiness Availability →
  • Expected Outcome
  • Getting Hands-On
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited