Stella Platform Documentation

Stella Platform Documentation

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

›Facebook

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

One-Time Notification

One-Time Notification (OTN) provides developer the flexibility to push any contents to the users as long as it is complied with the community standards and the users have opted-in to receive the push message.


What is your result?

  1. User triggers the OTN flow [First Outcome].

User activates OTN.
  1. User agrees to receive account updates via one-time notification [Second Outcome].

User opts for OTN.
  1. A few days later, an account update is sent to the user [Third Outcome].

OTN is sent after a period of time.

Sample Tree Structure

Sample Tree Structure for One-Time Notification

Getting Hands-on

Apply for One-Time Notification on a Facebook Page

  1. Open your Facebook Page Settings and head to "Advanced messaging".
  2. Scroll down to locate "Requested Features".
  3. "Request" for "One-time notification".

Request for OTN on Facebook
  1. Select "Confirm" for the request.

Confirm OTN Request
  1. You should see a green tick next to "One-time notification".

Successful OTN Request

Create a Tree Node - OTN Button

  1. Create a Tree Node and name it as "OTN Button".

  2. Create a new response for setting up the OTN Button. Head to “Advanced”. Then, create a new response under “Transform” with the following code :

OTN Button
return new Promise((resolve) => {
  resolve({
    type: "ONE_TIME_NOTIFICATION",
    title: "Would you like to receive any account updates from us?",
    payload: "ACCOUNT_UPDATE"
  })
})
Please note that title field has a character limit of 65 characters.
  1. Save the response and the Tree Node.

  2. Please make sure you have devised a method to trigger this conversation flow. In the above example, a Global Node with the text trigger Text OTN is added to a Facebook Channel, so that the chatbot can be triggered to send out the one-time-notification button.


Create a Tree Node - Agree to Receive OTN

  1. Select the "OTN Button" Tree Node. Then, create another Tree Node and name it as "Agree to Receive OTN".

  2. Create a new trigger under the “Advanced” tab with the following conditions and with an “&” relationship (Name the new trigger as “OTN Payload”):

OTN Trigger

Condition 1 - Type OTN

this.messageEvent.data.type === "one_time_notif_req"

Condition 2 - Payload: ACCOUNT_UPDATE

this.messageEvent.data.payload === "ACCOUNT_UPDATE"
The payload for Condition 2 identifies the user under a certain OTN group. For example, account update OTN is under “ACCOUNT_UPDATE”. You may define it as any value you see fit. For example, change to “PROMOTIONAL_UPDATE“ if the user is opting for a promotional update.
  1. Create a new response and name it as “Agree to receive Account Update” (You may refer to Second Outcome of the expected outcome). You may input any message types you want. (e.g. a text message "Account updates will be sent in a few days. Thank you!")

  2. Save the response and the Tree Node.


Setting Up the Push: Create an OTN Audience

  1. Now it's time to create a way to activate the OTN Button Tree Node to test the First & Second Outcome.

  2. Create a "New Audience" and name the audience group.

  3. Select the relevant Facebook Channel.

Create an OTN Audience
  1. Select "Send to a group of members". Then, click "Criteria".

Send to a group of members
  1. In the "Criteria", type the desired OTN Tag which you assigned previously and click the "Enter" key to confirm the tag.

Enter OTN Tag
  1. Select "Confirm" to finish setting up the criteria.

  2. Select "Save" and the audience group is created.

OTN Audience Group Created
___

Setting Up the Push: Sending the Push

  1. Create the push with the audience group created for OTN.
  2. Follow the step here to schedule the push.
  3. Send a testing push to see if you can produce the Third Outcome.

← Access TokenN-Time Notification (Beta) →
  • What is your result?
  • Sample Tree Structure
  • Getting Hands-on
    • Apply for One-Time Notification on a Facebook Page
    • Create a Tree Node - OTN Button
    • Create a Tree Node - Agree to Receive OTN
    • Setting Up the Push: Create an OTN Audience
    • Setting Up the Push: Sending the Push
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited