Stella Platform Documentation

Stella Platform Documentation

  • 文档
  • 标准设置程序
  • 参考
  • 常见问题
  • Bot API
  • 接口
  • Languages icon中文
    • English

›参考

开始使用

  • Introduction

参考

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

Member

成员是存在于我们数据库中的一个对象,它包含了聊天机器人成员的信息,可以被this访问为this.member。当所有重定向的节点被执行时,botMeta、meta、customLocale和group字段将被修补到数据库中的成员对象。当Stella收到成员的下一个消息事件时,更新的成员对象将在this范围内。

例子:

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
subscribedbooleanStatus of the member is subscribed to push notification
tempDataobjectOptional Allow the temporary storage of Data
treestringOptional Tree that the member is located at

脸书 profile object

名、姓、个人照片、地域、性别和时区是我们从Facebook获取用户资料的字段。请参阅Facebook文档以获得进一步的参考。

Slackprofile object

请参阅Slack文件以获得进一步的参考。

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

微信 profile object

Please see the WeChat documentation for further reference.

WhatsApp profile object

Coming soon...

← NodeChannel →
  • 脸书 profile object
  • Slackprofile object
  • Teamwork profile object
  • 微信 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