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 Agenda to Chatbot

Agenda is a scheduling system within Stella that will run a specific node for a member in a specific time. In simple words, it is a timer, when the countdown is finished, a message is sent.

You can apply Agenda to create a scheduled message, while the scheduled period and the response are all up to you. You can use the scheduled message for updating application status, confirming transaction, etc. To make your conversation flow more flexible, you can also remove the agenda and proceed to another tree node.

In this session, you will learn how to set up Agenda in Stella, and build a sample conversation flow that will send a scheduled reminder to idled users.

Expected Outcome

Imagine you have a chatbot for customer service. When a customer enters your conversation flow but does not move on to the next conversation for 5 minutes, you want to send a reminder message to encourage the idled user to proceed with the conversation flow.

Scheduled Message sent when User is Unresponsive

Sample Tree Structure

Sample Tree Structure for Agenda

Getting Hands-on

Click here to enter the Bot Builder.

Set up Agenda in a Tree Node

  1. Create the 1st tree node, name it as "Greetings". This is the entry point of your conversation flow. In this case, we will apply the Agenda to this tree node.

  2. Create a Response to greet the customer. Click "Save".

Create a Greeting Message

Add Pre-action

  1. Add a new Pre-action, name it as "Agenda". Then input the following code. this.newAgenda creates an agenda for a member. The agenda will be executed at the specified time: the nextRunAt field for a single run, or the pattern field for multiple runs. The agenda would start counting down whenever a customer goes through this tree node.
return new Promise((resolve) => {
  let nextRunAt = this.moment().add(5, "minutes").valueOf()
  this.newAgenda({
    member: this.member,
    treeId: this.node.tree,
    nodeCompositeId: "FPl8vZRflSPBU9XD",
    nextRunAt,
    tag: "reminder",
    replace: true
  })
  resolve()
})

Input Time

  1. Input a scheduled time. The number must be integers, and the units can be "minutes", "hours", "days" or "weeks", remember to keep the units in plural form. The minimum scheduled time allowed is 1 minute.
Input Agenda Time

Input TreeID

  1. Input the TreeID of the tree that your scheduled message belongs to. If it is in the same tree, input "this.node.tree". If it is different tree, input the TreeID, for instance, "6054b3e99cfe3e84ee174e88".
Input TreeID
CompositeID is the unique ID for a tree node. We will edit the Composite ID later.

Input Tag

  1. The tag field is used for tagging the agenda. Input a tag for your agenda, let's name it "reminder". It can be used to identitfy this agenda for other actions. Then click "Save".
Input Tag

Replace Agenda

  1. The tag created can be used with the replace field which, when creating a new agenda with the replace field as true, will remove any old agendas with the same tag of the same member, and replace it with the new agenda.
Replace Agenda

Create Scheduled Message

  1. Create a new tree node, name it as "Scheduled Message". We will create the reminder message in this tree node.

  2. Create a response or a follow-up questioin for your customer who is unresponsive for a specific period of time.

Create Scheduled Response
  1. If needed, you can also bring your customer back to the normal conversation flow. In this case, you can create a global node, and redirect to the conversation if the customer selects "Yes" for the follow-up question.
Redirect to Converseation

Input CompositeID

  1. Copy the Composite ID of the your scheduled message node.
Copy Composite ID
  1. Go back to the node where you set up the agenda, then select Pre-actions, replace the Composite ID with the new one. Now the agenda will trigger the Scheduled Message when the timer stops.
Input Composite ID
  1. Check and see if you can produce the expected outcome.

Remove Agenda

You want to send the reminder message to the idled users, without disturbing the responsive users. When the customer responds within the specific period of time, you want him to continue with the normal conversation flow. Therefore, you need to retract the reminder message by removing the agenda.

Expected Outcome

If the customer continues with the conversation flow within 5 minutes, the scheduled message will not be displayed.

Remove Agenda Result

  1. Create a new tree node following "Greetings", let's name it as "Conversation Continue". Then, create a Response for your customer who moves on with the conversation.
Create Response
  1. Add a new trigger to "Conversation Continue". Then this node would be triggered when the customer selects "Know more about us".
Create a Payload Trigger

Add Post-action

  1. Create a new Post-action in this node, let's name it as "Remove Agenda", then input the following code. When this node is triggered within the scheduled time, the conversation flow continues and this post-action can remove the previous agenda.
return new Promise(async(resolve, reject) => {
  try {
    await this.deleteMemberAgenda({
      memberId: this.member._id,
      tag: "reminder"
    })
    resolve()
  } catch (e) {
    reject(e)
  }
})
  1. Input the agenda tag "Last" you created in step 6, then the agenda with the same tag would be removed when this tree node is triggered.
Input Tag to Remove Agenda
  1. Check and see if you can produce the expected outcome.

Facebook Message Tag

In Facebook Messenger, businesses are encouraged to respond to their customers within 24 hours. If you decide to send a scheduled message to a customer after 24 hours, you need to include the specific Message Tag in the agenda.

Expected Outcome

An "Account Update" message is sent to notify the customer about change of application status.

Account Update

Add Message Tag

  1. Go back to "Greetings" node, or any of your node that contains the agenda. Select Pre-action, add the following code to the agenda.
meta: {
  messagingTag: "ACCOUNT_UPDATE",
  messagingType: "MESSAGE_TAG"
}
  1. The field meta can be used to save information in the agenda. In meta, enter the Message Tag and Message Type. Click here to find other Message Tags that match with the nature of your message.
Please make sure your message sent on Facebook Meseenger follows the guidelines of Facebook and the Message Tag Policy, for example, avoid sending promotional content frequently and sending push message to audience who has unsubscribed or disagreed to receive.
Add Messaging Type & Tag
  1. Check and see if you can produce the expected outcome.

Whatsapp Message Template

For agenda, the scheduled time can be more than 24 hours. If your chatbot is on WhatsApp, you are also bind by their 24-hour customer care window. If you decide to send a scheduled message 24 hours after the last response from the customer. You need to make use of WhatsApp Message Template.

  1. Go to "Scheduled Message" node, change the Response Type to WhatsApp Message Template, then select from your approved message template.
WhatsApp Template as Scheduled Message
← Apply Opt-in Flow to ChatbotApply Stella API to Chatbot →
  • Expected Outcome
  • Sample Tree Structure
  • Getting Hands-on
  • Set up Agenda in a Tree Node
    • Add Pre-action
    • Input Time
    • Input TreeID
    • Input Tag
    • Replace Agenda
    • Create Scheduled Message
    • Input CompositeID
  • Remove Agenda
    • Expected Outcome
    • Add Post-action
  • Facebook Message Tag
    • Expected Outcome
    • Add Message Tag
  • Whatsapp Message Template
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited