Stella Platform Documentation

Stella Platform Documentation

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

›Reference

Get Started

  • Introduction

Reference

  • Message Event
  • Node
  • Member
  • Channel
  • Integrations
  • Agenda Meta
  • Group
  • Methods
  • Radiate.js
  • Access Control List
  • Stella Open API

Member

Member is an object that exists in our database, which contains the information about the chatbot member, which can be accessed by this as this.member. When all the redirected nodes are executed, the botMeta, meta, customLocale and group fields will be patched to the member object in the database. The updated member object will be in this scope when Stella receives the next message event from the member.

Example

this.member.firstName
// => "TEXT"
PropertyTypeDescription
_idBSONPrimary key of the field
appstringThe App's / Organizations ID
adminstringOptional Admin ID. Only available in live chat (outlet channel)
botIdstring(Facebook) Page ID
(WhatsApp) Business Account Phone Number
botMetaobjectAllow the temporary storage of Data. This contains information about the chatbot status of the member. For example, this.member.botMeta.liveChat is a boolean indicating the live chat status of the member, this.member.botMeta.nodeCompositeId and this.member.botMeta.tree are strings indicating the current location of the member, this.member.botMeta.tempData is an object to store temporary data, usually for later uses when the member continues on the chatbot flow.
channelstringChannel's ID
createdAtnumberThe timestamp of creation of this data
customLocalestringThe language of the member uses. This value needs to be updated through actions inside nodes.
emailstringOptional Member's email
etagstringThe timestamp that is used to match the data version
externalIdstringMember's ID in 3rd party database
firstNamestringOptional Member's first name
fbIdstringOptional (Facebook only) Members' Facebook ID
genderstringOptional (Facebook only) Member's gender
groupstringOptional (WhatsApp only) Member's group ID. It is an ID for the group object of the current group the member is in.
lastNamestringOptional Member's last name
localestringOptionalThis is a string representing the language used by the member in a 3rd party system. If the language needs to be changed within the chatbot flow, this.member.customLocale can be edited to reflect the new language. The string should match one of the Language Groups set in Stella. The customLocale will overwrite the locale when Stella is selecting the language specific responses to send to the member.
metaobjectAllow the storage of data
platformstringChannel that the member is in
profileobjectMember's personal information. This contains the member’s profile, usually captured from a 3rd party system, or provided by the custom channel.
profilePicstringOptional URL of a member's profile picture
profilePicStringstringOptional A string of member's profile picture
tagsarray<string>The labels that classify the members
updatedAtnumberThe timestamp of the last update of this data

botMeta object

PropertyTypeDescription
liveChatbooleanStatus of the live chat
nodeCompositeIdstringOptional Location of the member in the bot flow
subscribebooleanStatus of the member is subscribed to push notification
tempDataobjectOptional Allow the temporary storage of Data
treestringOptional Tree that the member is located at

Facebook profile object

First name, last name, profile picture, locale, gender, and timezone are the fields that we get the user profile from Facebook. Please see the Facebook documentation for further reference.

Slack profile object

Please see the Slack documentation for further reference.

Teamwork profile object

PropertyTypeDescription
displayNamestringMember's full name
firstNamestringOptional Member's first name
lastNamestringOptional Member's last name
profilePicstringOptional URL of member's profile picture
tbIdnumberTeamwork bot's ID
usernamestringMember's email

WeChat profile object

Please see the WeChat documentation for further reference.

WhatsApp profile object

Coming soon...

← NodeChannel →
  • Facebook profile object
  • Slack profile object
  • Teamwork profile object
  • WeChat profile object
  • WhatsApp profile object
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited