Member
Member is an object that exists in our database, which contains the information about the chat bot member, which can be accessed by this.member.
Example
this.member.firstName
// => "TEXT"
| Property | Type | Description |
|---|---|---|
| _id | BSON | Primary key of the field |
| app | string | The App's / Organizations ID |
| admin | string | Optional Admin ID. Only available in live chat (outlet channel) |
| botId | string | (Facebook) Page ID (Whatsapp) Business Account Phone Number |
| botMeta | object | Allow the temporary storage of Data |
| channel | string | Channel's ID |
| createdAt | number | The timestamp of creation of this data |
| string | Optional Member's email | |
| etag | string | The timestamp that is used to match the data version |
| externalId | string | Member's ID in 3rd party database |
| firstName | string | Optional Member's first name |
| fbId | string | Optional (Facebook only) Members' Facebook ID |
| gender | string | Optional (Facebook only) Member's gender |
| group | string | Optional (Whatsapp only) Member's group ID |
| lastName | string | Optional Member's last name |
| meta | object | Allow the storage of data |
| platform | string | Channel that the member is in |
| profile | object | Member's personal information |
| profilePic | string | Optional URL of a member's profile picture |
| profilePicString | string | Optional A string of member's profile picture |
| tags | array<string> | The labels that classify the members |
| updatedAt | number | The timestamp of the last update of this data |
botMeta object
| Property | Type | Description |
|---|---|---|
| liveChat | boolean | Status of the live chat |
| nodeCompositeId | string | Optional Location of the member in the bot flow |
| subscribed | boolean | Status of the member is subscribed to push notification |
| tempData | object | Optional Allow the temporary storage of Data |
| tree | string | Optional 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
| Property | Type | Description |
|---|---|---|
| displayName | string | Member's full name |
| firstName | string | Optional Member's first name |
| lastName | string | Optional Member's last name |
| profilePic | string | Optional URL of member's profile picture |
| tbId | number | Teamwork bot's ID |
| username | string | Member's email |
Wechat profile object
Please see the Wechat documentation for further reference.
Whatsapp profile object
Coming soon...
