Stella Platform Documentation

Stella Platform Documentation

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

›Error Handling

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

Handle Errors for Chatbot

In Stella, users can check the chatbot performance on a backend level in Logs. All the information including error and warning can be displayed, which allows user to view and search for while debugging their chatbot.

Before getting started, we need to first understand the basic concept about Node to Match while building chatbot in Stella.

In general, chatbot building in Stella is based on a tree structure, users goes down the conversation flow by entering one node and then the other. Node to Match is to decide the next node to enter at the current node based on different conditions such as trigger and priority.

By understanding these basic conepts, we are able to see how each step could be reflected in the Logs.

Log Session

  1. In Logs, bying clicking on this symbol, you can view a complete log session, which is the complete chatbot journey of a member.
  1. At the start of a log session, you can view the entry of the member.
  1. Then, you can view the basic info of the member, and the message event.
  1. While entering a chatbot, the process of Node to match is to find the correct node to be triggered. The nodes are listed here in the log.
  1. Matched nodes are listed out.
  1. Mute Node refer to the node that has a priority value of -10, Stella will look for and execute mute node first (if any). After that, Stella will run node to match again and present a list of matched notes after mute nodes.
  1. Stella will select the node to execute from the matched nodes. Then, the node will expand and be executed.
  1. Components in the node such as redirect and pre-actions will be executed in order.
  1. Then, the response of the executed node will be sent to users via the corresponding messaging platform (i.e. WhatsApp).
  1. Other components after "response" in the node, such as post-action, analytics and member tagging will be executed after sending the response. Finally, all the info will be added back to the member profile in Patched Member.

Special Case

However, Logs in Stella might not be able to reflect the error under some circumstances. In a node, if user applies async function in the advanced mode (i.e. pre-actions, response, redirect), errors cannot be displayed in the log.

Therefore, when you have applied async function to your tree, problems occur with your chatbot and there is no error message reflected in the log, please use the following method to identify the error.

Example code that contains async function:

return new Promise(async (resolve, reject) => {
   const resp = await this.fetch("https://google.com")
   await resp.text()
   await resp.text()
   resolve()
})

Apply try...catch to the code:to the code:

return new Promise(async (resolve, reject) => {
  try {
    const resp = await this.fetch("https://google.com")
    await resp.text()
    await resp.text()
    resolve()
  } catch (error) {
    reject(error)
  }
})

Example result in log:

← Apply Web Event to Webchat ChatbotOverview →
  • Log Session
  • Special Case
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited