Stella Platform Documentation

Stella Platform Documentation

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

›Advanced Chatbot Application

Basic Facebook Chatbot Setup

  • Overview
  • 1.1: Connect to Channels
  • 1.2: Create New Tree
  • 1.3: Build the First Node
  • 1.4: Create a Global Node
  • 1.5: Build Child Nodes
  • 2.1: Production Channel
  • 3.1: Draft a Post
  • 3.2: Create Public/Private Reply

Basic Web Chat Chatbot Setup

  • Overview
  • 1.1: Connect to Channels
  • 1.2: Create New Tree
  • 1.3: Build the First Node
  • 1.4: Create a Global Node
  • 1.5: Build Child Nodes

Basic WhatsApp Chatbot Setup

  • Overview
  • 1.1: WABA Subscription
  • 1.2: Connect WABA
  • 2.1: Create New Tree
  • 2.2: Build the First Node
  • 2.3: Create a Global Node
  • 2.4: Build Child Nodes
  • 2.5: Connect to Datasource
  • 3.1: Create Priority Group

Advanced Chatbot Application

  • Overview
  • Apply Datasource to Chatbot
  • Apply Payload Value to Chatbot
  • Apply API to Chatbot
  • Apply Custom Locale to Chatbot
  • Apply Opt-in Flow to Chatbot
  • Apply Agenda to Chatbot
  • Apply Stella API to Chatbot

Stella Partner Portal Setup

  • Overview
  • 1.1: Partner Portal Setup
  • 1.2: New Customer Onboarding
  • 1.3: WABA Setup

Template Tree

  • Overview
  • Create Template Tree
  • Manage Proxy Tree

Chatbot Testing & Deployment

  • Overview
  • Stage One - Tree Building
  • Stage Two - Testing Stage
  • Stage Three - Production Deployment

Slack Live Chat Tree Setup

  • Overview
  • 1.1: Create Tree for Live Chat Assignment
  • 2.1: Set Up Pick Ticket Status
  • 2.2: Create Done Command
  • 2.3: Create Transfer Command
  • 2.4: Create Archive Function
  • 2.5: Create Member Tagging/Remarks Command
  • 3.1: Automatic End Live Chat Function

Zendesk Live Chat Tree Setup

  • Overview
  • 1.1: Create Tree for Assignment
  • 2.1: Create Done Command

FAQ Chatbot Setup

  • Overview
  • 1.1: Exact Keyword Match
  • 2.1: Exact Keyword Match & Diversion
  • 3.1: Keyword Groups Match & Diversion
  • 4.1: Redirect to Existing Chatbot Tree
  • 4.2: Data Analytics for FAQ Chatbot
  • 4.3: NLP for FAQ Chatbot
  • 5.1: Filtering Questions for FAQ Chatbot

NLP Chatbot Setup

  • Overview
  • 1.1: Apply NLP to your Chatbot
  • 2.1: Set Up an NLP Fallback Tree
  • 3.1: NLP Fallback to Other Languages

Connect Shopify Store to Stella

  • Overview
  • 1.1: Integrate Stella to Shopify
  • 2.1: Apply Facebook SDK to Shopify
  • 2.2: Setup Facebook Messenger Chatbot for Shopify
  • 2.3: Setup WhatsApp Chatbot for Shopify
  • 2.4: WhatsApp Customer Care Notification for Shopify

Apply Custom Locale to Chatbot

You can set up a conversation flow to control the language of your chatbot response. This feature is called custom locale. The following object will be used in the application of custom locale:

  • this.member.customLocale

Expected Outcome

When user types a keyword to indicate a switch to a specific language (i.e. "English"), the subsequent chatbot response will be changed to that specific locale group (i.e. "en").

Locale switch on WhatsApp

Sample Tree Structure

Custom Locale Sample Tree Structure

Getting Hands-on

Create a Tree Node - "Language Switch - Success"

  1. Before creating this Tree Node, you should set up any specific language you want to use in Stella. To do so, please follow this guide. In this standard procedure, you should set up "en" and "zh-HK" locale groups.

Locale under Settings
  1. Go to any tree and create a Tree Node. Then, rename is as "Language Switch - Success". This Tree Node is for informing user that the chatbot language has been switched successfully.

  2. Create 1 text response with 3 different locale variations - "Default", "en" and "zh-HK". Rename the response as ""Language Switch - Success". Default is the fallback language in case the system fails to recognize a language. We will assume the default as the same English. Below is some sample text for your use:

  • "en": You have successfully converted to English.
  • "zh-HK": 您已成功將語言轉換為中文。
Response with Different Locale Groups
  1. Save this response and Tree Node.

Create a Global Node - "Chinese Switch Global"

  1. Create a Global Node and rename is as "Chinese Switch Global". This node is to trigger the custom locale action for switching the chatbot language to the "zh-HK" locale.

  2. Create a Trigger with a specific keyword. You can use "Chinese" or "中文".

Trigger for Chinese Switch
  1. Create an Action with the following code:
return new Promise((resolve) => {
  this.member.customLocale = "zh_HK"
  resolve({ member: this.member })
})
Action for Chinese Switch

If you wish to change to another locale, you may change the array behind this.member.customLocale in the code. You may check for the Supported Locale.

  1. Toggle on the redirect to the Tree Node - "Language Switch - Success".
Redirect to Language Switch - Success

Create a Global Node - "English Switch Global"

  1. Create a Global Node and rename is as "English Switch Global". This node is to trigger the custom locale action for switching the chatbot language to the "zh-HK" locale.

  2. Create a Trigger with a specific keyword. You can use "English".

Trigger for English Switch
  1. Create an Action with the following code:
return new Promise((resolve) => {
  this.member.customLocale = "en"
  resolve({ member: this.member })
})
Action for English Switch
If you wish to change to another locale, you may change the array behind this.member.customLocale in the code.
  1. Toggle on the redirect to the Tree Node - "Language Switch - Success".
Redirect to Language Switch - Success
  1. Check and see if you can reproduce the expected outcome.
← Apply API to ChatbotApply Opt-in Flow to Chatbot →
  • Expected Outcome
  • Sample Tree Structure
  • Getting Hands-on
    • Create a Tree Node - "Language Switch - Success"
    • Create a Global Node - "Chinese Switch Global"
    • Create a Global Node - "English Switch Global"
Stella Platform Documentation
Docs
Get StartedBest PracticesAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2021 Sanuker Inc. Limited