Stella Platform Documentation

Stella Platform Documentation

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

›Advanced Chatbot Application

Get Started

  • Build your First Chatbot

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 Comment Reply

Basic Instagram Chatbot Setup

  • Overview
  • 1.1: Connect to Channels
  • 1.2: Create New Tree
  • 1.3: Build the First Node
  • 1.4: Create Global Node
  • 1.5: Build Child Nodes
  • 2.1: Create Story Mention
  • 2.2: Create Comment Reply
  • 2.3: Send Push Message

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
  • 1.3: Check Approval Status of WABA
  • 1.4: Setup WABA with Used WhatsApp Number
  • 1.5: Reset / Terminate 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
  • 4.1: Create Product Message

Common Use Case Application

  • Overview
  • 1.1: Apply Fail-Safe to Chatbot
  • 1.2: Apply Member Unsubscription Flow to Chatbot

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
  • Apply Web Event to Webchat Chatbot

Error Handling

  • Handle Errors for Chatbot

Stella Partner Portal Setup

  • Overview
  • 1.1: Partner Portal Setup
  • 1.2: New Customer Onboarding
  • 1.3: WABA Setup
  • 1.4: Check Approval Status of WABA
  • 1.5: Setup WABA with Used WhatsApp Number
  • 1.6: Reset / Terminate WABA

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
  • 2.2: Auto End Live Chat Function

FAQ Chatbot Setup

  • Overview
  • 1.1: Exact Keyword Match
  • 1.2: Keyword Groups Match & Diversion
  • 2.1: Redirect to Existing Chatbot Tree
  • 2.2: Data Analytics for FAQ Chatbot
  • 2.3: NLP for FAQ Chatbot
  • 3.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: Setup Facebook Messenger Chatbot for Shopify
  • 2.2: Setup WhatsApp Chatbot for Shopify
  • 2.3: WhatsApp Customer Care Notification for Shopify

Stella Inbox Setup

  • Overview
  • 1.1: Connect Channel to Slack
  • 1.2: Access Control & Admin Panel
  • 1.3: Set up Customizable Message
  • 1.4: Inbox Channel
  • 2.1: Turn on Live Chat Directly
  • 2.2: End Live Chat Mode
  • 2.3: Ticketing
  • 2.4: Manage Ticket Helper
  • 2.5: Add Member Tag
  • 3.1: Send Chatbot Message

Apply Web Event to Webchat Chatbot

WEB_EVENT allows you to send custom data to Stella to trigger a chatbot. It allows you to create interactions between your website and the webchat plug-in. In other words, when a user clicks a button in the website, a WEB_EVENT is called, and the webchat can be triggered to perform certain actions.

This section will introduce two examples of use cases:

  • Match the Locale Settings of Website and Webchat
  • Trigger the Chatbot to Save Data from Website

Click here to know more about WEB_EVENT.


Match the Locale Settings of Website and Webchat

The webchat plug-in of Stella allows user to control the locale settings manually. However, with the help of WEB_EVENT, the locale of the webchat can be switched automatically to match with the website language settings.

Expected Outcome #1

When the user clicks and switches the website language to Chinese, a web event is sent and the webchat is triggered to change its locale settings from English to Chinese.

Website Language
Webchat Locale

Sample Tree Strucutre

You can use any conversation flow you want, the most important part is the Global Node that identifies WEB_EVENT and switches the locale settings.

Sample Tree Structure

Locale Settings

  1. Please make sure you have set up the locale in settings.

Chinese Switch Action

Locale Groups in Response

  1. In Stella, create a webchat channel.

  2. Create a tree, and build up a sample conversation flow.

  1. For each response, select and add the locale groups you want. Input the content for each language setting. For more about setting up locale group response, please refer to here.

Locale Group

Set up Web Event in Website

  1. Input the following function into your website code. If you put it in a button, the function can be called when a user clicks on that button in the website.
Radiate.sendEvent("WEB_EVENT", {
  payload: "CH_LOCALE_CHANGE"
}, {
  openMessenger: false
})

Create Trigger to Receive Web Event

  1. Create a global node.

Chinese Switch Global
  1. In "Chinese Switch Global", create a new trigger and create the following conditions. This trigger is for identifying the WEB_EVENT.
  • Condition 1
this.messageEvent.type === "WEB_EVENT"
  • Condition 2
this.lodash.get(this.messageEvent, "data.payload") === "CH_LOCALE_CHANGE"

Locale Change Trigger

Create Action for Language Switch

  1. In "Chinese Switch Global", create a new action with the following code. This action can indicate which locale group to use in a response. You need to input the locale into the code, e.g. "zh_HK", please refer to supported locale for more details.
return new Promise((resolve) => {
  this.member.customLocale = "zh_HK"
  resolve({ member: this.member })
})

Chinese Switch Action
  1. You can repeat step 4-8 for switching to another language.

  2. Check and see if you can produce the expected outcome.


Trigger the Chatbot to Save Data from Website

Instead of changing locale settings, you can also send custom data to the webchat and ask the chatbot to save certain data from the website.

For example, when a user clicks on the login button in your website, a user ID can be sent and saved by the chatbot.

Expected Outcome #2

When a user clicks on the login button, a WEB_EVENT containing the user ID is sent, and the webchat is triggered to save it in tempData.

Login Button

User ID saved in TempData

Sample Tree Strucutre

You can just create a sample conversation flow you want, the most important part is the global node that catches the WEB_EVENT and the User ID.

Create Global Node

  1. Create a tree, and build up a sample conversation flow.

  1. Similar to the previous use case, create a global node to identify the WEB_EVENT.

Set up Web Event in Website

  1. Input the following function into your website code. If you put it in a button, the function can be called when a user clicks on that button in the website.
Radiate.sendEvent("WEB_EVENT", { 
  payload: {
    payload: "USER_LOGIN",
    value: <ACCOUNT_ID>
}, {
  openMessenger: false
})

Create Trigger to Match the Payload Value

  1. In "User ID Global", create a new trigger and the following conditions. This trigger is for matching the WEB_EVENT and its containing value.
  • Condition 1
this.messageEvent.type === "WEB_EVENT"
  • Condition 2
this.lodash.get(this.messageEvent, "data.payload.payload") === "USER_LOGIN"

Create Action to Save the data into tempData

  1. Create an action with the following code to save the payload value captured in step 4, and store it into tempData.
return new Promise((resolve) => {
  this.member.botMeta.tempData.userID = this.lodash.get(this.messageEvent,"data.payload.value")
  resolve({
    member: this.member
  })
})

  1. Check and see if you can produce the expected outcome.
← Apply Stella API to ChatbotHandle Errors for Chatbot →
  • Match the Locale Settings of Website and Webchat
    • Expected Outcome #1
    • Sample Tree Strucutre
    • Locale Settings
    • Locale Groups in Response
    • Set up Web Event in Website
    • Create Trigger to Receive Web Event
    • Create Action for Language Switch
  • Trigger the Chatbot to Save Data from Website
    • Expected Outcome #2
    • Sample Tree Strucutre
    • Create Global Node
    • Set up Web Event in Website
    • Create Trigger to Match the Payload Value
    • Create Action to Save the data into tempData
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited